Skip to content
JevDirectory.org
OfficialRepos & SDKsVerified 2026-09-20

JavaScript SDK Guide

Quickstart for @typesafe-ai/sdk on Node 20+: answer types inferred from your questions, a choice() helper, and one systemOne call to classify a support ticket.

Category
Repos & SDKs
Published by
TypeSafe AI
Author
Added
2026-09-20
Tagsofficialdocssdkjavascripttypescript

Highlights

  • Install with npm install @typesafe-ai/sdk; Node.js 20 or newer is required.
  • The client reads TYPESAFE_API_KEY from the environment.
  • Answer types are inferred from your questions; the package ships ESM, CommonJS, and declarations.

Quickstart

ts
import { choice, TypeSafeClient } from "@typesafe-ai/sdk";

const client = new TypeSafeClient();
const response = await client.systemOne({
  state: { document: "I was charged twice. Please fix this ASAP." },
  questions: {
    category: choice("What is this ticket about?", {
      billing: null,
      technical: null,
      other: null,
    }),
  },
});

console.log(response.answers.category.choice);

Watch out

The docs track a specific SDK release, so check the changelog when behavior and examples drift apart.

More like this

Official TypeScript/JavaScript client with inferred answer types, retries, and a question DSL. `npm install @typesafe-ai/sdk`.
Repos & SDKs#official#sdk#typescript
The official SDK hub: Python and JavaScript/TypeScript clients with typed questions and answers plus automatic retries, and the HTTP API for every other language.
Repos & SDKs#official#docs#sdk
Official
Usage guide for typesafe-sdk: sync and async clients, uv and pip installs, and one request mixing Noul, Choice, and Score questions with answers grouped by type.
Repos & SDKs#official#docs#sdk
Official
Back to all resources

From the community

Posts from builders shipping with Jev right now.

Classifying 1,500 real emails

this model is actually insane at email classification i tested it on 1500 of my own emails to see how well it works and I am blown away

Diogo Almeida
Diogo Almeida
TypeSafe AI
@CompleteSkeptic

After co-inventing ChatGPT, I kept asking myself: why have superhuman chat models not led to AGI? I’ve spent the last 2 years in stealth building a new way to train models (RLCD), and a new type of frontier AI model that we are releasing today: Jev • 20-200x faster • 40-400x

Reply

Fast browser use with Stagehand

we built blazing fast computer/browser use with Jev + @Stagehanddev. this task cost $0.001 and executed at near instant speed (in a remote browser btw) the loop: observe the page, send a11y tree as state + actions as questions, Jev decides the next action, then Stagehand Show more

Diogo Almeida
Diogo Almeida
TypeSafe AI
@CompleteSkeptic

After co-inventing ChatGPT, I kept asking myself: why have superhuman chat models not led to AGI? I’ve spent the last 2 years in stealth building a new way to train models (RLCD), and a new type of frontier AI model that we are releasing today: Jev • 20-200x faster • 40-400x

Reply