SDK Installation
The @denvig/sdk package is the programmatic, in-process API behind the
CLI. Install it into your own project to build a custom
integration — a Raycast extension, an editor plugin, a dashboard, or a CI script —
on top of the exact same logic the CLI uses.
Requirements
Section titled “Requirements”- Node.js v22 or later
- A TypeScript project (the SDK ships its own type definitions)
Add the package
Section titled “Add the package”The SDK is designed to live in your package.json as a project dependency:
pnpm add @denvig/sdknpm install @denvig/sdkyarn add @denvig/sdkYour package.json will then include:
{ "type": "module", "dependencies": { "@denvig/sdk": "^0.7.0" }}TypeScript setup
Section titled “TypeScript setup”The SDK is ESM-first and targets modern Node. A minimal tsconfig.json for a
pnpm + TypeScript project:
{ "compilerOptions": { "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "strict": true, "esModuleInterop": true, "skipLibCheck": true }}Verify the install
Section titled “Verify the install”Create a small script to confirm everything is wired up:
import { DenvigSDK } from '@denvig/sdk'
const denvig = new DenvigSDK({ client: 'my-app' })console.log('denvig sdk', denvig.version())pnpm tsx check.ts# denvig sdk 0.7.0Next steps
Section titled “Next steps”- Getting Started — resolve a project and run your first operation.
- Projects & Worktrees — the resource model the SDK is built around.