The library for type systems and type checking for software languages in the web
OpenSource, written in TypeScript, and follows pragmatic approaches for simplifying type checking in practical language engineering projects by providing default implementations for recurring problems.
Typir is a stand-alone library that provides a TypeScript API for language engineers without requiring an additional, external DSL for formalizing types. Whether you're building a domain-specific language, a programming language, or any other language-based tool, Typir simplifies type checking with ready-to-use implementations.
Typir focuses on static type systems for checking during development time.
The core package with default implementations for type checking services and predefined types. Use this for any language, with or without a language workbench.
The binding of Typir for Langium, a language workbench for developing textual DSLs in the web. Includes all features of Typir core plus Langium-specific APIs.
Static type checking for the LOX programming language, implemented with Typir-Langium. Demonstrates classes, functions, and advanced type checking.
View Example →A reduced version of LOX, implemented with Typir-Langium. Perfect for learning the basics of type checking with Typir.
View Example →A simple expression language with a handwritten parser, implemented with Typir core. Shows how to use Typir without a language workbench.
View Example →TypeFox Blog • June 6, 2025
Join the Community