Skip to content

Logseq community plugin: WASM-powered semantic search #607

@AlexMikhalev

Description

@AlexMikhalev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions