Skip to content

feat: Obsidian vault adapter with auto-init#9

Merged
jonathanpeterwu merged 2 commits intomainfrom
feature/obsidian-vault-adapter
Apr 3, 2026
Merged

feat: Obsidian vault adapter with auto-init#9
jonathanpeterwu merged 2 commits intomainfrom
feature/obsidian-vault-adapter

Conversation

@jonathanpeterwu
Copy link
Copy Markdown
Collaborator

Summary

  • ObsidianVaultAdapter: serializes frames as .md files with YAML frontmatter + [[wiki-links]] into Obsidian vault
  • Auto-init: reads obsidian.vaultPath from config, initializes on CLI startup and MCP server init
  • Web clipper ingest: watches raw/ dir for new .md files, auto-ingests as frames
  • Auto-maintained index.md: frame type counts, recent frames, session links
  • Config: obsidian field added to StackMemoryConfig

Test plan

  • Add obsidian.vaultPath to .stackmemory/config.yaml, verify dirs created
  • Create a frame, verify .md file appears in vault with frontmatter
  • Drop .md file in raw/, verify ingest callback fires
  • Open vault in Obsidian, verify graph view shows frame links

StackMemory Bot (CLI) added 2 commits April 3, 2026 00:35
- ObsidianVaultAdapter: writes frames as .md files with YAML frontmatter
  and [[wiki-links]] into a configured Obsidian vault path
- Auto-maintained index.md with frame type counts and recent frame links
- Web clipper ingest: watches raw/ for new .md files, parses frontmatter,
  triggers ingest callback for frame creation
- Session summaries with frame backlinks
- Config: add optional `obsidian.vaultPath` to StackMemoryConfig
- Hooks into frameLifecycleHooks (onFrameCreated/onFrameClosed)
- Zero Obsidian plugins required — pure file I/O
Wire ObsidianVaultAdapter into both CLI and MCP server startup:
- Reads obsidian.vaultPath from .stackmemory/config.yaml
- Auto-initializes on session start (CLI) and MCP server init
- Singleton pattern — safe to call multiple times
- Config passthrough in config-manager.ts

Usage: add to .stackmemory/config.yaml:
  obsidian:
    vaultPath: /path/to/vault
@jonathanpeterwu jonathanpeterwu merged commit 6f65124 into main Apr 3, 2026
2 of 6 checks passed
@jonathanpeterwu jonathanpeterwu deleted the feature/obsidian-vault-adapter branch April 3, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant