@noy-db/in-devtools
v0.6.0
Published
Framework-agnostic read-only inspector for a live noy-db — vaults, collections, schema, stats, records, and live writes.
Downloads
6,763
Readme
@noy-db/in-devtools
Framework-agnostic, read-only inspector for a live noy-db — vaults, collections, schema, stats, records, and live writes.
Part of @noy-db/hub — the zero-knowledge, offline-first, encrypted document store.
Install
pnpm add @noy-db/hub @noy-db/in-devtoolsWhat it is
createInspector(db, { meter? }) turns a live Noydb instance into serializable, read-only views for a CLI, a browser panel, or the terminal TUI (@noy-db/in-devtools-tui). It is a pure consumer of public hub APIs — read-only and zero-knowledge-respecting: it never holds secrets and shows only what the caller's unlocked session can already read.
import { createInspector } from '@noy-db/in-devtools'
const inspector = createInspector(db)
inspector.listVaults() // accessible vaults
inspector.snapshot(vault) // collections: fields, indexes, refs, stats
inspector.records(vault, 'invoices', { limit: 50 }) // page decrypted rows (default 50, ceiling 500)
inspector.subscribe((e) => console.log(e)) // live write events
inspector.pendingWrites() // write-queue statePass a @noy-db/to-meter handle as meter to also expose meterSnapshot().
Documentation
- Guide —
content/docs/families/in/devtools.md - Source —
packages/in-devtools - Issues — github.com/vLannaAi/noy-db/issues
License
MIT
