type-fest

A collection of essential, ready-made TypeScript utility types beyond the built-in standard library.

Library
npm
v5.8.0
17,365stars
CC0-1.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
85/100Excellent
Development Activity84
Maintenance92
Community64
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
81/100Excellent
Architecture80
Code Quality88
Innovation75
Learning Curve82

type-fest is a large collection of TypeScript utility types that fill gaps in TypeScript’s built-in type toolbox — types like PartialDeep, CamelCase, Merge, Simplify, Except, and Jsonify that are commonly needed but not shipped with the language itself. Rather than every project reinventing the same conditional and mapped types, type-fest centralizes over 200 well-tested, documented type definitions covering objects, arrays, strings, JSON, async utilities, and more.

Because the package is types-only — it has zero runtime code or JavaScript output — adding it as a dependency has no effect on bundle size or runtime behavior; it exists purely to be imported in .d.ts/.ts files. Types can also be copy-pasted individually without adding the dependency at all, per the project’s own stated policy.

What You Get

  • Object utilities like PartialDeep, Merge, Except, Simplify, and SetRequired for common type transformations TypeScript doesn’t ship natively
  • String literal utilities such as CamelCase, KebabCase, SnakeCase, and Delimiter-based case conversions at the type level
  • JSON-focused types like Jsonify and JsonValue for accurately typing values that survive JSON.stringify/parse round-trips
  • Array utilities including ArrayElement, ArraySlice, ArrayReverse, and fixed-length tuple helpers
  • Async and function types such as AsyncReturnType, Asyncify, and Promisable for working with sync/async interop
  • Zero runtime footprint — the package ships only .d.ts declaration files, so it never appears in a compiled JavaScript bundle

Common Use Cases

  • Typing configuration objects that need deep partials or deep readonly variants without hand-writing recursive mapped types
  • Converting between naming conventions (snake_case API responses to camelCase application models) at the type level
  • Typing values that pass through JSON serialization boundaries, such as API payloads or localStorage-persisted state
  • Building strongly-typed utility functions in library code that need generic helpers like Merge or Except for parameter shaping
  • Reducing duplicated one-off utility type definitions across a large TypeScript codebase or monorepo

Under The Hood

Architecture - Each utility type lives in its own file under source/ (215 files as of this analysis), individually exported and re-exported from the root index.d.ts, so the package has no shared runtime module graph to reason about — just a flat, well-organized collection of independent type definitions, many of which are documented with JSDoc comments and usage examples directly in the .d.ts file. This one-type-per-file structure keeps additions and reviews isolated and makes it straightforward for maintainers to accept community-contributed types without touching unrelated code.

Tech Stack - The package is TypeScript-only with no JavaScript runtime output; tsconfig.json and xo.config.js (plus custom lint-rules/lint-processors) enforce style and type-checking across all 215+ definition files. It has zero runtime dependencies, and the entire distribution consists of declaration files plus documentation.

Code Quality - The test-d/ directory contains 197 type-level test files (using tsd or an equivalent type-assertion tool), one per utility type in most cases, verifying that each type resolves to the expected shape for representative inputs — a testing discipline appropriate for a types-only package where “correctness” means type inference behaves as documented. Dual CC0-1.0 and MIT licensing files are both present, and the project maintains an active CLAUDE.md contributor guide alongside its human-facing contributing guidelines.

API Design - Every exported type is self-contained and named descriptively (PartialDeep, CamelCasedProperties, SetRequired), so most usages require nothing more than a single named import; there is no configuration, initialization, or class instantiation anywhere in the package. The README explicitly invites copy-pasting individual type definitions instead of adding the dependency, which signals a design philosophy prioritizing zero lock-in over API surface control.

Used by 31 apps in this directory

TypeScript
96%
Other

Amplication

Developer Tools · AI Code Assistants · Automation

16,010

Create production-ready backend services with your organization's standards baked in — generating NestJS, Prisma, and GraphQL code that you own and control.

View details
61
Repo Health
84
Technical
60
Dependency
Built with
TypeScript96%
Updated 1 months ago
Python
54%
Other

authentik

Authentication · Security

24,980

The self-hosted Identity Provider that replaces Okta, Auth0, and Entra ID with a unified SSO platform supporting SAML, OAuth2/OIDC, LDAP, RADIUS, and WebAuthn.

View details
92
Repo Health
81
Technical
68
Dependency
Built with
Python54%
TypeScript33%
Updated today
Rust
67%
MIT

Bun

Developer Tools

95,452

An all-in-one JavaScript and TypeScript toolkit — one Rust-and-JavaScriptCore binary that replaces Node.js, npm, a bundler, and a test runner with faster equivalents.

View details
92
Repo Health
91
Technical
66
Dependency
Built with
Rust67%
C++19%
Updated today
TypeScript
100%
Other

Dub

Marketing · Analytics

24,521

The open-source link attribution platform for short links, conversion tracking, and affiliate programs — powering 100M+ clicks monthly.

View details
81
Repo Health
78
Technical
65
Dependency
Built with
TypeScript100%
Updated today
JavaScript
51%
MIT

Ghost

CMS · Blogging

54,795

Open source headless Node.js CMS for professional publishing, paid memberships, and newsletters with a fully owned audience.

View details
96
Repo Health
85
Technical
69
Dependency
Built with
JavaScript51%
TypeScript43%
Updated today
TypeScript
48%
AGPL 3.0

Grafana

Monitoring · Analytics

76,300

The open-source observability platform that unifies metrics, logs, and traces from any data source into dynamic, queryable dashboards.

View details
95
Repo Health
91
Technical
65
Dependency
Built with
TypeScript48%
Go46%
Updated today
TypeScript
56%
MIT

Jitsu

Data Engineering

5,035

Open-source, fully-scriptable data ingestion engine that streams events from web, apps, and APIs to any data warehouse in real time.

View details
89
Repo Health
79
Technical
68
Dependency
Built with
TypeScript56%
Go41%
Updated today
TypeScript
97%
Other

Kibana

Analytics · Monitoring

21,251

Your open source window into the Elastic Stack — query, visualize, and act on data stored in Elasticsearch with real-time dashboards, AI-assisted search, and automated alerting.

View details
98
Repo Health
87
Technical
68
Dependency
Built with
TypeScript97%
Updated today
TypeScript
96%
Other

Lightdash

Analytics · Data Engineering

6,056

The open-source Looker alternative that turns your dbt project's metrics and dimensions into governed, self-serve charts and dashboards — no license key required.

View details
93
Repo Health
84
Technical
66
Dependency
Built with
TypeScript96%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search