wenlzhang_obsidian-canvas-f.../README.md
2025-03-08 23:10:22 +01:00

1.5 KiB

Plugin Template

This is a template for creating plugins for Obsidian, maintained by wenlzhang.

Getting started

  1. Clone this repository to your local machine
  2. Update the following files with your plugin information:
    • manifest.json:
      • id: Your plugin ID (in kebab-case)
      • name: Your plugin name
      • author: Your name
      • authorUrl: Your website or GitHub profile URL
      • fundingUrl: Optional funding information
    • package.json:
      • name: Your plugin name (should match manifest.json)
      • description: Your plugin description
      • author: Your name
      • keywords: Relevant keywords for your plugin

Development

  1. Install dependencies:
npm install
  1. Start development server:
npm run dev
  1. Build the plugin:
npm run build

Testing your plugin

  1. Create a test vault in Obsidian
  2. Create a .obsidian/plugins folder in your test vault
  3. Copy your plugin folder into the plugins folder
  4. Reload Obsidian to load the plugin (Ctrl/Cmd + R)
  5. Enable the plugin in Obsidian's settings

Publishing your plugin

  1. Update versions.json with your plugin's version history
  2. Test your plugin thoroughly
  3. Create a GitHub release
  4. Submit your plugin to the Obsidian Plugin Gallery

Support me

Buy Me a Coffee at ko-fi.com