Runnable code and integration guides for wiring neuron-db into apps, websites, APIs, and chatbots.
Located in rust/neuron-core/examples/:
| example | what it shows | run |
|---|---|---|
quickstart |
insert / read / update / delete on a durable NeuronDB |
cargo run --example quickstart --features sqlite |
chatbot_memory |
the recall → inject → write chatbot loop (embedded) | cargo run --example chatbot_memory --features sqlite |
user_profiles |
per-user memory for an app backend; isolated scopes | cargo run --example user_profiles --features sqlite |
plastic_adaptive |
strength / decay / neurotransmitter spreading recall | cargo run --example plastic_adaptive |
sharded_scale |
NeuronRouter holding 5k facts with fan-out recall |
cargo run --example sharded_scale |
encrypted_secrets |
SecureNeuronDB — encrypted values, per-scope secret |
cargo run --example encrypted_secrets --features secure |
A two-pane proof of concept: a memory chatbot on the left, and a live feed of everything
neuron-db is collecting from the browser on the right (mouse/clicks/scroll/keys/session).
Open examples/browser-demo/index.html, or run examples/browser-demo/run.sh / run.ps1 /
start-demo.bat to back it with the real local server. See browser-demo/README.md.
A Vite + TypeScript app that installs @gary23w/neuron-db
from npm and uses it as its only database: a PBKDF2 login (accounts stored as neuron-db variables) plus a
memory console — remember, recall (coverage + µs timing), assoc, chain, forget, stats, and
ask, which routes the turn through the gary-neuron cortex. npm install && npm run dev →
http://localhost:8076. See npm-demo/README.md.
For talking to a running serve instance from any language:
curl.sh— shellweb_app.html— a browser page usingfetch()(a per-user memo app)node_client.js— Node 18+ (built-in fetch)python_client.py— Pythonrequests(the DB is Rust; your app just speaks HTTP)
Start a server first: serve neurons.db 8088 (or docker compose up -d).
- CHATBOT.md — give a chatbot durable per-user memory: recall facts on the fly and inject them into the model's context. Includes the write/recall/inject loop and a Node + LLM example.
- EXISTING_API.md — add neuron-db to an existing API, either by embedding the Rust crate or running it as a sidecar HTTP service.
- docs/API.md — the full data model and operation reference.
- docs/DEPLOY.md — build, install, Docker, env, backups.