This is the Threshold Vault / Shards core and offline recovery package.
It is not the full Threshold Vault commercial application. It does not include payment processing, order management, administration, fulfillment, email delivery, or any other business logic.
- Core cryptographic library (
src/index.ts): Shamir Secret Sharing over GF(256) with AES-256-GCM encryption. Pure TypeScript, browser-compatible, no runtime dependencies. - Offline recovery tool (
offline/threshold-vault-offline-recover.html): A self-contained HTML file that lets you recover a secret from shard codes without a network connection or any server. Open it as a local file in any modern browser. - Test vectors (
test-vectors/offline-recovery-vectors.json): Deterministic test vectors for verifying the implementation. - Format documentation (
docs/format.md): Technical specification for the compact recovery code format. - Offline recovery guide (
docs/offline-recovery.md): How to use the offline recovery tool safely.
This package lets users verify and recover shard codes without thresholdvault.com. If the Threshold Vault service becomes unavailable, the cryptographic algorithm, offline recovery tool, and format specification in this package are sufficient to recover any secret split with Threshold Vault.
Always test your recovery workflow with dummy (non-sensitive) data before you need it for real.
Do not test your actual recovery procedure for the first time in an emergency. Use the test vectors in test-vectors/offline-recovery-vectors.json or create your own dummy split to verify the tool works on your device.
- Open
offline/threshold-vault-offline-recover.htmlin a modern browser (Chrome, Firefox, Safari, Edge). - You can open it as a
file://URL without a web server. - Disable your network connection if handling a real high-value secret.
- Enter the recovery codes from at least M shard cards (where M is the threshold for your scheme).
- Click "Reconstruct secret".
- Reveal the recovered secret only when you are in a private, trusted environment.
The tool performs all decoding, decryption, and reconstruction locally in the browser. Nothing is sent over the network.
Verify the SHA-256 hash of the offline HTML before use:
sha256sum offline/threshold-vault-offline-recover.html
# Compare against: offline/threshold-vault-offline-recover.html.sha256Requirements: Node.js 18+, npm or pnpm.
npm install
npm test # Run the test suite
npm run build # Compile TypeScript to dist/The public repository location is https://github.com/threshold-vault/shards-core.
MIT License. Copyright 2026 Mindcraft Inc. See LICENSE for the full text.
See SECURITY.md for security notes, known risks, and responsible disclosure contact.