type-fest

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

Library
npm
v5.10.0
17,463 stars
CC0-1.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
91 /100 Excellent
Development Activity 100
Maintenance 100
Community 64
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
81 /100 Excellent
Architecture 80
Code Quality 88
Innovation 75
Learning Curve 82

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 32 apps in this directory

TypeScript
96%
MIT

likec4

Developer Tools · Devops

5,954

Define your software architecture as code and get always up-to-date, interactive C4 diagrams generated automatically from a DSL.

View details
89
Repo Health
83
Technical
78
Dependency
Built with
TypeScript 96%
Updated 5 days ago
TypeScript
98%
Other

LobeHub

AI Assistants · Automation · Productivity

83,455

Your Chief Agent Operator — build, schedule, and collaborate with an entire AI team in one self-hostable workspace.

View details
92
Repo Health
81
Technical
65
Dependency
Built with
TypeScript 98%
Updated 5 days ago
Ruby
59%
AGPL 3.0

Mastodon

Social Media

50,441

Run your own federated social network on the open ActivityPub standard with no ads, no algorithms, and no corporate control over your community.

View details
95
Repo Health
81
Technical
70
Dependency
Built with
Ruby 59%
TypeScript 24%
Updated 5 days ago
TypeScript
99%
Apache 2.0

Mastra Code

AI Code Assistants

29,041

"A coding agent that never compacts" — a terminal-based AI coding agent built on the Mastra framework, with Observational Memory instead of context compaction, multi-model support, and OAuth login for Claude Max or ChatGPT Plus.

View details
90
Repo Health
73
Technical
65
Dependency
Built with
TypeScript 99%
Updated 5 days ago
Svelte
32%
GPL 3.0

Mathesar

Databases

5,158

Spreadsheet-like interface for your PostgreSQL database — self-hosted, no SQL required, native Postgres access control.

View details
70
Repo Health
80
Technical
68
Dependency
Built with
Svelte 32%
TypeScript 27%
Python 21%
Updated 6 days ago
TypeScript
97%
Other

nango

Authentication · Automation · Developer Tools

12,963

Build product integrations with AI using 800+ APIs — auth, proxy, and TypeScript functions on production-grade infrastructure.

View details
94
Repo Health
85
Technical
67
Dependency
Built with
TypeScript 97%
Updated 6 days ago
TypeScript
99%
Apache 2.0

Onlook

AI Design Tools · Design Tools

26,996

An open-source, AI-first visual editor that lets designers and developers build, style, and deploy React apps directly in code — no handoff required.

View details
63
Repo Health
80
Technical
64
Dependency
Built with
TypeScript 99%
Updated 1 weeks ago
TypeScript
99%
Other

openclaude

AI Agents · AI Code Assistants

34,123

Run Claude Code workflows against any LLM — OpenAI, Gemini, Ollama, and 200+ backends — from a single terminal-first CLI.

View details
87
Repo Health
78
Technical
71
Dependency
Built with
TypeScript 99%
Updated 5 days ago
TypeScript
91%
AGPL 3.0

PeerTube

Social Media

15,362

A federated, ActivityPub-based video hosting platform built by Framasoft — self-hostable instances interconnect into a network with no vendor lock-in, P2P-assisted streaming, and no ads.

View details
96
Repo Health
75
Technical
66
Dependency
Built with
TypeScript 91%
Updated 1 weeks ago

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