Official SDK

@typesafe-ai/sdk

Official TypeScript/JavaScript client for POST api.typesafe.ai/v1/systemone.

Source repository

Runnable
Runnable in Node.js 20+ once you have a TypeSafe key.
Keys
Reads TYPESAFE_API_KEY from the environment. Never commit the key to a repo or paste it into a skill file.
Platforms
Node.js 20+, TypeScript, JavaScript
Primitives
choice, score, noul
npm install @typesafe-ai/sdk

If you are shipping application code, start here rather than hand-rolling fetch wrappers. The client infers answer types from the questions you pass into systemOne().

Official docs: docs.typesafe.ai/api and the JavaScript SDK pages on docs.typesafe.ai.

Try the request in the JEV Hub playground first: it sends the same systemone JSON with your key and shows the live answer. Then move the questions into systemOne() in your code.

Caveats

  • Official SDK. A TypeSafe API key is required.
  • Helper builders are noul(), choice(), and score(). There is no mode parameter.
  • Pin jev-1.13.0 if you tune thresholds; jev-latest moves when TypeSafe ships a release.

Related guides

Back to catalog