stellavault 0.8.4 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +469 -0
- package/README.ko.md +469 -0
- package/README.md +497 -372
- package/README.zh.md +469 -0
- package/dist/graph-ui/assets/{camera_utils-DBFmYlaE.js → camera_utils-DbH6FBwg.js} +1 -1
- package/dist/graph-ui/assets/{hands-CBFUH2Er.js → hands-DSGVtDgH.js} +1 -1
- package/dist/graph-ui/assets/index-nyIICe1Z.js +4524 -0
- package/dist/graph-ui/index.html +1 -1
- package/dist/stellavault.js +1107 -429
- package/package.json +21 -6
- package/dist/graph-ui/assets/index-BNGAzxHC.js +0 -4426
package/README.md
CHANGED
|
@@ -1,372 +1,497 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
stellavault
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
|
57
|
-
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
|
114
|
-
|
|
115
|
-
|
|
|
116
|
-
|
|
|
117
|
-
|
|
|
118
|
-
|
|
|
119
|
-
|
|
|
120
|
-
|
|
|
121
|
-
|
|
|
122
|
-
|
|
|
123
|
-
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
|
233
|
-
|
|
234
|
-
|
|
|
235
|
-
|
|
|
236
|
-
|
|
|
237
|
-
|
|
|
238
|
-
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="images/banner.svg" alt="Stellavault — drop anything, it compiles itself into knowledge" width="100%" />
|
|
4
|
+
|
|
5
|
+
**The local-first second brain that Claude remembers.**<br/>
|
|
6
|
+
Karpathy's self-compiling wiki × Zettelkasten — fully local, vault-safe, and MCP-native.
|
|
7
|
+
|
|
8
|
+
[](#mcp-integration-21-tools) [](https://www.npmjs.com/package/stellavault) [](https://github.com/Evanciel/stellavault/actions/workflows/ci.yml) []() []() [](LICENSE)
|
|
9
|
+
|
|
10
|
+
**English** · [한국어](README.ko.md) · [日本語](README.ja.md) · [简体中文](README.zh.md)
|
|
11
|
+
|
|
12
|
+
[**🤖 Add to Claude / Cursor**](#mcp-integration-21-tools) · [**⬇ Desktop App**](https://github.com/Evanciel/stellavault/releases/tag/desktop-v0.3.0) · [**⚡ Quickstart**](#install) · [**🌐 Live Demo**](https://evanciel.github.io/stellavault/)
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
> **One command to let Claude read your vault:**
|
|
17
|
+
>
|
|
18
|
+
> ```bash
|
|
19
|
+
> npx -y stellavault setup # wires the MCP server into Claude Code / Desktop, Cursor, Windsurf, or VS Code
|
|
20
|
+
> ```
|
|
21
|
+
|
|
22
|
+
**A second brain that compiles itself.** Stellavault fuses two ideas about how knowledge should live and grow:
|
|
23
|
+
|
|
24
|
+
- 🧠 **Karpathy's self-compiling wiki** — drop in anything (a PDF, a YouTube link, a passing thought) and it's auto-extracted into `raw/`, then **compiled** into a clean `_wiki/` of concepts and backlinks. Your knowledge re-compiles itself as it grows, instead of rotting in a folder.
|
|
25
|
+
- 🕸️ **Zettelkasten** — atomic notes, `[[wikilinks]]`, and emergent connections, so a *web of ideas* (not a folder tree) becomes the real structure of how you think.
|
|
26
|
+
|
|
27
|
+
The result is one local-first knowledge tool — a full markdown editor, a 3D neural graph, hybrid AI search, and spaced-repetition memory decay — shipped as a **desktop app**, **CLI**, **Obsidian plugin**, and **MCP server** that lets **Claude read your entire vault**. No cloud, no API keys, and your original files are never modified.
|
|
28
|
+
|
|
29
|
+
<p align="center">
|
|
30
|
+
<img src="images/screenshots/graph-main-2.png" alt="3D Knowledge Graph" width="820" />
|
|
31
|
+
<br><em>Your vault as a neural network. Local-first, no cloud required.</em>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
## Contents
|
|
35
|
+
|
|
36
|
+
[Highlights](#highlights) · [Why Stellavault?](#why-stellavault) · [Install](#install) · [Editor](#editor) · [Pipeline](#the-pipeline) · [Intelligence](#intelligence-what-makes-stellavault-unique) · [Search & Ranking](#search--ranking) · [MCP Integration](#mcp-integration-21-tools) · [3D Visualization](#3d-visualization) · [Configuration](#configuration) · [Performance](#performance) · [Tech Stack](#tech-stack) · [Security](#security) · [Troubleshooting](#troubleshooting)
|
|
37
|
+
|
|
38
|
+
## Highlights
|
|
39
|
+
|
|
40
|
+
- 🧠 **It compiles itself.** Drop in a PDF, a YouTube link, or a half-formed thought — Stellavault extracts it to `raw/`, then *compiles* a clean `_wiki/` with concepts and backlinks. Knowledge that organizes itself as it grows.
|
|
41
|
+
- 🔍 **Search that actually finds it.** Hybrid retrieval fuses semantic meaning, exact keywords (BM25), and your own `[[wikilinks]]` / `#tags` with **weighted RRF**, then re-ranks by an FSRS memory model so what you're *actually* using resurfaces. 50+ languages, fully local, zero API keys.
|
|
42
|
+
- 🌌 **Your mind, in 3D.** A real-time neural graph (React Three Fiber) — cluster coloring, constellations, heatmaps, a timeline, and a multiverse P2P view. A way to *see* the shape of what you know.
|
|
43
|
+
- 🤖 **Claude reads your entire vault.** A first-class **MCP server** (21 tools): Claude can search, ask, draft, lint, and analyze your knowledge from Claude Code, Claude Desktop, Cursor, Windsurf, or VS Code.
|
|
44
|
+
- ⏳ **It never *silently* forgets.** FSRS memory decay surfaces the real notes you're about to lose — plus gap, contradiction, and duplicate detection across the whole vault.
|
|
45
|
+
- 🔒 **Local-first. Vault-safe. Zero keys.** Local embeddings, an on-device vector store, and your original files are **never modified**. Nothing leaves your machine unless you opt in.
|
|
46
|
+
|
|
47
|
+
## Why Stellavault?
|
|
48
|
+
|
|
49
|
+
Most tools make you choose between *writing*, *searching*, and *remembering*. Stellavault does all three — locally, and in a way Claude can read.
|
|
50
|
+
|
|
51
|
+
| | **Stellavault** | Obsidian | Notion | Plain RAG script |
|
|
52
|
+
|---|:---:|:---:|:---:|:---:|
|
|
53
|
+
| Local-first, works offline | ✅ | ✅ | ☁️ cloud | ⚠️ usually cloud |
|
|
54
|
+
| Semantic search, no API key | ✅ | ⚠️ plugin + key | 💰 paid AI | ⚠️ needs key |
|
|
55
|
+
| Original files never modified | ✅ | ✅ | ❌ proprietary | ➖ |
|
|
56
|
+
| Self-compiling (ingest → wiki) | ✅ | ❌ | ❌ | ❌ |
|
|
57
|
+
| 3D knowledge graph | ✅ | 2D / plugin | ❌ | ❌ |
|
|
58
|
+
| Spaced-repetition decay (FSRS) | ✅ | ⚠️ plugin | ❌ | ❌ |
|
|
59
|
+
| Gap / contradiction / dup detection | ✅ | ❌ | ❌ | ❌ |
|
|
60
|
+
| MCP-native (Claude reads your vault) | ✅ | ➖ community | ☁️ cloud | ➖ |
|
|
61
|
+
|
|
62
|
+
> [!NOTE]
|
|
63
|
+
> Not either/or — Stellavault even runs **inside Obsidian** as a [plugin](https://github.com/Evanciel/stellavault-obsidian). Keep your editor; add a brain.
|
|
64
|
+
|
|
65
|
+
## Install
|
|
66
|
+
|
|
67
|
+
### Desktop App (Recommended — one click)
|
|
68
|
+
|
|
69
|
+
<table>
|
|
70
|
+
<tr>
|
|
71
|
+
<td align="center"><a href="https://github.com/Evanciel/stellavault/releases/download/desktop-v0.3.0/Stellavault-win32-x64-0.3.0.zip"><br/><b>⬇ Download for Windows</b><br/><sub>x64 · 273 MB · ZIP</sub></a></td>
|
|
72
|
+
<td align="center"><a href="https://github.com/Evanciel/stellavault/releases/download/desktop-v0.3.0/Stellavault-linux-x64-0.3.0.zip"><br/><b>⬇ Download for Linux</b><br/><sub>x64 · 243 MB · ZIP</sub></a></td>
|
|
73
|
+
<td align="center"><br/><b>macOS</b><br/><sub>Coming soon</sub></td>
|
|
74
|
+
</tr>
|
|
75
|
+
</table>
|
|
76
|
+
|
|
77
|
+
> [!TIP]
|
|
78
|
+
> Download → Unzip → Run `stellavault.exe` (Windows) or `stellavault` (Linux) → Pick your notes folder → Done.
|
|
79
|
+
|
|
80
|
+
### CLI (for developers)
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npm install -g stellavault # or: npx stellavault
|
|
84
|
+
stellavault init # Interactive setup (3 min): index vault + connect AI clients
|
|
85
|
+
stellavault setup # Connect to Claude Code/Desktop, Cursor, Windsurf, VS Code (one command)
|
|
86
|
+
stellavault graph # Launch 3D graph in browser
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
> Requires Node.js 20+. Run `stellavault doctor` to diagnose issues.
|
|
90
|
+
|
|
91
|
+
### Obsidian Plugin
|
|
92
|
+
|
|
93
|
+
1. Download `main.js` + `manifest.json` + `styles.css` from [stellavault-obsidian releases](https://github.com/Evanciel/stellavault-obsidian/releases/latest)
|
|
94
|
+
2. Place in `.obsidian/plugins/stellavault/`
|
|
95
|
+
3. Enable in Settings → Community plugins
|
|
96
|
+
4. Start API: `npx stellavault graph` in your vault folder
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Editor
|
|
101
|
+
|
|
102
|
+
Full-featured markdown editor — on par with Obsidian.
|
|
103
|
+
|
|
104
|
+
<details>
|
|
105
|
+
<summary><b>Full formatting & block support</b> — tables, code, KaTeX, slash commands, wikilinks, split view… <i>(click to expand)</i></summary>
|
|
106
|
+
|
|
107
|
+
<br/>
|
|
108
|
+
|
|
109
|
+
| Feature | Status |
|
|
110
|
+
|---------|--------|
|
|
111
|
+
| Bold, Italic, Underline, Strikethrough | ✅ |
|
|
112
|
+
| Headings 1–6 | ✅ |
|
|
113
|
+
| Bullet, Numbered, Task lists (nested checkboxes) | ✅ |
|
|
114
|
+
| Tables (create, resize columns, add/remove rows & cols) | ✅ |
|
|
115
|
+
| Code blocks with syntax highlighting (40+ languages) | ✅ |
|
|
116
|
+
| Images (URL, clipboard paste, drag & drop) | ✅ |
|
|
117
|
+
| KaTeX math rendering (`$E=mc^2$` inline, `$$...$$` display) | ✅ |
|
|
118
|
+
| `/Slash commands` (12 block types, fuzzy search) | ✅ |
|
|
119
|
+
| `[[Wikilink]]` autocomplete | ✅ |
|
|
120
|
+
| Split view (vertical + horizontal, Ctrl+\\) | ✅ |
|
|
121
|
+
| Text alignment (left / center / right) | ✅ |
|
|
122
|
+
| Highlight, Superscript, Subscript | ✅ |
|
|
123
|
+
| Smart typography (curly quotes, em/en dashes) | ✅ |
|
|
124
|
+
| Horizontal rules | ✅ |
|
|
125
|
+
|
|
126
|
+
</details>
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## The Pipeline
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
Capture ──→ Organize ──→ Distill ──→ Express
|
|
134
|
+
|
|
135
|
+
Drop anything → auto-extract → raw/ → compile → _wiki/ → draft
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Inspired by Karpathy's self-compiling knowledge architecture.
|
|
139
|
+
|
|
140
|
+
### Ingest 14 Formats
|
|
141
|
+
|
|
142
|
+
| Input | How |
|
|
143
|
+
|-------|-----|
|
|
144
|
+
| PDF, DOCX, PPTX, XLSX | `stellavault ingest report.pdf` |
|
|
145
|
+
| JSON, CSV, XML, YAML, HTML, RTF | `stellavault ingest data.json` |
|
|
146
|
+
| YouTube | `stellavault ingest https://youtu.be/...` — transcript + timestamps |
|
|
147
|
+
| URL | `stellavault ingest https://...` — HTML → markdown |
|
|
148
|
+
| Text | `stellavault ingest "quick thought"` |
|
|
149
|
+
| Folder | `stellavault ingest ./papers/` — batch all files |
|
|
150
|
+
| Desktop / Web UI | Drag & drop files directly |
|
|
151
|
+
|
|
152
|
+
### Express: Get Knowledge Out
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
stellavault draft "AI" --format blog # Blog post from your vault
|
|
156
|
+
stellavault draft "AI" --format outline # Structured outline
|
|
157
|
+
stellavault draft "AI" --ai # Claude API enhanced ($0.03)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Or use the **Express tab** in the desktop app — enter a topic, pick a format, and generate a draft grounded in your vault. Save to `_drafts/` and edit inline.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Intelligence (What Makes Stellavault Unique)
|
|
165
|
+
|
|
166
|
+
These features do **not exist** in Obsidian — even with plugins.
|
|
167
|
+
|
|
168
|
+
| Feature | Command / Desktop | Description |
|
|
169
|
+
|---------|-------------------|-------------|
|
|
170
|
+
| **Memory Decay** | `stellavault decay` / Memory tab | FSRS-based — shows which real notes you are forgetting |
|
|
171
|
+
| **Knowledge Gaps** | `stellavault gaps` | Detects weak connections between topic clusters |
|
|
172
|
+
| **Contradictions** | `stellavault contradictions` | Finds conflicting statements across your vault |
|
|
173
|
+
| **Duplicates** | `stellavault duplicates` | Near-identical notes with similarity score |
|
|
174
|
+
| **Health Check** | `stellavault lint` | Aggregated vault health score (0–100) |
|
|
175
|
+
| **Learning Path** | `stellavault learn` | AI-personalized review recommendations |
|
|
176
|
+
| **Daily Brief** | Desktop app home screen | Push-type: top decaying notes + stats on app open |
|
|
177
|
+
| **Auto-Tagging** | Automatic on ingest | Content-based keyword extraction + category rules |
|
|
178
|
+
| **Self-Compiling** | `stellavault compile` | raw/ → _wiki/ with extracted concepts + backlinks |
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## Search & Ranking
|
|
183
|
+
|
|
184
|
+
Hybrid retrieval that fuses multiple signals with **weighted Reciprocal Rank Fusion (RRF)** — tuned for a personal knowledge vault, fully local, zero API keys:
|
|
185
|
+
|
|
186
|
+
| Signal | What it captures | Default weight |
|
|
187
|
+
|--------|------------------|---------------:|
|
|
188
|
+
| **Semantic** (dense) | meaning; multilingual (50+ languages) | `1.0` |
|
|
189
|
+
| **BM25** (keyword) | exact terms, code, names | `1.0` |
|
|
190
|
+
| **Entity-linking** | your `[[wikilinks]]`, `#tags`, headings, titles — the curated graph | `1.5` |
|
|
191
|
+
| **FSRS recency** | gently surfaces notes you're actively using / forgetting | `±10%` |
|
|
192
|
+
|
|
193
|
+
- **Entity matching** resolves natural-language queries via fuzzy substring + punctuation-normalized matching (Korean / CJK friendly), with a **per-document diversity cap** so one large note can't flood the top results.
|
|
194
|
+
- **Recency** reuses the same FSRS memory model as the decay engine (not raw file mtime) — a note you're forgetting resurfaces; a mastered evergreen note isn't buried just for being old.
|
|
195
|
+
- **Adaptive rerank** (long-running MCP server) further boosts results by your current session context (recent tags / paths).
|
|
196
|
+
- Every weight is **tunable** per vault or via env vars — see [Configuration](#configuration).
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## MCP Integration (21 Tools)
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
stellavault setup # one command → Claude Code, Claude Desktop, Cursor, Windsurf, VS Code
|
|
204
|
+
# or, for Claude Code only:
|
|
205
|
+
claude mcp add stellavault -- stellavault serve
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
<details>
|
|
209
|
+
<summary>Manual config (any MCP client) — copy-paste JSON</summary>
|
|
210
|
+
|
|
211
|
+
```json
|
|
212
|
+
{
|
|
213
|
+
"mcpServers": {
|
|
214
|
+
"stellavault": {
|
|
215
|
+
"command": "npx",
|
|
216
|
+
"args": ["-y", "stellavault", "serve"]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Listed on the [MCP registry](https://registry.modelcontextprotocol.io) as `io.github.Evanciel/stellavault` (also discoverable via Glama, Smithery, and mcp.so).
|
|
223
|
+
</details>
|
|
224
|
+
|
|
225
|
+
Claude can search, ask, draft, lint, and analyze your vault directly. Search runs
|
|
226
|
+
the full hybrid pipeline — **weighted RRF** over semantic + BM25 + entity-linking,
|
|
227
|
+
plus **FSRS recency** and session-adaptive reranking (see [Search & Ranking](#search--ranking)).
|
|
228
|
+
|
|
229
|
+
| Tool | What it does |
|
|
230
|
+
|------|-------------|
|
|
231
|
+
| `search` | Weighted RRF (semantic + BM25 + entity) + FSRS recency + adaptive rerank |
|
|
232
|
+
| `ask` | Vault-grounded Q&A |
|
|
233
|
+
| `generate-draft` | AI drafts from your knowledge |
|
|
234
|
+
| `get-decay-status` | Memory decay report (FSRS) |
|
|
235
|
+
| `detect-gaps` | Knowledge gap analysis |
|
|
236
|
+
| `create-knowledge-node` | AI creates wiki-quality notes |
|
|
237
|
+
| `federated-search` | P2P search across vaults |
|
|
238
|
+
| + 14 more | Documents, topics, decisions, snapshots, export |
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 3D Visualization
|
|
243
|
+
|
|
244
|
+
- Neural graph with cluster coloring (React Three Fiber)
|
|
245
|
+
- **Cluster view (default)** — a large vault folds into a small galaxy of labeled cluster
|
|
246
|
+
super-nodes; an in-viewer `[Cluster | All nodes]` toggle switches to the dense raw view
|
|
247
|
+
without reload, and clicking a super-node drills into that cluster's members
|
|
248
|
+
- Constellation view (MST star patterns)
|
|
249
|
+
- Heatmap overlay + Timeline slider + Decay overlay
|
|
250
|
+
- Multiverse view — your vault as a universe in a P2P network
|
|
251
|
+
- Dark/Light theme
|
|
252
|
+
|
|
253
|
+
### Graph viewer scaling
|
|
254
|
+
|
|
255
|
+
The 3D graph renderer is bounded by two environment knobs (set them in the environment
|
|
256
|
+
before launching `stellavault graph`):
|
|
257
|
+
|
|
258
|
+
| Env var | Default | Applies to | What it caps |
|
|
259
|
+
| --- | --- | --- | --- |
|
|
260
|
+
| `GRAPH_NODE_CAP` | `1500` | **raw / "All nodes"** view | # of (most-recent) notes rendered as individual nodes. |
|
|
261
|
+
| `GRAPH_CLUSTER_CAP` | `3000` | **cluster** view (default) | # of notes folded into the galaxy before clustering. |
|
|
262
|
+
|
|
263
|
+
**Why the caps matter.** Edge construction is an inline **O(n²) all-pairs cosine** loop —
|
|
264
|
+
`n·(n-1)/2` pairs, each over 384 dims (see `packages/core/src/api/graph-data.ts`, the
|
|
265
|
+
`neighbors` loop). At `cap=3000` that is ~4.5M pairs (the multi-second build the 5-minute
|
|
266
|
+
server cache absorbs); raising toward 13000 is ~84M pairs = **minutes** of build plus a
|
|
267
|
+
multi-GB intermediate array that **freezes the single-threaded Express handler** (there is no
|
|
268
|
+
worker). The raw "All nodes" path is the expensive direction (it runs the full cap), so the
|
|
269
|
+
server clamps the requested `?cap` per view (raw ≤ 4000, cluster ≤ 6000, rounded) to bound
|
|
270
|
+
both build cost and cache cardinality.
|
|
271
|
+
|
|
272
|
+
**Even the default cluster view is cheap to RENDER, not to BUILD.** The first uncached fetch
|
|
273
|
+
of either view runs the scoped-embedding load + the O(n²) cosine pass + k-means + a force
|
|
274
|
+
settle on a single thread, stalling the handler for seconds. The viewer shows a loading state
|
|
275
|
+
on the toggle so the tap isn't silently swallowed during that cold build.
|
|
276
|
+
|
|
277
|
+
<table>
|
|
278
|
+
<tr>
|
|
279
|
+
<td width="50%"><img src="images/screenshots/graph-heatmap.png" alt="Heatmap overlay" /><br/><sub><b>Heatmap</b> — connection density across clusters</sub></td>
|
|
280
|
+
<td width="50%"><img src="images/screenshots/graph-timeline.png" alt="Timeline slider" /><br/><sub><b>Timeline</b> — watch your vault grow over time</sub></td>
|
|
281
|
+
</tr>
|
|
282
|
+
<tr>
|
|
283
|
+
<td><img src="images/screenshots/search-active.png" alt="Semantic search highlight" /><br/><sub><b>Search</b> — semantic matches highlighted in-graph</sub></td>
|
|
284
|
+
<td><img src="images/screenshots/multiverse-view.png" alt="Multiverse P2P view" /><br/><sub><b>Multiverse</b> — federated vaults as orbiting universes</sub></td>
|
|
285
|
+
</tr>
|
|
286
|
+
</table>
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## Try It Now (Demo Vault)
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
npx stellavault index --vault ./examples/demo-vault # Index 10 sample notes
|
|
294
|
+
npx stellavault search "vector database" # Semantic search
|
|
295
|
+
npx stellavault graph # 3D graph visualization
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
The demo vault includes interconnected notes about Vector Databases, Knowledge Graphs, Spaced Repetition, RAG, MCP, and more — perfect for exploring all features instantly.
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## Getting Started Guide
|
|
303
|
+
|
|
304
|
+
### Desktop App
|
|
305
|
+
|
|
306
|
+
1. **Download** → Unzip → Run
|
|
307
|
+
2. First launch asks you to pick your notes folder
|
|
308
|
+
3. Your notes appear in the sidebar — click to open
|
|
309
|
+
4. Press `Ctrl+P` for quick file switching
|
|
310
|
+
5. Click ✦ in the title bar for AI panel (semantic search, stats, draft)
|
|
311
|
+
6. Click ◉ for 3D graph
|
|
312
|
+
|
|
313
|
+
### CLI
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
npm install -g stellavault
|
|
317
|
+
stellavault init # Setup wizard
|
|
318
|
+
stellavault search "machine learning" # Semantic search
|
|
319
|
+
stellavault ingest paper.pdf # Add knowledge
|
|
320
|
+
stellavault graph # 3D graph in browser
|
|
321
|
+
stellavault brief # Morning briefing
|
|
322
|
+
stellavault decay # What are you forgetting?
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### Keyboard Shortcuts (Desktop)
|
|
326
|
+
|
|
327
|
+
| Shortcut | Action |
|
|
328
|
+
|----------|--------|
|
|
329
|
+
| `Ctrl+P` | Quick Switcher (fuzzy file search) |
|
|
330
|
+
| `Ctrl+Shift+P` | Command Palette (all actions) |
|
|
331
|
+
| `Ctrl+S` | Save current note |
|
|
332
|
+
| `Ctrl+\` | Toggle split view |
|
|
333
|
+
| `Ctrl+B` | Bold |
|
|
334
|
+
| `Ctrl+I` | Italic |
|
|
335
|
+
| `Ctrl+U` | Underline |
|
|
336
|
+
| `Ctrl+E` | Inline code |
|
|
337
|
+
| `/` | Slash commands (at start of line) |
|
|
338
|
+
| `[[` | Wikilink autocomplete |
|
|
339
|
+
|
|
340
|
+
### Quick Reference
|
|
341
|
+
|
|
342
|
+
| Action | Desktop | CLI |
|
|
343
|
+
|--------|---------|-----|
|
|
344
|
+
| Search notes | Ctrl+P or AI panel | `stellavault search "query"` |
|
|
345
|
+
| Add a note | + Note button or drag & drop | `stellavault ingest "text"` |
|
|
346
|
+
| See 3D graph | ◉ button | `stellavault graph` |
|
|
347
|
+
| Memory decay | AI panel → Memory | `stellavault decay` |
|
|
348
|
+
| Generate draft | AI panel → Draft | `stellavault draft "topic"` |
|
|
349
|
+
| Health check | AI panel → Stats | `stellavault lint` |
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## Configuration
|
|
354
|
+
|
|
355
|
+
Stellavault reads `./.stellavault.json` (or `~/.stellavault.json`). Search ranking is fully tunable — sensible defaults work out of the box:
|
|
356
|
+
|
|
357
|
+
```jsonc
|
|
358
|
+
{
|
|
359
|
+
"search": {
|
|
360
|
+
"rrfK": 60,
|
|
361
|
+
"weights": { "semantic": 1.0, "bm25": 1.0, "entity": 1.5 },
|
|
362
|
+
"recencyWeight": 0.2, // FSRS recency strength; 0 = off
|
|
363
|
+
"entityAliases": { "k8s": ["kubernetes"] } // synonym / cross-lingual groups (exact-only)
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
Environment variables override config (parsed with guards):
|
|
369
|
+
|
|
370
|
+
| Env var | Effect |
|
|
371
|
+
|---------|--------|
|
|
372
|
+
| `STELLAVAULT_W_SEMANTIC` / `_BM25` / `_ENTITY` | per-signal RRF weight (e.g. `STELLAVAULT_W_ENTITY=2.0` for aggressive entity surfacing) |
|
|
373
|
+
| `STELLAVAULT_RECENCY_WEIGHT` | recency strength `0`–`1` (`0` disables) |
|
|
374
|
+
| `STELLAVAULT_DB_PATH` | override the index DB location |
|
|
375
|
+
| `STELLAVAULT_WATCH` | `0` to disable the auto-reindex file watcher while `serve` runs |
|
|
376
|
+
|
|
377
|
+
> Note: cross-lingual recall (e.g. a Korean query finding English notes) is handled automatically by the multilingual embedding model — `entityAliases` is an optional precision boost for the curated entity graph (tags / wikilinks) and abbreviations.
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
## Performance
|
|
382
|
+
|
|
383
|
+
Tested on synthetic vaults — all operations under 1 second for typical use cases:
|
|
384
|
+
|
|
385
|
+
| Operation | 100 docs | 500 docs | 1000 docs |
|
|
386
|
+
|-----------|----------|----------|-----------|
|
|
387
|
+
| Store init | 15ms | 15ms | 16ms |
|
|
388
|
+
| Bulk upsert | 12ms | 102ms | ~200ms |
|
|
389
|
+
| Search (BM25) | <1ms | <1ms | <1ms |
|
|
390
|
+
| Get all docs | <1ms | 2ms | ~4ms |
|
|
391
|
+
| 124K dot products | — | 36ms | — |
|
|
392
|
+
|
|
393
|
+
Run your own benchmarks:
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
node tests/stress.mjs 500 # Test with 500 synthetic documents
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
Key optimizations:
|
|
400
|
+
- **HNSW graph building** — sqlite-vec KNN for 200+ docs (O(n·K·log n) vs O(n²))
|
|
401
|
+
- Pre-normalized vectors: cosine similarity → single dot product
|
|
402
|
+
- Batched embedding loading (500/batch, prevents RAM overflow)
|
|
403
|
+
- Upper-triangle brute-force for small vaults (< 200 docs)
|
|
404
|
+
- O(n) K-Means centroid updates with typed arrays
|
|
405
|
+
|
|
406
|
+
---
|
|
407
|
+
|
|
408
|
+
## Tech Stack
|
|
409
|
+
|
|
410
|
+
| Layer | Tech |
|
|
411
|
+
|-------|------|
|
|
412
|
+
| Desktop | Electron + React + TipTap (15 extensions) + Zustand |
|
|
413
|
+
| Runtime | Node.js 20+ (ESM, TypeScript) |
|
|
414
|
+
| Vector Store | SQLite-vec (local, zero config) |
|
|
415
|
+
| Embedding | MiniLM-L12-v2 (local, 50+ languages, batch processing) |
|
|
416
|
+
| Search | Weighted RRF (semantic + BM25 + entity) + FSRS recency |
|
|
417
|
+
| Math | KaTeX (inline + display) |
|
|
418
|
+
| Code | lowlight / highlight.js (40+ languages) |
|
|
419
|
+
| 3D | React Three Fiber + Three.js |
|
|
420
|
+
| AI | MCP (21 tools) + Anthropic SDK |
|
|
421
|
+
| P2P | Hyperswarm (optional, differential privacy) |
|
|
422
|
+
| CI | GitHub Actions (Node 20 + 22) |
|
|
423
|
+
|
|
424
|
+
---
|
|
425
|
+
|
|
426
|
+
## Security
|
|
427
|
+
|
|
428
|
+
- **Local-first** — no data leaves your machine unless you use `--ai`
|
|
429
|
+
- **Vault files never modified** — indexes into SQLite, originals untouched
|
|
430
|
+
- **Electron sandbox enabled** — renderer runs with reduced OS privileges
|
|
431
|
+
- **IPC path validation** — all file operations stay inside vault root
|
|
432
|
+
- **API auth token** — per-session, header-only (`X-Stellavault-Token`). Token endpoint is same-origin-only
|
|
433
|
+
- **CORS allow-list** — `localhost` / `127.0.0.1` only by default; MCP HTTP transport opt-in
|
|
434
|
+
- **SSRF protection** — private IPs blocked on URL ingest
|
|
435
|
+
- **E2E encryption** — AES-256-GCM for cloud sync
|
|
436
|
+
|
|
437
|
+
### Federation (experimental, off by default)
|
|
438
|
+
|
|
439
|
+
Peer-to-peer semantic search is shipped as an **opt-in experimental feature**. The default install does **not** join any swarm and never shares data.
|
|
440
|
+
|
|
441
|
+
Enable explicitly:
|
|
442
|
+
|
|
443
|
+
```bash
|
|
444
|
+
# PowerShell
|
|
445
|
+
$env:STELLAVAULT_FEDERATION_EXPERIMENTAL = "1"
|
|
446
|
+
|
|
447
|
+
# bash / zsh
|
|
448
|
+
export STELLAVAULT_FEDERATION_EXPERIMENTAL=1
|
|
449
|
+
|
|
450
|
+
stellavault federate join
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
When enabled, federation uses Ed25519 identities with signed envelopes, mutual challenge-response handshake, per-envelope replay nonces, handshake timeout, per-peer rate limiting, and a receive-only sharing default (`myNodeLevel=0`). Run `set-level 1+` in the federation prompt to actually share titles/snippets with peers.
|
|
454
|
+
|
|
455
|
+
> [!WARNING]
|
|
456
|
+
> **Upgrade note (v0.7.4)** — federation wire format bumped from v2.0 to v2.1 (envelope-level nonce). v0.7.3 federation nodes are not compatible. Existing `~/.stellavault/federation/sharing.json` files are **not** auto-downgraded to the safer defaults; review your `myNodeLevel` if you previously opted in.
|
|
457
|
+
|
|
458
|
+
See [SECURITY.md](SECURITY.md) for full details.
|
|
459
|
+
|
|
460
|
+
## Troubleshooting
|
|
461
|
+
|
|
462
|
+
```bash
|
|
463
|
+
stellavault doctor # Check config, vault, DB, model, Node version
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
Common issues:
|
|
467
|
+
- **"Command not found"** → `npm i -g stellavault@latest`
|
|
468
|
+
- **"API server not found"** → `npx stellavault graph`
|
|
469
|
+
- **Empty graph** → `stellavault index`
|
|
470
|
+
- **Slow first run** → AI model downloads ~30MB once
|
|
471
|
+
|
|
472
|
+
## Contributing
|
|
473
|
+
|
|
474
|
+
Issues and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) to get started, and [SECURITY.md](SECURITY.md) to report a vulnerability responsibly.
|
|
475
|
+
|
|
476
|
+
## License
|
|
477
|
+
|
|
478
|
+
MIT — full source code available for audit.
|
|
479
|
+
|
|
480
|
+
## Links
|
|
481
|
+
|
|
482
|
+
- **[⬇ Download Desktop App](https://github.com/Evanciel/stellavault/releases/tag/desktop-v0.3.0)**
|
|
483
|
+
- [Landing Page](https://evanciel.github.io/stellavault/)
|
|
484
|
+
- [Obsidian Plugin](https://github.com/Evanciel/stellavault-obsidian)
|
|
485
|
+
- [npm](https://www.npmjs.com/package/stellavault)
|
|
486
|
+
- [GitHub Releases](https://github.com/Evanciel/stellavault/releases)
|
|
487
|
+
- [Security Policy](SECURITY.md)
|
|
488
|
+
|
|
489
|
+
---
|
|
490
|
+
|
|
491
|
+
<div align="center">
|
|
492
|
+
|
|
493
|
+
**Found this useful?** ⭐ [**Star Stellavault**](https://github.com/Evanciel/stellavault) — it genuinely helps the project reach more people who think in connected notes.
|
|
494
|
+
|
|
495
|
+
<sub>Built with ✦ for second-brain builders. · <a href="https://github.com/Evanciel/stellavault/releases">Download</a> · <a href="#mcp-integration-21-tools">Connect Claude</a> · <a href="https://github.com/Evanciel/stellavault/issues">Report an issue</a></sub>
|
|
496
|
+
|
|
497
|
+
</div>
|