arktype
type-level-regexp
arktype | type-level-regexp | |
---|---|---|
41 | 1 | |
3,375 | 106 | |
2.7% | - | |
7.9 | 7.6 | |
4 days ago | 11 months 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.
arktype
-
Library for benchmarking TS types
I primarily rely on that approach to benchmark ArkType's types.
- Introducing @arktype/attest: A new approach to type-level testing and benchmarks
-
TypeScript please give us types
I was one of the most outspoken supporters of this initiative until I started working on ArkType. That may sound oddly self-serving, and it would be naive to claim objectivity after having invested so much into my own solution to this problem. However, I don't think that's the primary reason I changed my mind.
Since it's not explicitly listed there, I feel I should shout out David Blass and his incredibly cool ArkType project: https://github.com/arktypeio/arktype
He sometimes (used to?) streams himself working on twitch and it's a really comfy place to hang out: https://www.twitch.tv/arktypeio
-
Using ArkType for TypeScript runtime validation
ArkType is a runtime validation library that can infer TypeScript definitions one-to-one and reuse them as highly-optimized validators for your data.
-
preferred way to type guard api response body?
Could also try ArkType if you haven't seen it.
-
Valid runtime typing with Dilav
How would you say the functional chaining style overall compares to a parsed syntax like ArkType?
-
Can someone recommend a library for data parsing similar to Zod, but with better support for input transformations/preprocessing?
I'm working on a library called ArkType maybe of interest to you.
-
Solving balanced parentheses problem using Dart's type system
If you're interested in the possibilities of this kind of stuff in TypeScript, you should check out ArkType.
-
Safer Type Checking At Both Runtime and Compile Time
Have you tried ArkType?
type-level-regexp
-
Announcing TypeScript 5.1 Beta
Previously, we'd avoid comparisons against character sets whenever possible due to the performance impact, but this should open the door to tons of new functionality, including making detailed regex validation and inference viable (shout-out to David Tai who recently implemented a type-safe regex parser and is working on adding similar functionality to ArkType :-)).
What are some alternatives?
zod - TypeScript-first schema validation with static type inference
regex-grammars - Generate regexes from PEG.js / Peggy grammars
proposal-decorators - Decorators for ES6 classes
magic-regexp - A compiled-away, type-safe, readable RegExp alternative
trpc - 🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
regexlearn.com - Learn RegEx step by step, from zero to advanced.
monorepo
Superstruct - A simple and composable way to validate data in JavaScript (and TypeScript).
typescript-runtime-type-benchmarks - 📊 Benchmark Comparison of Packages with Runtime Validation and TypeScript Support
Butlermock - Tool for creating mocks objects with fake data using TypeScript types/interfaces as schema and Faker as fake data source
typebox - Json Schema Type Builder with Static Type Resolution for TypeScript
pattern-grab - 🤛🏻 Regular Expression Data Grabber