United Statesaidenybai/tla-ts
Formally verify TypeScript code with TLA+
Featured achievements
The project's latest awards
#1 Repository of the day
#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.cfgnext 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-tsreplaces each operator inModulewith the public static method of the same name and arity, matching TLC's override behavior. - CLI for checking:
npx tla-ts Spec.tlachecks a spec with its.cfg. Supports globs,-workers,-seed,-deadlock,-lncheck final, and-dumpin the supported dot/colorize/actionlabels/snapshot forms. - Proof obligation generation:
tla-ts prove -Nprints proof obligations liketlapm -N, with options like--printallobs,--summary,--strict, and--toolbox/--linefor Toolbox protocol messages. - Flexible proving: Run
tlapmfromPATHby default, or use--backend tla-tsto 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.
An executable specification language with delightful tooling based on the temporal logic of actions (TLA)
Easiest-ever formal methods language! Designed for developers crafting distributed systems, microservices, and cloud applications
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Reverse engineer anything with agents, from app behavior down to native binaries.
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
Interactive roadmaps, guides and other educational content to help developers grow in their careers.