The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 18 TypeScript type-safety Projects
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
eslint-plugin-total-functions
An ESLint plugin to enforce the use of total functions (and prevent the use of partial functions) in TypeScript.
-
typed-xlsx
A simple yet powerful library to effortlessly export any data into XLSX sheets, with the full power of type-safety and awesome DX
-
ts-pojo-error
🔥 Type safe pojo error will help you to easily create typed and serializable error.
-
firebase-rules
A type-safe Firebase Real-time Database Security Rules builder. Compose and re-use common rules. Reference constants used throughout the project. Catch any errors and typos. Auto-completion.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
There are a bunch of awesome type utility libraries that may boost your works on types, like ts-toolbelt, utility-types, SimplyTyped, etc., which you can already use.
There is an implementation of SQL that operates on a table shaped type, entirely at type level. For your amusement: https://github.com/codemix/ts-sql
There are a bunch of more practical takes that codegen types from your database and generate types for your queries, eg: https://github.com/adelsz/pgtyped
To me the second approach seems much more pragmatic because you don’t need to run a SQL parser in a fairly potato interpreter on every build
Project mention: PostgresJs: The Fastest full featured PostgreSQL client for Node.js and Deno | news.ycombinator.com | 2023-10-14Super happy user of this [1] it's rather minimalistic but great.
[1] https://github.com/Ff00ff/mammoth
If you have ideas that could complement this list, create an issue in the project repository. I’d be happy to discuss! 👋
Project mention: Show HN: Kysely, a type-safe SQL query builder for TypeScript | news.ycombinator.com | 2023-06-21postgres.js is dope! I'm maintaining a Kysely community dialect for it. https://github.com/igalklebanov/kysely-postgres-js
Project mention: Typed-xlsx - Effortlessly export any data into excel sheets, with the full power of type-safety and good DX | /r/node | 2023-12-05And here's the git repository : https://github.com/ChronicStone/typed-xlsx
TypeScript type-safety related posts
- tsafe enables to unit test your types.
- Ensure a Zod validator actually valid given type.
- End-to-end type safety with tRPC (example repository)
- Unlocking type-safety superpowers in TypeScript with nominal and refinement typ
- Unlocking type-safety superpowers in Typescript with nominal and refinement types
- How to Troubleshoot Types?
- Mammoth: A type-safe Postgres query builder pur sang for TypeScript
-
A note from our sponsor - WorkOS
workos.com | 24 Apr 2024
Index
What are some of the best open-source type-safety projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | ts-toolbelt | 6,406 |
2 | pgtyped | 2,800 |
3 | nexus-plugin-prisma | 833 |
4 | mammoth | 492 |
5 | remix-forms | 471 |
6 | tsafe | 384 |
7 | vuex-smart-module | 382 |
8 | nominal | 259 |
9 | iti | 119 |
10 | explicit-design | 88 |
11 | eslint-plugin-total-functions | 86 |
12 | kysely-postgres-js | 47 |
13 | typed-xlsx | 26 |
14 | ts-pojo-error | 14 |
15 | wari | 10 |
16 | tRPC-example | 9 |
17 | mondrian-framework | 8 |
18 | firebase-rules | 7 |
Sponsored