Runnable examples
Clone the repository, then install and build:
npm ci
npm run buildNode.js
node examples/node-basic.jsThe Node example runs direct and hybrid encryption, binary values, signatures, and key validation against the built package.
Browser
Serve the repository on localhost and open examples/browser-basic.html. It loads the local standalone global bundle. Browser cryptography requires a secure context: HTTPS or localhost.
For automated checks:
npx playwright install chromium
npm run smoke:browserInstall the optional AI example dependencies before running the combined browser smoke suite, as described below.
JSON memory and signed messages
The private AI integration app demonstrates tenant-bound encrypted memory, key rotation, and scoped signed messages:
npm --prefix examples/ai-integrations ci
npm --prefix examples/ai-integrations run memory
npm --prefix examples/ai-integrations run messagesAI SDK persistence and docs assistant
npm --prefix examples/ai-integrations run typecheck
npm --prefix examples/ai-integrations test
npm --prefix examples/ai-integrations run assistant
npm --prefix examples/ai-integrations run demoThe assistant demo opens at http://127.0.0.1:3001. It uses offline fixtures and approved templates. Real provider calls require a separate explicit CLI opt-in and credentials; they can incur charges. See integration constraints and persistence details.