TypeScript type-safety

Open-source TypeScript projects categorized as type-safety

Top 23 TypeScript type-safety Projects

type-safety
  1. ts-toolbelt

    đź‘· TypeScript's largest type utility library

  2. SurveyJS

    JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor. Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.

    SurveyJS logo
  3. pgtyped

    pgTyped - Typesafe SQL in TypeScript

    Project mention: Litdb – type safe SQL for JavaScript/TS | news.ycombinator.com | 2024-12-05
  4. nexus-plugin-prisma

    Deprecated

  5. remix-forms

    The full-stack form library for Remix and React Router

  6. mammoth

    A type-safe Postgres query builder for TypeScript. (by Ff00ff)

  7. tsafe

    🔩 The missing TypeScript utils

  8. vuex-smart-module

    Type safe Vuex module with powerful module features

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. nominal

    đź”’ The new way to do types in typescript.

  11. iti

    ~1kB Dependency Injection Library for Typescript and React with a unique support of async flow

  12. 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

  13. explicit-design

    Source code for the “Explicit Design” post series.

  14. eslint-plugin-total-functions

    An ESLint plugin to enforce the use of total functions (and prevent the use of partial functions) in TypeScript.

  15. kysely-postgres-js

    Kysely dialect for PostgreSQL using the Postgres.js client.

  16. megamatch

    Painless pattern matching in TypeScript with type safety and minimalistic syntax

    Project mention: Point-free style pattern matching in TypeScript | news.ycombinator.com | 2025-04-13
  17. templatedx

    A declarative, extensible & composable template engine based on Markdown and JSX.

    Project mention: templatedx VS Jinja2 - a user suggested alternative | libhunt.com/r/templatedx | 2024-11-15
  18. mondrian-framework

    Framework for building modular, type-safe and documented backends.

  19. ts-pojo-error

    🔥 Type safe pojo error will help you to easily create typed and serializable error.

  20. wari

    A type-safe way to create and handle errors.

  21. 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.

  22. tRPC-example

    e2e type safety with tRPC (by nhevia)

  23. gen-env-type-def

    Generate type definitions for environment variables from different environment files with support for both import.meta.env and process.env

  24. Enumeration.TS

    Powerful enums for TypeScript and JavaScript, enhancing code clarity and type safety.

  25. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

TypeScript type-safety discussion

Log in or Post with

TypeScript type-safety related posts

  • tsafe enables to unit test your types.

    4 projects | /r/javascript | 27 Oct 2022
  • Ensure a Zod validator actually valid given type.

    1 project | /r/typescript | 27 Oct 2022
  • End-to-end type safety with tRPC (example repository)

    2 projects | /r/typescript | 16 Sep 2022
  • Unlocking type-safety superpowers in TypeScript with nominal and refinement typ

    1 project | news.ycombinator.com | 3 Aug 2022
  • Unlocking type-safety superpowers in Typescript with nominal and refinement types

    7 projects | /r/typescript | 22 Jul 2022
  • How to Troubleshoot Types?

    6 projects | /r/typescript | 30 Jan 2022
  • Mammoth: A type-safe Postgres query builder pur sang for TypeScript

    1 project | news.ycombinator.com | 23 Dec 2021
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 8 Jul 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

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,994
2 pgtyped 3,133
3 nexus-plugin-prisma 828
4 remix-forms 519
5 mammoth 491
6 tsafe 457
7 vuex-smart-module 381
8 nominal 262
9 iti 152
10 typed-xlsx 147
11 explicit-design 110
12 eslint-plugin-total-functions 90
13 kysely-postgres-js 85
14 megamatch 36
15 templatedx 23
16 mondrian-framework 15
17 ts-pojo-error 14
18 wari 12
19 firebase-rules 9
20 tRPC-example 8
21 gen-env-type-def 7
22 Enumeration.TS 5
23 link-generator 4

Sponsored
JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io

Did you know that TypeScript is
the 1st most popular programming language
based on number of references?