SecondBrain DB (sbdb)

•
14
•

Manages markdown-based knowledge bases with per-document integrity, schema validation, and semantic search capabilities.

SecondBrain DB (sbdb) is a file-backed knowledge base ORM designed for modern documentation frameworks like VitePress, Docusaurus, and Obsidian. It implements a robust per-document sidecar integrity system to prevent data drift and tampering while ensuring git-friendly collaboration with zero merge conflicts. Beyond simple storage, it offers schema-driven validation, Starlark virtual fields, a SQLite-powered knowledge graph, and advanced search features including grep and semantic search, making it an essential tool for developers managing complex, high-integrity technical documentation or personal knowledge graphs.

主要功能

01SQLite-backed knowledge graph for analyzing document relationships and neighbors.
0214 GitHub stars
03Schema-driven YAML validation and Starlark virtual fields for structured data.
04Built-in semantic search and grep-based search for efficient knowledge retrieval.
05Git-optimized architecture that eliminates merge conflicts by decentralizing record storage.
06Per-document integrity sidecars with HMAC signing and tamper detection.

使用场景

01Embedding a structured markdown database into Go applications using the public API.
02Building high-integrity documentation sites using VitePress, Docusaurus, or Jekyll.
03Managing large personal knowledge bases in Obsidian with automated validation and search.