obsidian-webhooks-events

Featured

Handle Obsidian events and workspace callbacks for plugin development. Use when implementing reactive features, handling file changes, or responding to user interactions in your plugin. Trigger with phrases like "obsidian events", "obsidian callbacks", "obsidian file change", "obsidian workspace events".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Obsidian Webhooks & Events ## Overview Complete guide to Obsidian's event system: vault events (create, modify, delete, rename), workspace events (layout, leaf changes, editor state), metadataCache events, DOM events, custom EventRef patterns, and periodic tasks. Every event registration uses `this.registerEvent()` for automatic cleanup on plugin unload. ## Prerequisites - Working Obsidian plugin with `onload()` / `onunload()` lifecycle - Understanding of TypeScript event handler signatures - Familiarity with Obsidian's TFile, TFolder, and WorkspaceLeaf types ## Instructions ### Step 1: Vault Events — File Lifecycle Vault events fire when files and folders are created, modified, deleted, or renamed. ```typescript import { Plugin, TFile, TFolder, TAbstractFile } from 'obsidian'; export default class EventPlugin extends Plugin { async onload() { // File created this.registerEvent( this.app.vault.on('create', (file: TAbstractFile) => { if (file instanceof TFile) { console.log('New file:', file.path); this.onFileCreated(file); } if (file instanceof TFolder) { console.log('New folder:', file.path); } }) ); // File content modified (fires on save and on every sync update) this.registerEvent( this.app.vault.on('modify', (file: TAbstractFile) => { if (file instanceof TFile) { this.onFileModified(file); } }) ); // File deleted thi...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

obsidian-data-handling

Implement vault data backup, sync, and recovery strategies. Use when building backup features, implementing data export, or handling vault synchronization in your plugin. Trigger with phrases like "obsidian backup", "obsidian sync", "obsidian data export", "vault backup strategy".

2,266 Updated today
jeremylongshore
AI & Automation Featured

obsidian-rate-limits

Handle Obsidian file system operations and throttling patterns. Use when processing many files, handling bulk operations, or preventing performance issues from excessive operations. Trigger with phrases like "obsidian rate limit", "obsidian bulk operations", "obsidian file throttling", "obsidian performance limits".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apollo-webhooks-events

Implement Apollo.io webhook and event-driven integrations. Use when receiving Apollo notifications, syncing data on changes, or building event-driven pipelines from Apollo activity. Trigger with phrases like "apollo webhooks", "apollo events", "apollo notifications", "apollo webhook handler", "apollo triggers".

2,266 Updated today
jeremylongshore
AI & Automation Featured

oraclecloud-webhooks-events

Wire up event-driven workflows with OCI Events, Notifications, and Functions. Use when building serverless event processing, subscribing to instance lifecycle changes, or routing audit events to alerting systems. Trigger with "oraclecloud webhooks events", "oci events rules", "oci notifications", "oci ons topics".

2,266 Updated today
jeremylongshore
AI & Automation Featured

obsidian-observability

Implement structured logging, metrics, error tracking, and a debug panel for Obsidian plugins. Use when adding debug logging, tracking plugin performance, building a diagnostics view, or setting up error reporting. Trigger with phrases like "obsidian logging", "obsidian monitoring", "obsidian debug panel", "track obsidian plugin performance".

2,266 Updated today
jeremylongshore