Skip to main content
npm install @usenaive-sdk/node
# or: pnpm add @usenaive-sdk/node / yarn add @usenaive-sdk/node / bun add @usenaive-sdk/node
import { Naive } from "@usenaive-sdk/node";

const naive = new Naive({
  apiKey: process.env.NAIVE_API_KEY!,
  // baseUrl?: defaults to https://api.usenaive.ai
  // defaultUserId?: pin a user for the root client's data-plane calls
});
  • Node ≥ 18 (uses global fetch). Ships ESM + CJS with bundled types.
  • Server-only in v1 — your API key is a server secret. Don’t ship it to browsers.