Nola

a TypeScript superset where LLM inference is a language feature

Working when we checked on .

Visit Nola

What is Nola?

Nola is a TypeScript superset (.tsi) that makes LLM inference a language feature: typed `ask` expressions resolve to TypeScript values, with JSON Schema derived from existing types at compile time. It is aimed at TypeScript developers who want model calls without SDK glue, prompt libraries, or manual schema maintenance. Three constructs (`infer`, `Intent<T>`, `ask`) shape model context, and one config file names the provider and model. Tooling includes a VS Code extension with diagnostics and debugging, a CLI, and nola console, a local trace viewer for every ask. Users bring their own provider API key, and code lowers to plain TypeScript.

Nola pricing

Pricing model: Freemium

Free tier available (no API key needed for initial local ledger replay); pricing for live providers and Nola Platform not disclosed

Nola pros

  • JSON Schema derived from TypeScript types at compile time, no Zod needed
  • Single command scaffolds a runnable project that works offline via a committed replay ledger
  • VS Code extension offers highlighting, diagnostics, completion, go-to-definition, and F5 debugging
  • nola console is a local trace viewer storing every ask and attempt in SQLite
  • Comparisons and full runnable projects for Vercel AI SDK, LangChain, OpenAI SDK and others in the repo
  • Browser playground available to try it before installing

Nola cons

  • Requires a third-party provider API key for live model calls
  • Requires Node ≥ 22.18
  • Zed and JetBrains editor support listed as 'soon', not yet available
  • Advanced constructs like model-decided if/switch/loops are roadmap items, not in the release

Frequently asked questions about Nola

What is Nola?

Nola is a TypeScript superset (.tsi files) where LLM inference is a language feature. Typed `ask` expressions resolve to TypeScript values, and the code lowers to plain TypeScript.

Who is Nola for?

It is for TypeScript developers who want to call AI models with typed values and compiler support instead of assembling schemas, prompts, and types by hand with an SDK.

How does Nola derive JSON Schema?

The compiler runs on TypeScript's own type checker and derives the JSON Schema from the TypeScript type of an ask, so no Zod or extra schema tools are needed.

What are Nola's three core constructs?

`infer` defines an AI model context boundary, `Intent<T>` is what should be inferred inside it, and `ask` resolves it to a value of type T.

Does the first run require an API key?

No. The starter project runs offline from a committed replay ledger, so the first run needs no API key. A vendor and key are only required when using a live model.

What Node version is required?

Node ≥ 22.18 is required to use the Nola CLI and scaffolding.

Which editors support .tsi files?

A VS Code extension provides highlighting, diagnostics at .tsi positions, hover, completion, go-to-definition, and F5 debugging with breakpoints. Zed and JetBrains support are listed as coming soon.

What is nola console?

It is a local trace viewer. Setting telemetry to http://127.0.0.1:4141 in nola.config.ts makes every ask appear grouped by project, trace, ask, and attempt, stored in a per-machine SQLite file.

How is a project started?

Running `npm create nola@latest` scaffolds a project that already runs, with a provider, editor, and coding agent set up via a wizard.

Can Nola be tried in the browser?

Yes, the site offers a playground at nola.sh/playground to try Nola before installing anything.

Categories

Use cases

Alternatives to Nola

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z