Install
Worker-safe bearer-key generation and hashing primitives
For a published npm release:
npm install @fungi.computer/ear-tagpnpm, Yarn and Bun work the same way.
Entrypoints
Section titled “Entrypoints”@fungi.computer/ear-tag@fungi.computer/ear-tag/grants@fungi.computer/ear-tag/keys@fungi.computer/ear-tag/keys/node
What comes with it
Section titled “What comes with it”Installing @fungi.computer/ear-tag also installs @fungi.computer/cairn, zod.
Install or set up
Section titled “Install or set up”npm install @fungi.computer/ear-tagThe package ships ESM only and depends on Cairn for
identifiers and random strings, and on zod for its schemas. Hashing uses the
global Web Crypto API (crypto.subtle.digest), available in Node 19+ and in
Workers runtimes. It has four entrypoints: @fungi.computer/ear-tag (the crypto
primitives), @fungi.computer/ear-tag/grants (the grant vocabulary),
@fungi.computer/ear-tag/keys (the key store, free of any Node-specific type)
and @fungi.computer/ear-tag/keys/node (the node:sqlite adapter, so a Worker
consumer of ./keys never needs @types/node to typecheck).