awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

Type inference utilities

Ranking updated Jul 28, 2026

For type inference utilities, the strongest matches are sindresorhus/type-fest (type-fest is a comprehensive collection of reusable utility types), gvergnaud/hotscript (Hotscript is a comprehensive TypeScript library for advanced type-level) and piotrwitek/utility-types (This TypeScript library provides advanced mapped types and recursive). microsoft/typescript and millsp/ts-toolbelt round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

Hand-picked type inference utilities for TypeScript. Compare the top open-source libraries ranked by stars and activity, and find the right fit.

Type inference utilities

Find the best repos with AI.We'll search the best matching repositories with AI.
  • sindresorhus/type-festsindresorhus avatar

    sindresorhus/type-fest

    17,233View on GitHub↗

    type-fest is a library of reusable utility types for performing complex transformations and validations on objects, arrays, strings, and numeric ranges in TypeScript. It provides a collection of type definitions designed to handle advanced structural changes and constraints. The project distinguishes itself by offering specialized logic for string literal processing, such as casing transformations and pattern-based modifications, and type-level arithmetic for calculating numeric ranges and absolute values. It also includes utilities for enforcing deep immutability, ensuring union mutual exclu

    type-fest is a comprehensive collection of reusable utility types for TypeScript that directly supports advanced type manipulation, structural transformations, string literal processing, and type-level arithmetic.

    TypeScriptConditional TypesTemplate Literal TypesType Validation
    View on GitHub↗17,233
  • gvergnaud/hotscriptgvergnaud avatar

    gvergnaud/hotscript

    3,669View on GitHub↗

    Hotscript is a comprehensive suite of composable utilities designed for performing structural transformations and mathematical operations within the TypeScript type system. It serves as a type-level manipulation library that provides a set of higher-order functions to map, filter, and reduce the structure of type definitions. The project focuses on type-level programming by implementing reusable logic and calculations directly within types. This includes the ability to create custom type functions, implement type-level pattern matching, and compose sequences of transformations where each oper

    Hotscript is a comprehensive TypeScript library for advanced type-level programming, featuring recursive object transformations, template literal parsing, and type-level arithmetic that directly match your need for type manipulation utilities.

    TypeScriptType-Level ArithmeticString Literal Type ManipulationsVariadic Tuple Manipulation
    View on GitHub↗3,669
  • piotrwitek/utility-typespiotrwitek avatar

    piotrwitek/utility-types

    5,759View on GitHub↗

    This is a TypeScript utility type library providing advanced type aliases and mapped types for complex object and union transformations. It implements specialized tools for creating branded nominal types, extracting type metadata, and performing set operations on union types. The project distinguishes itself through a toolkit for recursive object transformations, allowing for the application of property constraints like read-only or optional status across deeply nested structures. It also provides a system for computing intersections, differences, and complements between union types to simula

    This TypeScript library provides advanced mapped types and recursive object transformations for complex type manipulation, though it does not focus heavily on type-level arithmetic or comprehensive type testing utilities.

    TypeScriptConditional TypesTemplate Literal Types
    View on GitHub↗5,759
  • microsoft/typescriptmicrosoft avatar

    microsoft/TypeScript

    109,271View on GitHub↗

    TypeScript is a language that extends standard syntax by adding a static type system. It identifies potential runtime errors by analyzing the behaviors and capabilities of values during the compilation process. The language supports object-oriented structures, including classes with inheritance and member visibility control, as well as flexible function definitions that utilize generics, overloads, and parameter destructuring. The project provides a compiler that manages the build lifecycle through a command-line interface, offering configurable options for module resolution, code generation,

    This repository provides the core TypeScript compiler and type system that enables advanced type inference, manipulation, and validation, though it is a programming language and compiler rather than a dedicated utility library.

    TypeScriptConditional Types
    View on GitHub↗109,271
  • millsp/ts-toolbeltmillsp avatar

    millsp/ts-toolbelt

    7,145View on GitHub↗

    ts-toolbelt is a collection of specialized utilities for manipulating and validating TypeScript types. It provides a toolkit for performing complex transformations on objects, unions, and functions to enforce strict data consistency at compile time. The library features dedicated transformers for function types, including utilities for currying, composition, and signature extraction. It also includes an object type manipulator for deep merging, patching, and reshaping complex structures. The capability surface extends to literal string processing, type-level arithmetic, and tuple operations.

    This TypeScript type utility library provides a comprehensive collection of tools for compile-time type manipulation, deep object reshaping, and type-level arithmetic, matching most of the requested advanced capabilities.

    TypeScriptType-Level ArithmeticString Literal Type Manipulations
    View on GitHub↗7,145
  • mattpocock/ts-resetmattpocock avatar

    mattpocock/ts-reset

    8,533View on GitHub↗

    ts-reset is a TypeScript type enhancement library that overrides and augments the built-in type definitions for standard JavaScript APIs. Its core purpose is to replace unsafe any return types with stricter alternatives like unknown, forcing developers to explicitly validate data before using it. The library achieves this through global type augmentation and declaration merging, applying changes across the entire project without requiring per-file imports. The library differentiates itself by targeting specific pain points in everyday TypeScript usage. It relaxes type constraints on array

    This TypeScript type enhancement library overrides standard API definitions with stricter alternatives, providing advanced type modifications like safe parsing and conditional filters despite lacking a dedicated type-level testing suite.

    TypeScriptConditional Types
    View on GitHub↗8,533
  • colinhacks/zodcolinhacks avatar

    colinhacks/zod

    43,036View on GitHub↗

    Zod is a TypeScript-first schema declaration and validation library designed to ensure end-to-end data integrity. It functions as a runtime type guard, allowing developers to define complex data structures through a declarative, chainable syntax. By using these schema definitions, the library automatically derives static TypeScript types, eliminating the need for manual type duplication and ensuring that runtime data matches expected application contracts. The library distinguishes itself through functional schema composition, which enables the creation of hierarchical structures by nesting a

    Zod is a TypeScript-first schema validation and data parsing library that automatically derives static types from runtime definitions, providing robust type inference and validation for your applications.

    TypeScriptRuntime Type Guards
    View on GitHub↗43,036
  • open-circle/valibotopen-circle avatar

    open-circle/valibot

    8,769View on GitHub↗

    Valibot is a modular, type-safe schema library for validating and parsing structural data in TypeScript environments.

    Valibot is a modular schema validation library that automatically infers static TypeScript types from runtime definitions, providing robust parsing and transformation capabilities for the requested ecosystem.

    TypeScriptRuntime Type Guards
    View on GitHub↗8,769
  • arktypeio/arktypearktypeio avatar

    arktypeio/arktype

    7,780View on GitHub↗

    Arktype is a TypeScript runtime validation library and schema orchestrator. It synchronizes TypeScript types with runtime data validation, allowing users to define type-safe schemas that ensure unknown data adheres to specific structures during application execution. The project distinguishes itself by using set-theory type analysis to determine intersections and subtype compatibility, alongside JIT-compiled validation functions for optimized performance. It supports advanced type modeling through branded type constraints, recursive alias resolution, and the ability to generate runtime valida

    Arktype is a TypeScript runtime validation library that infers types directly from schemas, though it focuses more on runtime checking than pure compile-time type-level programming or arithmetic.

    TypeScriptInput ValidationRuntime Data ValidationRuntime Type Validation
    View on GitHub↗7,780
  • gcanti/io-tsgcanti avatar

    gcanti/io-ts

    6,813View on GitHub↗

    io-ts is a TypeScript runtime validation library that provides a composable codec system for decoding and encoding data at the boundaries of an application. It defines data schemas using structural types, where the shape of data determines its validity rather than nominal names, and produces runtime type guards from those definitions for efficient validation checks. The library is built around bidirectional codec mappings that combine decoding, encoding, and type checking into single reusable units. It supports a composable decoder pipeline where small validation steps can be chained together

    This library provides runtime type validation and codec-based schema generation, which is related to type safety though it focuses on runtime boundary checking rather than advanced compile-time type-level manipulation.

    TypeScriptIO Decoding and Encoding Type SystemsCodec-Based Bidirectional MappingsCodec-Based Type Validations
    View on GitHub↗6,813
  • pelotom/runtypesP

    pelotom/runtypes

    0View on GitHub↗

    Runtypes provides runtime validation for TypeScript types, which aligns with the validation aspect of this category though it focuses more on runtime checks than compile-time type manipulation.

    Runtime Validation
    View on GitHub↗0
  • ronami/meta-typingronami avatar

    ronami/meta-typing

    1,576View on GitHub↗

    Meta-typing is a TypeScript metaprogramming toolkit that executes complex algorithms, mathematical operations, and data structure traversals entirely within compile-time type definitions. It functions as a type-level computation engine that evaluates numeric expressions, basic arithmetic, and aggregate calculations through recursive type evaluation and tuple-based data representations during the compilation phase. The library implements a comprehensive collection of advanced algorithms and data structures, including collection manipulation utilities for array slicing, filtering, merging, and

    This library implements algorithms and utilities purely within TypeScript's type system, making it well-suited for advanced type manipulation, though it is designed more as a learning resource and collection than a full production validation suite.

    TypeScriptRecursive Type Processing
    View on GitHub↗1,576
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
sindresorhus/type-fest17.2KTypeScriptCC0-1.0Jun 22, 2026
gvergnaud/hotscript3.7KTypeScriptMITDec 28, 2024
piotrwitek/utility-types5.8KTypeScriptMITMay 9, 2026
microsoft/typescript109.3KTypeScriptApache-2.0Jun 12, 2026
millsp/ts-toolbelt7.1KTypeScriptApache-2.0Jun 2, 2025
mattpocock/ts-reset8.5KTypeScriptMITApr 1, 2026
colinhacks/zod43KTypeScriptMITJun 13, 2026
open-circle/valibot8.8KTypeScriptMITJun 21, 2026
arktypeio/arktype7.8KTypeScriptMITJun 17, 2026
gcanti/io-ts6.8KTypeScriptMITDec 10, 2024

Related searches

  • an open source engine for model inference
  • Type constraints
  • Numerical computing library
  • Data structure library
  • Tree traversal library
  • String manipulation library
  • Build toolchain
  • Column transformation utility