Top 11 TypeScript type-safe 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.
-
react-router-typesafe-routes
Comprehensive and extensible type-safe routes for React Router v6 with first-class support for nested routes and param validation.
-
zoxy
A small type-safe object proxy around Zod to help you stay safe after your data is loaded while continuing to edit them.
-
interprocess
💬 A scalable and type-safe Electron IPC management tool with enhanced DX (by daltonmenezes)
-
prim-rpc
Easy-to-understand, type-safe, transport-agnostic RPC/IPC for JavaScript, supporting callbacks, batching, file handling, custom serialization, and more.
-
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.
-
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-functional-pipe
Heavily overloaded functions (pipe/compose) for type-safe function composition in TypeScript
-
zod-to-fields
Turn your Zod schemas into configurable field arrays for easy integration with HTML, React, Vue, and more.
Project mention: Show HN: Tsynamo – Type-friendly DynamoDB query builder for TypeScript | news.ycombinator.com | 2024-04-10Hello HN! I was recently introduced to Kysely (https://github.com/kysely-org/kysely), a type-safe Typescript SQL query builder, and instantly fell in love! I got inspired and wanted to make something similar for AWS DynamoDB.
Thus, I developed Tsynamo! Instead of calling it type-safe, I decided to go with type-friendly, because the library is still in an early stage, and is not 100% type-safe.
Under the hood, Tsynamo compiles the built queries into AWS SDK v3 commands. I feel that Tsynamo simplifies the AWS SDK API quite a lot since the developer doesn't have to mess around with condition/filter expressions or attribute names/values themselves, and as a bonus gets autocompletion for building the queries!
There's also a playground to test it out in your browser: https://try.tsynamo.dev. It might not have the most up-to-date API of the library in use yet, but you can get the library's main idea from there.
Since the project is still in its early stages, it doesn't yet have 100% support for all DynamoDB features, like querying indexes. The next steps will be increasing the support coverage and perhaps adding automatic type generation as inspired by kysely-codegen (https://github.com/RobinBlomberg/kysely-codegen).
Would love to get some feedback, thanks in advance!
Project mention: Next.js and Bunny CDN: Complete Guide to Image Uploading with Server Actions | dev.to | 2024-04-21I'll use Valibot library, which is a pretty new and cool library for schema validation, similar to Zod.
Prim+RPC provides a powerful library for calling functions remotely and remains invisible once it is set up. I can define a function on the server of my choice and call that function on the client, all using JavaScript. Yet requests are simple enough to make outside of JavaScript as well.
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
Project mention: Struggling to Map ZodEnum to Field Options for Dynamic Form Generation | /r/typescript | 2023-09-29I'm working on a utility function called createOptions in TypeScript that dynamically maps a Zod schema to options that configure how each schema field should be rendered in a form. This is part of my library, Zod To Fields, which aims to automate your form field generation with type safety. The library effortlessly creates form fields from Zod schemas, ensuring TypeScript type safety and developer-friendly code completion.
You can download the project with the command below or download it directly:
TypeScript type-safe related posts
Index
What are some of the best open-source type-safe projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | kysely | 9,289 |
2 | valibot | 5,159 |
3 | react-router-typesafe-routes | 119 |
4 | zoxy | 117 |
5 | interprocess | 92 |
6 | prim-rpc | 82 |
7 | stream | 32 |
8 | typed-xlsx | 26 |
9 | ts-functional-pipe | 21 |
10 | zod-to-fields | 13 |
11 | prim-rpc-starter | 1 |
Sponsored