Obsidian community plugin: WASM-powered semantic search

オープン
#606 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust, typescript, wasm

調査の方向性

Start with the obsidian-sample-plugin template and inspect the published @terraphim/autocomplete package, the existing WASM features, and dependency #604. Map the planned vault scanning, search UI, settings, and file-watcher work before implementation. Done includes the required manifest.json, versions.json, main.js, tests, and an offline plugin suitable for registry submission.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Summary

Obsidian community plugin that provides deterministic semantic search powered by terraphim's Aho-Corasick automata, compiled to WASM and running entirely in Obsidian's Electron runtime. Zero network, zero LLM, zero API key.

Architecture

Obsidian Plugin (TypeScript)
    |
    v
@terraphim/autocomplete (WASM)  <-- already exists as npm package
    |
    v
terraphim_automata (Rust -> WASM)  <-- already compiles to wasm32
    |
    v
User's vault (markdown files)

Existing WASM Infrastructure

  • terraphim_types has typescript + wasm features (tsify + wasm-bindgen)
  • terraphim_automata has typescript + wasm features
  • terraphim_ai_nodejs exists as Node.js native bindings
  • @terraphim/autocomplete is published on npm

Plugin Features

Core
  • Command palette: "Terraphim: Search concepts" -- type a term, get synonym-expanded results
  • Sidebar panel: persistent search with result list linking to vault files
  • Status bar: concept count and last build timestamp
Configuration
  • Settings tab:
    • Vault path (auto-detected)
    • Format: obsidian (default) / logseq / terraphim
    • Synonym property name (default: aliases for obsidian, synonyms for logseq)
    • Rebuild trigger: on file change / manual / on startup
    • Custom KG directory (optional, for dedicated concept files)
Integration
  • Clicking a search result opens the file in Obsidian
  • Results show: concept name, matched synonym, file path, relevance score
  • Works with Obsidian's aliases: frontmatter natively (#604)
  • Respects .obsidian/ exclusions

Development Plan

  1. Scaffold Obsidian plugin with obsidian-sample-plugin template
  2. Bundle @terraphim/autocomplete WASM module
  3. On startup: walk vault files, build thesaurus from aliases: + synonyms:: + #tags
  4. Register command palette action for search
  5. Register sidebar panel for persistent search
  6. File watcher for incremental thesaurus rebuild
  7. Settings UI

Submission to Community Registry

Affected Crates / Packages

  • terraphim_automata (ensure WASM build is up to date)
  • terraphim_ai_nodejs (may need to update WASM bindings)
  • New repo or directory: terraphim-obsidian-plugin

Estimated Effort

~2 days (scaffolding + WASM integration + settings + testing)

Dependencies

  • #604 Obsidian format parser (parse aliases: and wikilinks)

Part of

Epic #603

主要言語
Rust
スター
62
フォーク
5
平均マージ
2時間 27分
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

terraphim/terraphim-ai のほかの issue

terraphim/terraphim-ai の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。