How duckiteat/make-bio-database works
Duckiteat’s make bio database stores context-specific definitions as individually addressable concepts, with typed links and biochemical mechanism steps. The main workflow is: an AI drafts a patch from the current index, a person reviews it, and the browser or CLI validates and applies it to the database. Users can then inspect definition context and follow mechanism chains. The shared core implements the model and operations; the browser and CLI provide separate interfaces. Browser details and several README-described capabilities are represented from documentation, not sampled viewer source.
Main entry points: dbtool.mjs CLI · viewer.html Browser viewer · sample-patch.json Definition patch · db.json Definition database
Components 16
User interfaces
- Browser viewer
viewer.html - Index entry
index.html - CLI
dbtool.mjs
Shared domain engine
- Definition and mechanism index
core.js - Patch and validation
core.js - Context and mechanism output
core.js - Prompt and migration
core.js
Database and history
- Definition database
data/db.json - Applied patch history
data/patches - Browser storage
AI-assisted editing
- AI instructions and index
core.js - Definition patch
examples/sample-patch.json - Legacy bionote v3
- Sample patch
examples/sample-patch.json
Other components
- Person
- AI assistant
Connections 21
- Person → Browser viewer: uses
README.md - Index entry → Browser viewer: aliases
README.md - Browser viewer → Definition database: loads database
README.md - Browser viewer → Browser storage: stores edits
README.md - Browser viewer → Definition and mechanism index: uses shared logic
README.md - Person → CLI: runs commands
dbtool.mjs - CLI → Definition database: reads database
dbtool.mjs - CLI → Patch and validation: validates and merges
dbtool.mjs - CLI → Context and mechanism output: requests context or mechanism
dbtool.mjs - CLI → Prompt and migration: requests prompt or migration
dbtool.mjs - CLI → Definition database: writes database
dbtool.mjs - CLI → Applied patch history: records applied patches
dbtool.mjs - Definition and mechanism index → Context and mechanism output: builds mechanism index
core.js - Browser viewer → AI instructions and index: shows instructions
README.md - AI instructions and index → AI assistant: guides drafting
README.md - AI assistant → Definition patch: produces patch
README.md - Definition patch → Browser viewer: is reviewed and applied
README.md - Definition patch → CLI: is merged
README.md - CLI → Legacy bionote v3: reads for migration
dbtool.mjs - Prompt and migration → Definition patch: outputs migration patch
- Definition patch → Sample patch: example format
README.md