{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "kraayenjon-awesome-jev--add-jev-decisions-to-javascript-app",
 "repo": "kraayenjon/awesome-jev",
 "repo_url": "https://github.com/kraayenjon/awesome-jev",
 "repo_slug": "kraayenjon-awesome-jev",
 "title": "Add Jev decisions to a JavaScript or TypeScript app",
 "page_title": "How to add Jev decisions to a JavaScript or TypeScript app with Awesome Jev",
 "summary": "Call the Jev API from Node.js with typed Choice, Noul, and Score questions.",
 "who": "A JavaScript or TypeScript developer who already runs a web or backend service and needs a fast decision step inside a request.",
 "problem": "Writing a decision step that returns valid, typed output each time is hard when the model returns free text.",
 "outcome": "A TypeScript function that takes a state object and returns typed answers to named questions.",
 "steps": [
  "Run `npm install @typesafe-ai/sdk`.",
  "Set TYPESAFE_API_KEY in your environment, then create a TypeSafeClient.",
  "Build a questions object with the choice and noul helpers, as in the README example.",
  "Call client.systemOne with your state and questions, then read the answers from the result.",
  "Wire the returned choice or noul value into your existing branch logic."
 ],
 "agent_prompt": "Using the repo kraayenjon/awesome-jev and the @typesafe-ai/sdk npm package, add a function in <target file> that takes a request body, sends it to client.systemOne with a choice question and a noul question, and returns both answers. Verify that the function compiles with TypeScript and that the returned object contains an answer for each question name.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README's JavaScript example stops before reading results, so check the result object shape in the official docs before relying on field names.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "",
 "requirements": [
  "Access to Jev through the TypeSafe waitlist, Vercel AI Gateway, or Cloudflare Workers AI",
  "A TypeSafe API key from the TypeSafe console, stored as TYPESAFE_API_KEY",
  "Python with pip for the Python SDK, or Node.js with npm for the JavaScript SDK"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/kraayenjon-awesome-jev/add-jev-decisions-to-javascript-app/",
 "md": "https://dedupedai.com/use-cases/kraayenjon-awesome-jev/add-jev-decisions-to-javascript-app/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/kraayenjon-awesome-jev--add-jev-decisions-to-javascript-app.json",
 "api_version": "v1"
}
