docs(brain): correct npm install path — brain ships inside @hanzo/bot

This commit is contained in:
Hanzo AI
2026-05-11 17:50:37 -07:00
parent ce87fd7f49
commit bd1ecbdff8
+8 -3
View File
@@ -8,7 +8,7 @@ description: The brain.db substrate every Hanzo runtime hosts — pages, edges,
Hanzo Brain is the **knowledge substrate** every Hanzo agent, bot, and runtime shares. One SQLite file at `~/.hanzo/brain/brain.db` holds pages, edges, facts, and an FTS5 hybrid-search index. Every supported runtime writes the exact same schema, the exact same content-addressable ids, the exact same byte-on-disk format.
**Source:** [github.com/hanzoai/brain](https://github.com/hanzoai/brain)
**npm:** [`@hanzo/brain`](https://www.npmjs.com/package/@hanzo/brain)
**npm:** ships inside [`@hanzo/bot`](https://www.npmjs.com/package/@hanzo/bot) (TS canonical)
**Python:** [`hanzo-memory`](https://pypi.org/project/hanzo-memory/)
**Go:** [`github.com/hanzobot/go`](https://github.com/hanzobot/go)
**C++:** [`github.com/hanzobot/cpp`](https://github.com/hanzobot/cpp)
@@ -61,12 +61,17 @@ Pick the runtime that fits your stack. They all write the same file.
### TypeScript
The TS brain ships inside `@hanzo/bot`:
```bash
npm install @hanzo/brain
npm install -g @hanzo/bot
hanzo-bot serve
```
Use it programmatically:
```typescript
import { Brain } from '@hanzo/brain'
import { Brain } from '@hanzo/bot/brain'
const brain = await Brain.open('~/.hanzo/brain/brain.db')