@concile/id-codec
v0.1.5
Published
Document id encoding and decoding for the Concile engine.
Readme
@concile/id-codec
Document id encoding and decoding for the Concile engine.
A Concile document id packs a table number and a random internal id into a compact, self-validating string: base32-encoded with a checksum, so a corrupted or foreign id is rejected at decode time rather than silently misrouted. This package owns that codec and the binary primitives beneath it (base32, checksums, varints), plus the table registry that maps table names to numbers, storage id helpers, and the shard identity types used to route writes.
Everything in the engine that mints, parses, or compares a document id goes through this package, which is what lets ids stay stable across storage backends and appear as plain typed strings in application code.
This is an internal package of the Concile engine. Most applications should install
concileinstead.
Part of Concile — docs at https://concile-six.vercel.app/docs
License: FSL-1.1-Apache-2.0
