SDKs
Every published package in the orangecheck ecosystem, with what it does, which
protocol it serves, and a link to the full API reference. All packages are
MIT-licensed and live in the
oc-packages (opens in a new tab) monorepo — the
Python SDK too, under sdk-py/.
The detailed per-export, per-type, per-signature reference under each
TypeScript package is auto-generated from the source via
TypeDoc (opens in a new tab) on every release. TSDoc comments in the
.ts source are the source of truth; per-package READMEs are short
taglines + install + a 30-second example. Hand-written narrative
(quickstart, "why this protocol") lives under each protocol's section
(OC Attest, OC Pledge, etc.).
Which to installLink to this section
Match the job to the package; click through to the reference.
| You're building… | Install |
|---|---|
| Gate an HTTP route | @ |
| Sign-in-with-Bitcoin flow | @ · issueChallenge / verifyChallenge |
| React app rendering badges | @ |
| Browser wallet integration | @ |
| Server-side TypeScript verifier | @ |
| Python / Django / FastAPI service | orangecheck (PyPI) |
| Scripts + one-shot checks | @ |
| Nostr relay filter | @ |
| Airdrop list filter | @ |
| E2E-encrypted envelopes | @ + lock- |
| Timestamped signed statements | @ + stamp- |
| Stake-weighted poll tally | @ |
| Scoped, bonded delegated signing | @ |
| Bonded commitments / future claims | @ |
Cross-cuttingLink to this section
Serve every sibling protocol.
| Package | Purpose |
|---|---|
@ | Core TypeScript SDK — check(, verify(, createAttestation(, issueChallenge(, scoring. |
orangecheck (Python) | Python SDK. Same surface as @, same conformance vectors. |
@ | oc shell — check / verify / discover / challenge, plus oc me integrator commands. |
@ | HTTP middleware for Express / Next / Fastify / Hono / Workers. |
@ | <OcBadge>, <OcGate>, <OcChallengeButton>. |
@ | One getSigner( API across UniSat / Xverse / Leather / OKX / Phantom. |
@ | Sybil-filter policy for Nostr relays. Strfry plugin + framework-agnostic core. |
@ | Sybil-resistant allowlist filter — turn a candidate list into a filtered set. |
@ | Ed25519 JWT verify + cookie helpers — consumer half of the ochk.io auth host. |
@ | React provider + hooks for cross-subdomain auth via the ochk.io host. |
@ | Browser Nostr client (publishEvent, queryEvents, DEFAULT_RELAYS). |
@ | Bitcoin message signatures: verifySignature( for BIP-322 and legacy BIP-137, and since 1.1 signMessage( for a key you hold. No bitcoinjs-lib. |
@ (opens in a new tab) | The family design system — tokens, type, primitives and app chrome, scoped under data-. Stories at design.ochk.io (opens in a new tab). |
@ (opens in a new tab) | The orangecheck mark, with no dependencies: SVG strings, a data URI, a React component, and SVG and PNG files. See the sign-in button. |
@ (opens in a new tab) | Family-internal scaffolding for the . Next.js sites: SEO, security headers and CSP, the session gate, the OG card route, the sitemap, analytics. Not for third-party use. |
@ (opens in a new tab) | Family-internal Terms / Privacy / security-disclosure documents rendered by every family site. |
@ | Server-side event emit for oc insights, the family's first-party analytics. |
Per-protocol packagesLink to this section
OC LockLink to this section
| Package | Purpose |
|---|---|
@ | X25519 / HKDF-SHA256 / AES-256-GCM primitives. Narrow surface, audited. |
@ | Envelope format, RFC-8785 canonicalization, seal(, unseal(. |
@ | Device-key generation, BIP-322-bound binding statements, Nostr directory publish. |
@ (opens in a new tab) | Verifies the public artifacts of OC Chat, a mode of OC Lock: channel descriptors and posts, directory listings, did: session devices. |
OC StampLink to this section
| Package | Purpose |
|---|---|
@ | Canonical message, envelope format, stamp( + verify(, optional OC Attest reference. |
@ | OpenTimestamps calendar client, proof upgrade, pluggable anchor verifier. |
OC VoteLink to this section
| Package | Purpose |
|---|---|
@ | Reference implementation of oc-vote-protocol — canonicalize, pollId, commit, voterWeight, deterministic tally(. |
@ | React components for OC Vote — badge, poll, useTally. |
OC AgentLink to this section
| Package | Purpose |
|---|---|
@ | Envelope formats, scope grammar, verifyDelegation(, verifyAction(, verifyRevocation(. |
@ | Producer side — createDelegation(, signAsAgent(, revoke( over your wallet. |
@ | Model Context Protocol bindings for agent envelopes. |
@ | Adapter for Anthropic SDK tool-use canonicalization. |
@ | Adapter for OpenAI SDK tool-call canonicalization. |
@ | Adapter for LangGraph tool-call canonicalization. |
@ | Adapter for Vercel AI SDK tool-call canonicalization. |
OC PledgeLink to this section
| Package | Purpose |
|---|---|
@ | Pledge / outcome / abandonment envelopes, resolution grammar, createPledge(, verifyPledge(, createOutcome(, verifyBond(, classifyState(. |
Commercial productsLink to this section
| Package | Purpose |
|---|---|
@ | orangecheck client SDK (API at me.ochk.io) — sign-in, accounts, events. |
@ | OC Vault crypto, entry model, ocv: secret-reference resolver, API client. |
Command-line toolsLink to this section
| Package | Command | Purpose |
|---|---|---|
@ | oc | OC Attest — check / verify / discover / challenge; oc me integrator commands. |
@ (opens in a new tab) | oc- | Verify, inspect and canonicalize delegation / action / revocation envelopes. |
@ (opens in a new tab) | stamp, git- | Sign files and git tags with your Bitcoin address; anchor to Bitcoin. |
@ (opens in a new tab) | oc- | Tally, verify and inspect polls. |
@ (opens in a new tab) | oc- | Resolve ocv: secret references and inject secrets into a process. |
Deprecated — do not installLink to this section
Still on npm so old lockfiles resolve. Nothing new should depend on them.
| Package | Status |
|---|---|
@ | Deprecated. Frozen: fixes only, no new components. The family design system is @. |
@ | Deprecated. Unmaintained. Use @. |
@ | Deprecated. It verified webhook deliveries from fleet.ochk.io, which is retired. No replacement. |
@ | Deprecated. A client for console.ochk.io, which is retired. No replacement; the source is no longer in oc-packages. |
SemverLink to this section
Everything below 1.0 is pre-stable. Minor bumps CAN change exported types; patch bumps won't. Check the per-package README before upgrading; diff the changelog if something looks ambiguous.
@orangecheck/sdk, @orangecheck/agent-core, @orangecheck/pledge-core,
@orangecheck/lock-core, @orangecheck/stamp-core, @orangecheck/vote-core
and @orangecheck/bip322 are at v1.0.0+ — wire-format-stable; type changes are semver-respecting.
Cross-implementation conformanceLink to this section
The TypeScript and Python SDKs run the same canonical test vectors: OC Attest's from a vendored copy, OC Pledge's straight from the protocol repo. CI re-runs both suites on every push and fails on drift. This means: a canonical message built in TS and a canonical message built in Python for the same inputs are byte-identical. Ditto attestation IDs and pledge IDs. If you ever observe otherwise, it's a bug — please file it.
Local generation of the auto-gen referenceLink to this section
Clone oc-packages (opens in a new tab) and
oc-docs (opens in a new tab) as siblings, then:
cd oc-packages
yarn install
yarn docs:gen <pkg> # regenerate one package
yarn docs:gen:all # regenerate every package
yarn docs:check # exit 1 if regenerated docs differ from committed oc-docs
The generator writes into ../oc-docs/src/pages/sdk/<pkg>/. CI gates
drift via Phase 3.5: release tags auto-PR the regenerated tree to oc-docs
(gated on OC_DOCS_BOT_TOKEN).