Obsidian SDK

Quick Start

Get up and running with the Obsidian SDK in under 2 minutes.

Quick Start

Install

npm install obsidian-sdk

Set up the SDK

import { Obsidian } from "obsidian-sdk";

// Replace "myVault" with the name of the vault you want to work with.
const obsidian = new Obsidian({ vault: "myVault" });

Minimal example

// List files in the vault
const files = await obsidian.files.list();
console.log(files);

Running the example

node quickstart.js

All other modules follow the same pattern – instantiate the class via the obsidian instance and call the async methods.

On this page