voidnote-sdk
v0.3.0
Published
Official SDK for VoidNote — zero-knowledge self-destructing notes and live encrypted streams
Maintainers
Readme
voidnote
Official TypeScript/JavaScript SDK for VoidNote — zero-knowledge self-destructing notes.
Install
npm install voidnote-sdkUsage
Read a note
import * as voidnote from "voidnote";
const result = await voidnote.read("https://voidnote.net/note/abc123...");
console.log(result.content); // decrypted content
console.log(result.destroyed); // true if view limit was reachedCreate a note (requires API key)
import * as voidnote from "voidnote";
const result = await voidnote.create("my secret value", {
apiKey: "vn_...",
maxViews: 1,
title: "Deploy key",
});
console.log(result.url); // share this linkEnvironments
Works in Node.js 18+, Deno, Bun, Cloudflare Workers, and modern browsers (anything with Web Crypto API + fetch).
