ts-runtime
ts-runtime-checks
Our great sponsors
ts-runtime | ts-runtime-checks | |
---|---|---|
3 | 2 | |
480 | 229 | |
- | - | |
0.0 | 8.5 | |
over 3 years ago | about 1 month ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ts-runtime
- Why TS type guard for interfaces uses strings instead of implementing something better?
-
SafeScript runtime tool that add checks for JavaScript and TypeScript
There is also https://github.com/fabiandev/ts-runtime for Typescript that looks more polished. Too bad both these projects were abandoned, it would be such a cleaner alternative to libraries like io-ts.
-
TypeScript runtime type-checking - designed for simple use, through to enforcing API payload schema
I like io-ts though it has bad documentation. More random examples are ts-runtime and ajv. JS examples are joi, v8n, validate.js.
ts-runtime-checks
-
I made playground demo of typia - 20,000x faster validator
Wait, isn't that just https://googlefeud.github.io/ts-runtime-checks/ ?
-
My take on a typescript data / runtime validation library
Here's a link to the repo, it goes into more detail about the library's features and capabilities: https://github.com/GoogleFeud/ts-runtime-checks
What are some alternatives?
ajv - The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
x-value - A medium-neutral runtime type validation library.
typescript-is
io-ts - Runtime type system for IO decoding/encoding
you-are-not - A minimal, blazing fast, TypeScript runtime type-checker. It is intuitive, API-centric, and customisable. A must-have for API payload sanitiser, type-checking, validation, error handing and messaging helper -- all in a small and neat pack. [Moved to: https://github.com/calvintwr/not]
runtypes - Runtime validation for static types
cardboard-js - A very simple, yet powerful reactive framework, to create web applications. All of this with, no HTML, CSS, JSX, and no required build.
SafeScript - This package intent is to make "safe" JavaScript runtime by checking types at runtime and disallowing most of implicit coercion
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
zod - TypeScript-first schema validation with static type inference