composable-functions
Types and functions to make composition easy and safe (by seasonedcc)
zod
TypeScript-first schema validation with static type inference (by colinhacks)
| composable-functions | zod | |
|---|---|---|
| 4 | 440 | |
| 740 | 42,870 | |
| 0.3% | 0.9% | |
| 7.4 | 9.6 | |
| about 1 year ago | 7 days ago | |
| TypeScript | TypeScript | |
| MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
composable-functions
Posts with mentions or reviews of composable-functions.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-06-12.
-
Molecules of business logic from tiny atoms
Instead of adding multiple try/catch statements, we'll establish a pattern to deal with exceptions. For that, let me introduce you to Composable Functions, a library we created to make function composition easy and safe.
-
Using Arktype in Place of Zod - How to Adapt Parsers
composable-functions
-
Enforcing 'noImplicitAny' on callbacks to generic functions
Last week, I started a Twitter thread about this and asked for help from some friends and TS experts. I was working on our library composable-functions on an issue by @danielweinmann that was experiencing this problem.
-
Build package for NPM & Deno
As already mentioned dnt might help you if you are willing to have deno as your primary development environment. I work in a project like this and the deno tooling is great. I don't even need a package.json since dnt will generate it for me.
zod
Posts with mentions or reviews of zod.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2026-06-07.
-
Building an MCP server with Node.js
This post shows how to build a small todo MCP server with Node.js using the official @modelcontextprotocol/sdk package and Zod schemas.
-
How to Build Type-Safe Form Handlers Using TypeScript Utility Types
This pattern works cleanly with Zod and React Hook Form. Zod schemas can infer TypeScript types directly, so you define validation rules and get the type for free:
-
How to convert a JSON sample to a Zod schema (and the 4 algorithm choices behind a working converter)
Zod closes that gap by validating shape at runtime. The friction is hand-writing the schema. So I built a small in-browser tool that does it for you β paste a JSON sample, get a runnable z.object. This post is about the four non-obvious algorithm choices that came out of that build.
-
Why Multi-Step Forms Outperform Long Single-Page Forms for Complex Signups
Libraries like React Hook Form, Formik, and Zod for schema validation make the per-step validation architecture manageable and well-tested. React and other component-based frameworks make the state sharing pattern clean with context or a global store.
-
Three Ways to Convert JSON to TypeScript. Only One Is Deterministic.
5. Add runtime validation. Use Zod or Valibot to validate that the API actually sends what your types describe. The converter gives you structure; a schema library gives you runtime guarantees.
-
is-kit vs Zod: A Practical Comparison from 3 Perspectives
When writing runtime validation in TypeScript, Zod is usually the first choice.
-
Zod: TypeScript Schema Validation Without the Boilerplate
Do you validate the data your backend API returns? Most people just use as to cast the type and hope the data matches expectations. Zod lets you define a schema once and get both runtime validation and TypeScript types β no more trust-based programming.
-
Modern Next.js Essentials: Building Scalable Full-Stack Applications
Zod is a TypeScript-first schema declaration and validation library. It is widely used in Next.js projects to bridge the gap between runtime data validation and compile-time type safety.
-
zod-to-schema: A Zero-Config CLI That Runs Your TypeScript In-Process
Every serious TypeScript project uses Zod for runtime validation. The team loves it β one schema, end-to-end type inference, parse-don't-validate all the way down. Done, sorted, move on.
-
Stop Writing Types Twice: A Fullstack TypeScript Playbook
This post walks through a pipeline where you define your data shape once as a Zod schema on the backend, and every other layer (API docs, frontend types, React Query hooks) is generated from it automatically using Orval. Change the schema, regenerate, and TypeScript tells you exactly what broke. Across the entire stack.
What are some alternatives?
When comparing composable-functions and zod you can also consider the following projects:
leac - Lexer / tokenizer
openapi-typescript - Generate TypeScript types from OpenAPI 3 specs
denoify - π¦For NPM module authors that would like to support Deno but do not want to write and maintain a port.
typebox - JSON Schema Type Builder with Static Type Resolution for TypeScript
make-service - A set of utilities to improve the DX of native `fetch` to better interact with external APIs.
class-validator - Decorator-based property validation for classes.