Skip to content
Docsv0.7.2

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.

  • Node.js v22 or later
  • A TypeScript project (the SDK ships its own type definitions)

The SDK is designed to live in your package.json as a project dependency:

Terminal window
pnpm add @denvig/sdk

Your package.json will then include:

package.json
{
"type": "module",
"dependencies": {
"@denvig/sdk": "^0.7.0"
}
}

The SDK is ESM-first and targets modern Node. A minimal tsconfig.json for a pnpm + TypeScript project:

tsconfig.json
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true
}
}

Create a small script to confirm everything is wired up:

check.ts
import { DenvigSDK } from '@denvig/sdk'
const denvig = new DenvigSDK({ client: 'my-app' })
console.log('denvig sdk', denvig.version())
Terminal window
pnpm tsx check.ts
# denvig sdk 0.7.0