TypeScript SDK
The VeriProof TypeScript SDK requires Node.js 22 or later. It checks policy before a governed action runs and before its result is released, records session evidence, handles signed human review, and can stop an active governed run through its AbortSignal.
Available packages
| Package | Category | Framework support |
|---|---|---|
@veriproof/sdk-core | Core SDK | Application-owned actions |
@veriproof/sdk-adapter-anthropic | Enforce adapter | Anthropic SDK 0.126.0 |
@veriproof/sdk-adapter-express | Enforce adapter | Express 5.1.0 |
@veriproof/sdk-adapter-fastify | Enforce adapter | Fastify 5.6.2 |
@veriproof/sdk-adapter-genkit | Enforce adapter | Genkit 1.42.0 |
@veriproof/sdk-adapter-google-ai | Enforce adapter | Google GenAI 2.22.0 |
@veriproof/sdk-adapter-langchainjs | Enforce adapter | LangChain.js 1.5.11 |
@veriproof/sdk-adapter-llamaindex | Enforce adapter | LlamaIndexTS 0.12.1 |
@veriproof/sdk-adapter-mastra | Enforce adapter | Mastra 1.51.0 |
@veriproof/sdk-adapter-nextjs | Enforce adapter | Next.js 16.2.10 |
@veriproof/sdk-adapter-openai-agents | Enforce adapter | @openai/agents 0.3.9 |
@veriproof/sdk-ai-sdk | Enforce adapter | Vercel AI SDK 7.0.51 |
Adapters install their required Core SDK dependency automatically.
What the core package includes
Veriproof.fromEnv()andnew Veriproof(options)for one application-scoped client.govern(actionName, input, action, options)with typed results and areview_requiredcheckpoint.HumanReviewRuntimewithsave,receive,resume, andreconcileover an application-owned durable store.Industry.fact(...)and generated industry vocabularies under@veriproof/sdk-core/industries/*.VeriproofTestHarnessunder@veriproof/sdk-core/testingfor network-free tests.- Lower-level transport, sensitive data, and policy-contract helpers under
@veriproof/sdk-core/advanced.
Start using the SDK
Open Tools and SDKs in the VeriProof portal, select TypeScript, and follow its installation instructions. Start with @veriproof/sdk-core, then add the adapter for each framework your application uses.
Set the application SDK key as VERIPROOF_API_KEY. Hosted VeriProof uses https://ingest.veriproof.app. VeriProof Private uses the ingest API base URL for that instance as VERIPROOF_ENDPOINT. The same endpoint handles session ingest and policy checks.
Use the TypeScript core guide for setup and governed-action examples. Check SDK categories and framework coverage for what each adapter controls and what stays with the core governed-action helper.