A thin hosted store for reference material: any file, kept unchanged and addressed by SHA-256, for coding agents over MCP
Notes get rewritten; the material they are written from does not. docnook is
where that material is kept. A document here is any file worth keeping as it
was: a PDF, an image or a scan, a text or Markdown file, a saved web page, a
dataset, an archive. The format does not matter and is never interpreted. Each
document is stored unchanged under the hash of its bytes, a write is proved by
reading it back, and what is stored can be checked on demand against what
should be there. Notes live elsewhere and point at a document as
doc:sha256:<hex>.
Status: 0.1. docnook and docnook-core are published to crates.io.
Before 1.0 the stored form, the HTTP surface and the command can still change
from one minor version to the next. What each version holds is listed in
CHANGELOG.md; the model it follows is written down in the crate
documentation (docs.rs/docnook, the docnook::model
module).
| crate | role |
|---|---|
docnook |
Umbrella: the name users depend on and the docnook command (cargo install docnook). Re-exports the core; the command (with its MCP server, docnook mcp) and what only it needs are behind the default cli feature, so a library user writes default-features = false. The client of the server's HTTP surface is the module client, behind the feature client, which cli turns on. |
docnook-core |
Core (SDK): domain (pure types and the rules of their values), app (use cases and their ports), infra (adapters with real I/O), and, behind the feature api, api (the JSON shapes of what crosses a network, and their mapping). |
docnook-store |
The places: the adapters of the Location port for object stores (Amazon S3, Backblaze B2, Google Cloud Storage) and the stored form they share. Holds the cloud SDK, so the core does not. |
docnook-server |
The service that is hosted for others: the HTTP surface over the use cases, one space, one actor and one permission to delete for each token. Not published; it has its own binary, docnook-server. |
The layer rules are in arch-lint.toml and run with cargo test.
just check is the definition of green. CONTRIBUTING.md
has the conventions, PUBLIC_DEVELOPMENT.md the
disclosure policy, and AGENTS.md the pointers for coding agents.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.