How escodb/core works
Escodb Core is an end-to-end encrypted document store designed for cloud storage. The intended user workflow is to configure or open a Store, address documents by path, and persist encrypted data through a selected adapter; the tree also indicates sharding, scheduling, and task execution as distinct internal stages. The README is empty and Store’s implementation was not sampled, so its orchestration links are not asserted. The explicit links shown come from the sampled exports, Router, Context, and key-sequence cipher code.
Main entry points: key_sequence.js Key sequence · web_exports.js Web exports · node_exports.js Node exports · context.js Encryption context
Components 22
Store API
- Node exports
exports/node_exports.js - Web exports
exports/web_exports.js - Document store
lib/store.js - Store configuration
lib/config
Storage and layout
- Storage adapters
lib/adapters - Web storage adapter
lib/adapters/web_storage.js - Path router
lib/router.js - Shard handling
lib/shard.js - Cache
lib/cache.js
Encryption and integrity
- Encryption context
lib/ciphers/context.js - Cipher suite
lib/ciphers - Key sequence
lib/ciphers/key_sequence.js - Encrypted cell
lib/cell.js - Metadata verifier
lib/verifier.js - Crypto backends
lib/crypto - Binary and canonical format
lib/format
Scheduling and execution
- Operation scheduler
lib/schedule.js - Task model
lib/task.js - Task executor
lib/executor.js - Concurrency primitives
lib/sync
Other components
- Application
- Browser storage
Connections 15
- Application → Node exports: imports
- Application → Web exports: imports
- Node exports → Document store: exports
- Web exports → Document store: exports
- Web exports → Storage adapters: exports
- Web storage adapter → Browser storage: reads and writes
- Path router → Crypto backends: signs paths
- Encryption context → Binary and canonical format: canonical-encodes
- Key sequence → Encrypted cell: stores keys in
- Key sequence → Cipher suite: encrypts with
- Key sequence → Binary and canonical format: encodes key data
- Key sequence → Metadata verifier: verifies metadata
- Key sequence → Concurrency primitives: serializes key access
- Key sequence → Encryption context: builds contexts
- Encrypted cell → Cipher suite: uses