tcomb is a JavaScript library for defining and checking runtime types in Node.js and browser environments. It gives developers a concise syntax for modeling values, structures, interfaces, enums, unions, refinements, and other domain-level constraints. The library is useful in JavaScript projects where static type information is unavailable or insufficient at runtime. It can validate external inputs, document data expectations, and support safer programming patterns without requiring a full type system migration. tcomb also serves as the foundation for related projects such as tcomb-validation and tcomb-form. Its main value is bringing lightweight, expressive runtime type modeling to JavaScript applications.

Features

  • Runtime type checking for JavaScript
  • Support for structs, lists, enums, unions, and refinements
  • Works in Node.js and browser environments
  • Concise syntax for domain model definitions
  • Foundation for tcomb-validation and tcomb-form
  • Useful for validating external or uncertain data

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow tcomb

tcomb Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of tcomb!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

2026-05-22