ObsidGet

unlisted

by Fabien Polly (Infinition)

Create, manage, and reuse interactive widgets from TypeScript/TSX files.

37 starsUpdated 4mo agoMIT
View on GitHub

ObsidGet for Obsidian

License TypeScript Release Obsidian Plugin Buy Me a Coffee

ObsidGet interface ObsidGet gallery

An Obsidian plugin for creating, managing, and reusing interactive widgets with HTML, CSS, and JavaScript. Each widget runs in an isolated Shadow DOM environment so styles and scripts do not affect the rest of the vault.

Plugin ID: obsidget

Used by: Obsidian Nova for its imported widget library.


Features

  • Shadow DOM isolation per widget: no style or script leaks.
  • Widget state saved inside the Markdown code block; notes stay portable.
  • Vault and data access: read/write JSON/CSV files, interact with note frontmatter.
  • Template gallery with tagging, search, and Smart Sync for community templates.
  • Right-click context menu to insert a widget anywhere.
  • Live split-view editor with real-time preview.
  • Visual CSS editor: sliders and color pickers for detected CSS variables.
  • Self-update from the latest GitHub release without leaving Obsidian.
  • Multilingual: English, French, Spanish, German, Portuguese.

Widget API (within a widget's JS)

// Read a file
const data = await api.readFile("notes/data.json");

// Save widget state (persisted in the code block)
await api.saveState({ count: 5 });

// Access the unique instance ID (for multi-instance widgets)
console.log(api.instanceId);

Settings

SettingDescription
Gallery PathLocation of .json template files
LanguageInterface language
Max Widget WidthPercentage or pixel limit
Update GalleryDownload latest community widgets
Update All WidgetsUpdate all widget code in vault while preserving data
Update PluginFetch the latest plugin release from GitHub

Contributing widgets

  1. Fork the repository.
  2. Add your widget's .json file to the gallery/ directory.
  3. Open a pull request.

Development

npm install
npm run dev    # watch mode
npm run build

Star History

Star History Chart

License

MIT. See LICENSE.

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.