Prerequisites
Node.js
Install Node.js 16 or higher
TypeScript
Basic TypeScript knowledge recommended
Obsidian
Obsidian app installed on your system
Code Editor
VS Code or your preferred editor
Quick Start
Install the API Types
The sample plugin already includes the Obsidian API types in its dependencies:The types are automatically installed when you run
package.json
npm install.Build the Plugin
Compile your TypeScript code to JavaScript:This creates
main.js in your project directory.Add Your First Feature
Let’s add a command that creates a new note:Development Workflow
Watch Mode
Hot Reload
Use the Hot Reload plugin to automatically reload your plugin during development
Console Logs
Open Developer Tools (Ctrl+Shift+I) to see console output
Debugging
Use
debugger statements and browser DevTools for debuggingCommon Patterns
Access the Vault
Work with the Editor
Add Settings
Next Steps
Core Concepts
Learn about the plugin lifecycle and architecture
API Reference
Explore the full Plugin API documentation
Guides
Follow step-by-step guides for common tasks
Examples
See real-world plugin examples
Get Help
Join the Community
Connect with other plugin developers on the Obsidian forum