Topics / #type-safe

Type-safe projects on GitHub

Type-safe libraries and patterns preventing runtime errors.

As of , the most-starred Type-safe projects on GitHub are DefinitelyTyped (51.5K stars), mihomo (35.9K stars) and fmt (25.9K stars). GitHub.Locker tracks 13 Type-safe repositories with 215K stars combined. The fastest-growing on November 30 was mihomo, with +34 stars in a day.

13Projects
215KStars in total
+107Stars in a day

Hot right now

Most stars gained in a day · Nov 30

The all-time top

13 projects · by stars

  1. #1 · DefinitelyTyped/DefinitelyTyped

    DefinitelyTyped

    DefinitelyTyped is a massive community repository that hosts TypeScript type definitions (.d.ts files) for JavaScript packages that don't ship their own types, published to npm under the @types scope.

    51.5K
  2. #2 · MetaCubeX/mihomo

    mihomo

    It is a Python library built on Pydantic that models and parses the data returned by the Mihomo API for Honkai: Star Rail, giving you typed, autocomplete-friendly access to a player's parsed character and showcase info.

    35.9K
  3. #3 · fmtlib/fmt

    fmt

    {fmt} is an open-source C++ formatting library — a fast, safe alternative to C stdio and C++ iostreams, with a format string syntax similar to Python's.

    25.9K
  1. 4

    elysia

    19.4Kelysiajs/elysia · TypeScript

    Elysia is a TypeScript framework for building HTTP servers and APIs. It pitches end-to-end type safety and a polished developer experience, and it is built on the Bun runtime.

  2. 5

    lila

    19Klichess-org/lila · Scala

    Lichess (lila) is the free, adless and open source online chess server behind lichess.org, focused on realtime play and ease of use.

  3. 6

    kysely

    14.4Kkysely-org/kysely · TypeScript

    Kysely (pronounced 'Key-Seh-Lee') is a type-safe, autocompletion-friendly SQL query builder for TypeScript, inspired by Knex.js: it checks your queries at compile time and types the results.

  4. 7

    react-redux-typescript-guide

    13.3Kpiotrwitek/react-redux-typescript-guide · TypeScript

    A living guide collecting the most important patterns and recipes for using React and Redux in a fully type-safe way with TypeScript, favoring type inference over manual type annotations.

  5. 8

    fp-ts

    11.6Kgcanti/fp-ts · TypeScript

    fp-ts is a library for typed functional programming in TypeScript, bringing patterns and abstractions like Option, Either, IO, Task, Functor, Applicative and Monad to TypeScript apps.

  6. 9

    nuqs

    10.9K47ng/nuqs · TypeScript

    nuqs is a type-safe state manager for React that keeps state in the URL query string — like useState, but the value lives in the URL and survives sharing or reloading the page.

  7. 10

    vanilla-extract

    10.5Kvanilla-extract-css/vanilla-extract · TypeScript

    vanilla-extract lets you write CSS styles in TypeScript (or JavaScript) with locally scoped class names and CSS variables, then compiles everything into static CSS files at build time with zero runtime cost.

  8. 11

    reylo

    1.6Kreylosql/reylo · Rust

    Reylo lets you import .sql files directly into your TypeScript code and get full type inference for the query's rows and parameters, with no code-generation step.

  9. 12

    gdp-ts

    861rauchg/gdp-ts · TypeScript

    gdp-ts is a tiny TypeScript library plus a linter and an AI coding-agent skill that implements the 'Ghosts of Departed Proofs' pattern, letting you catch authorization and entitlement bugs (like checking if a user can read or pay for a resource) at compile time instead of at runtime.

  10. 13

    motherload

    320colinhacks/motherload · TypeScript

    Motherload is a set of TypeScript loaders that let you import data files such as TOML, YAML, JSON5, CSV, TSV, Markdown, plain text or .env directly into your code and get a fully typed module, powered by TypeScript's new content mappers feature.

Often tagged together