A decentralized digital garden protocol for the age of AI companions
Cambrian is a local-first, decentralized protocol for building personal knowledge graphs:
- 🌱 Digital Garden — Zettelkasten/evergreen note-taking
- 🔗 Knowledge Graph — Bi-directional wiki-links
- 📱 Local-First — Offline-capable, syncs when online
- 🌐 Decentralized — Nostr-inspired relay architecture
- 🤖 AI-Native — Memory layer for AI companions
cambrian/
├── app/ # Client application (React/Vite)
├── cli/ # Command-line interface
├── design/ # Protocol specifications (CIPs)
├── docs/ # Documentation
├── inspiration/ # Reference materials
├── node/ # Network node/relay (Bun/Postgres)
├── sdk/ # TypeScript SDK
└── www/ # Project website
| Folder | Description | Stack |
|---|---|---|
sdk/ |
Isomorphic TypeScript SDK | TypeScript |
app/ |
Client application | React, Vite, shadcn/ui, Zustand, Dexie |
node/ |
Network node/relay | Bun, Postgres |
cli/ |
Command-line tool | TypeScript, Bun |
www/ |
Project website | Vite, static |
| Document | Description |
|---|---|
| Plan | Roadmap and deliverables |
| Architecture | System design |
| Constitution | Vision and principles |
| Spec | Title |
|---|---|
| CIP-01 | Core Protocol & Event Structure |
| CIP-02 | Note Events & Content Format |
🚧 Day 0 — Protocol design and specification phase
MIT + Apache-2.0 dual license