TypeScript Types

Open-source TypeScript projects categorized as Types

Top 23 TypeScript Type Projects

  • DefinitelyTyped

    The repository for high quality TypeScript type definitions.

    Project mention: DefinitelyTyped | news.ycombinator.com | 2024-02-12
  • type-fest

    A collection of essential TypeScript types

    Project mention: Adding type safety to object IDs in TypeScript | news.ycombinator.com | 2024-01-30

    Related: https://github.com/sindresorhus/type-fest/blob/main/source/o...

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • Superstruct

    A simple and composable way to validate data in JavaScript (and TypeScript).

    Project mention: Where DRY Applies | news.ycombinator.com | 2023-11-03
  • io-ts

    Runtime type system for IO decoding/encoding

    Project mention: TDD | /r/CharruaDevs | 2023-12-07

    Qué rico. Si tenés chance meté un proceso de code review fuerte, y para el tema de I/O probá a usar https://github.com/Effect-TS/schema ó https://github.com/gcanti/io-ts que les da una solución obvia al tema de "tipos para lo que devuelva el backend", aunque es en realidad mucho más capaz que eso.

  • ts-toolbelt

    👷 TypeScript's largest type utility library

    Project mention: Day 9 advent of typescript | /r/typescript | 2023-12-09
  • ts-essentials

    All essential TypeScript types in one place 🤙

    Project mention: Essential Code Organization Principles | dev.to | 2023-03-22

    Also, it’s not as restrictive as mutability tools — if you know what you are doing and want to ignore this limitation for a particular case, you can apply the -readonly modifier or the Writeable type from type-fest or ts-essentials.

  • pgtyped

    pgTyped - Typesafe SQL in TypeScript

    Project mention: ORMs are nice but they are the wrong abstraction | news.ycombinator.com | 2024-02-01

    ORMs suck, but raw SQL embedded in your code sucks too.

    This might be good time to plug my TypeScript non-ORM: https://jawj.github.io/zapatos/.

    I should say I also like what I've seen of https://kysely.dev/ and https://pgtyped.dev/.

  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at app.getonboardai.com.

  • runtypes

    Runtime validation for static types

    Project mention: When should I use runtime checks (and which runtime checker should I use)? | /r/typescript | 2023-03-14

    In terms of which runtime checker I should use. The first tutorial I saw suggested 'Zod', doing a bit more searchign yielded other options such as 'runtypes'.

  • csstype

    Strict TypeScript and Flow types for style based on MDN data

  • react-complex-tree

    Unopinionated Accessible Tree Component with Multi-Select and Drag-And-Drop

  • monads

    👻 Option, Result, and Either types for TypeScript; Inspired by Rust

  • typescript-runtime-type-benchmarks

    📊 Benchmark Comparison of Packages with Runtime Validation and TypeScript Support

    Project mention: TypeScript please give us types | /r/typescript | 2023-07-08

    Has been heavily optimized, both in terms of its types and runtime performance. Even including the static parser, many types are about an order of magnitude more efficient than equivalent Zod. Early results show it as marginally faster than any validator currently published to typescript-runtime-type-benchmarks, not including more complex cases where (2) would give ArkType a much more significant advantage.

  • abitype

    Strict TypeScript types for Ethereum ABIs

  • typetype

    A programming language designed for typescript type generation

  • graphql-typed-document-node

    An improved version of `DocumentNode` for seamless TypeScript integration for GraphQL.

    Project mention: how to correctly specify query variable when generating TS types from graphql-typed-document-node? | /r/graphql | 2023-10-16

    When using graphql-typed-document-node to generate TS types from gql, I am getting errors when my query has variables.

  • metatype

    Declarative API development platform. Build backend components with zero-trust and less code, no matter where and how your (legacy) systems are.

    Project mention: Build declaratively back ends and APIs with GraphQL or REST | /r/hypeurls | 2023-08-14
  • nominal

    🔒 The new way to do types in typescript.

  • types.ts

    Shared TypeScript definitions for Octokit projects

  • type-level-regexp

    🔤🔍 Type-level RegExp, parse and match string in TypeScript type system.

    Project mention: Announcing TypeScript 5.1 Beta | /r/typescript | 2023-04-18

    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 :-)).

  • fnts

    λ Minimal Functional Programming Utilities for TypeScript & JavaScript

  • nominal

    Powerful nominal types for your Typescript project (by Coder-Spirit)

  • knex-types

    Generate TypeScript definitions (types) from a PostgreSQL database schema.

  • typed-mxgraph

    mxGraph typescript declarations

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

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). The latest post mention was on 2024-02-12.

TypeScript Types related posts


What are some of the best open-source Type projects in TypeScript? This list will help you:

Project Stars
1 DefinitelyTyped 46,630
2 type-fest 12,882
3 Superstruct 6,764
4 io-ts 6,547
5 ts-toolbelt 6,215
6 ts-essentials 3,513
7 pgtyped 2,724
8 runtypes 2,523
9 csstype 1,658
10 react-complex-tree 722
11 monads 678
12 typescript-runtime-type-benchmarks 521
13 abitype 407
14 typetype 370
15 graphql-typed-document-node 366
16 metatype 304
17 nominal 259
18 types.ts 111
19 type-level-regexp 105
20 fnts 78
21 nominal 67
22 knex-types 62
23 typed-mxgraph 60
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.