Your Plugin Name

unlisted

by Mark Ayers

A brief description of your plugin

★ 2 starsUpdated 28d agoMIT
View on GitHub

Obsidian Plugin Template

Status: Stable

Minimal template for Obsidian plugins using Bun.

Make it yours

Copy the repository, then change each of these. The check at the end finds any you missed.

FileWhatChange to
manifest.jsonid (your-plugin-id)your plugin's id, which is also its folder name under .obsidian/plugins/
manifest.jsonname, descriptionthe display name and one sentence
package.jsonname (obsidian-plugin-template), descriptionyour repository name and the manifest's sentence
.env.local.exampleOBSIDIAN_DEPLOY_DESTcopy to .env.local with your vault's plugin folder, so bun run build installs into it
src/main.ts, src/settings.test.tsExamplePlugin, ExampleSettingTab, my-plugin-ribbon-class, your-plugin-api-keyyour own class names, CSS class and suggested secret name
CHANGELOG.md, versions.jsonthe template's own historystart your own; versions.json can begin as {}, and bun run version appends to it
THEORY.md, WALKTHROUGH.mddocuments about the template, not your plugindelete them, or regenerate them against your code with the code-theory and code-walkthrough skills
CLAUDE.mdthe Project Overview and its obsidian-plugin-template backlog pointera description of your plugin; keep the rest, which applies to any copy

author and authorUrl in manifest.json, author in package.json, and the LICENSE copyright are the template owner's. Change them if that is not you.

Then check that nothing was missed; this should find nothing outside README.md:

grep -rnE 'your-plugin|Your Plugin|my-plugin|Example|obsidian-plugin-template|path/to/vault' \
  --exclude-dir=node_modules --exclude=main.js --exclude=bun.lock .

Setup

bun install

Targets Obsidian 1.13.0 (minAppVersion): the settings tab uses declarative getSettingDefinitions(), and credentials go in Obsidian's secret storage through SecretComponent, never in data.json.

Development

bun run dev    # Watch mode
bun run build  # Production build
bun run check  # Type check, lint, and format check

bun run build installs the plugin. It ends with deploy.ts, which copies main.js, manifest.json and any styles.css into OBSIDIAN_DEPLOY_DEST from .env.local, so there is no separate deploy step; unset, the build stops at ./main.js. main.js is gitignored build output: the vault gets it from the build, and a release attaches a fresh one.

Release

Use the release-gate then release-ship skills, as CLAUDE.md says; do not tag by hand. Tags are bare semver (1.2.3) and must agree with package.json, manifest.json and versions.json.

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.