Summary
Logseq plugin providing deterministic semantic search via terraphim's Aho-Corasick automata compiled to WASM. Surfaces terraphim search as a Logseq slash command. Same WASM core as the Obsidian plugin (#606).
Why Logseq Specifically
Terraphim's KG parser already uses Logseq's native synonyms:: property syntax. Every Logseq user who writes synonyms:: in their pages is already creating terraphim-compatible knowledge graph entries without knowing it. This plugin activates that latent value.
Architecture
Same WASM core as #606:
Logseq Plugin (TypeScript)
|
v
@terraphim/autocomplete (WASM)
|
v
terraphim_automata (Rust -> WASM)
|
v
User's Logseq graph (pages/ directory)
Plugin Features
- Slash command
/terraphim-search -- search with synonym expansion
- Block-level results: search result links to specific blocks, not just pages
- Page-level concept panel: shows synonyms and related concepts for the current page
- Settings: graph path, rebuild trigger, custom KG directory
Logseq Plugin API
- Logseq plugins are TypeScript/JavaScript
- Published via Logseq Marketplace (GitHub-based)
- API:
logseq.Editor, logseq.UI, logseq.App for block operations
Messaging
"Your synonyms:: properties now power real Aho-Corasick search -- not just text matching, but concept-level semantic search compiled into a state machine."
Affected Crates / Packages
Estimated Effort
~1 day (shared WASM core with #606, Logseq-specific UI)
Dependencies
Part of
Epic #603
Summary
Logseq plugin providing deterministic semantic search via terraphim's Aho-Corasick automata compiled to WASM. Surfaces terraphim search as a Logseq slash command. Same WASM core as the Obsidian plugin (#606).
Why Logseq Specifically
Terraphim's KG parser already uses Logseq's native
synonyms::property syntax. Every Logseq user who writessynonyms::in their pages is already creating terraphim-compatible knowledge graph entries without knowing it. This plugin activates that latent value.Architecture
Same WASM core as #606:
Plugin Features
/terraphim-search-- search with synonym expansionLogseq Plugin API
logseq.Editor,logseq.UI,logseq.Appfor block operationsMessaging
"Your
synonyms::properties now power real Aho-Corasick search -- not just text matching, but concept-level semantic search compiled into a state machine."Affected Crates / Packages
terraphim-logseq-pluginEstimated Effort
~1 day (shared WASM core with #606, Logseq-specific UI)
Dependencies
Part of
Epic #603