RepositoryTLAUSUnited States
aidenybai

aidenybai/tla-ts

Formally verify TypeScript code with TLA+

301stars
14forks
0issues
11views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: formal-verification

#1 Repository of the day

1
TINIX TRENDING·Topic: tlaplus

#1 Repository of the day

⚡ TLA+ model checking without the JVM

Run TLC-style checks anywhere JavaScript runs.

tla-ts is a TypeScript-based TLA+ interpreter and model checker that aims to be a drop-in replacement for TLC. Instead of requiring the JVM, it runs in the browser, Node, and Bun. It keeps close CLI compatibility with TLC while also adding proof-obligation tooling and the option to use its own backend or pass through to tlapm.

✨ Highlights

  • Drop-in for TLC: Accepts many of TLC's options, reads Spec.cfg next to a spec, uses the same exit codes for results, and matches TLC's behavior for supported cases.
  • Runs anywhere JS runs: No JVM required. Specs can be checked from Node, Bun, or directly in the browser via the playground.
  • Java operator override: If a spec's directory contains Module.class, tla-ts replaces each operator in Module with the public static method of the same name and arity, matching TLC's override behavior.
  • CLI for checking: npx tla-ts Spec.tla checks a spec with its .cfg. Supports globs, -workers, -seed, -deadlock, -lncheck final, and -dump in the supported dot/colorize/actionlabels/snapshot forms.
  • Proof obligation generation: tla-ts prove -N prints proof obligations like tlapm -N, with options like --printallobs, --summary, --strict, and --toolbox/--line for Toolbox protocol messages.
  • Flexible proving: Run tlapm from PATH by default, or use --backend tla-ts to prove obligations with its own provers across worker threads.
  • Programmatic API: The check() function can run specs from code with custom module loading and print callbacks.

💡 Why it matters

By moving TLA+ model checking to JavaScript, tla-ts removes the JVM dependency while keeping the workflows people already use with TLC. Its support for both obligation generation and actual proving, plus Java method overrides, lets it fit into existing TLA+ projects without forcing a full toolchain swap. Best for running checks in JS environments, integrating into tooling, or trying TLA+ without installing Java.


#FormalVerification #TLAPlus #TypeScript #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
quint-co/quint

An executable specification language with delightful tooling based on the temporal logic of actions (TLA)

2.3k
Nov 27, 2026
RepositoryGo
fizzbee-io/fizzbee

Easiest-ever formal methods language! Designed for developers crafting distributed systems, microservices, and cloud applications

386
Nov 26, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

213.0k
Dec 3, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

488.2k
Dec 3, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

380.2k
Sep 15, 2026
RepositoryTypeScript
nilbuild/developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

373.3k
Dec 3, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026