Skip to content

Recommended libraries

xtandard holds the utilities we kept rewriting. When a well-maintained, permissively licensed library already does the job well, we recommend it instead of rebuilding it. None of these are re-exported: install the ones you need directly.

Each card says what the library provides, why we pick it over the alternatives, and, where it applies, which xtandard entry point it pairs with, with an example. Licenses and latest releases come from the npm registry and GitHub, checked by bun run recs:check.

The list lives in recs/libraries.ts, which also generates the README section. To suggest a library, see How to add a recommendation.

114 libraries. License and latest release as of 2026-11-21.

Language & data utilities

Everyday helpers for objects, arrays, equality, cloning and stricter types.

@total-typescript/ts-reset

MITv0.6.1 · 2024-09-02stable

A 'CSS reset' for TypeScript's built-in types: `JSON.parse` and `.json()` return `unknown`, `.filter(Boolean)` narrows, and more.

One import fixes the most common unsafe or awkward typings of the standard library, and each rule can be imported on its own.

  • It changes global types, so use it in applications, not in libraries you publish (its README says the same).

dequal

MITv2.0.3 · 2022-07-11stable

Deep equality check, with a `dequal/lite` build for plain objects, arrays, dates and regexes.

304 to 489 bytes gzipped depending on the build. That is all most code needs for equality, so there is no reason to pull in a bigger library.

Instead of: lodash.isequal, fast-deep-equal

es-toolkit

MITv1.53.2 · 2026-11-06

Modern utility functions for arrays, objects, functions, strings and promises.

Written in TypeScript, tree-shakable and actively maintained by Toss. Its `es-toolkit/compat` layer mirrors lodash call for call, so a migration can happen one import at a time.

Instead of: lodash, lodash-es, underscore

klona

MITv2.0.6 · 2023-01-16stable

Deep clone with modes for JSON-only, lite and full (Map, Set, typed arrays, class instances) data.

240 to 501 bytes gzipped depending on the mode, and fast. Pick the smallest mode that covers your data. For plain data, the built-in `structuredClone` is also an option.

Instead of: lodash.clonedeep

mutative

MITv2.0.2 · 2026-11-01

Immutable updates written as mutations on a draft, like Immer.

Same draft-based model as Immer, but faster in the project's published benchmarks: about 3.6x with the same settings across 97 workloads, and more on large arrays.

Instead of: immer

ts-pattern

MITv5.9.2 · 2026-10-14

Pattern matching with exhaustiveness checking: `match(value).with(pattern, handler).exhaustive()`.

The compiler checks that every case of a union or nested shape is handled, and each branch gets the narrowed type. Reads better than nested `switch`/`if` chains.

Instead of: switch statements over discriminated unions

Errors & results

Typed error handling beyond try/catch.

better-result

MITv3.0.1 · 2026-08-11

A lightweight `Result` type with generator-based composition (`yield*`) and tagged error classes.

Multi-step workflows read as straight-line code. `TaggedError` gives discriminated error unions, and an unexpected throw becomes a `Panic` instead of widening the error type to `unknown`. Zero runtime dependencies.

Pairs with @xtandard/lib: Use `tryCatch` for one-off calls; use better-result when a function's failure modes are part of its public type.

neverthrow

MITv8.2.0 · 2025-02-21

`Result` and `ResultAsync` types for typed, chainable error handling.

A mature, widely used Result library. `ResultAsync` keeps promise chains typed, and an ESLint plugin flags results you forgot to handle.

Pairs with @xtandard/lib: `tryCatch` turns one throwing call into a `[data, error]` tuple. Reach for neverthrow (or better-result) when errors must flow through many chained steps with their types intact.

Async, concurrency & resilience

Bounded concurrency, queues, retries and circuit breakers.

better-all

MITv0.0.9 · 2026-08-19

`Promise.all` over named tasks that can await each other, with full type inference.

Each task starts as soon as the tasks it depends on finish, so you don't have to re-order `Promise.all` calls by hand when latencies change.

  • Pre-1.0 (0.0.x).

cockatiel

MITv4.0.0 · 2026-05-26

Resilience policies: retry with backoff, circuit breaker, timeout, bulkhead and fallback, composable with `wrap`.

Modeled on .NET's Polly. Typed, zero dependencies, and the policies compose, so one call can get retry, a circuit breaker and a timeout together.

Pairs with @xtandard/lib: Run the call through a policy and wrap it in `tryCatch` to get a `[data, error]` tuple once retries are exhausted or the breaker is open.

Example
import {
  ConsecutiveBreaker,
  ExponentialBackoff,
  circuitBreaker,
  handleAll,
  retry,
  wrap,
} from "cockatiel";
import { tryCatch } from "@xtandard/lib";

const policy = wrap(
  retry(handleAll, { maxAttempts: 3, backoff: new ExponentialBackoff() }),
  circuitBreaker(handleAll, { halfOpenAfter: 10_000, breaker: new ConsecutiveBreaker(5) }),
);

const [rates, error] = await tryCatch(policy.execute(() => fx.fetchRates("USD")));

p-map

MITv7.1.1 · 2026-10-11

Map over an iterable or async iterable with a concurrency limit.

The standard answer when `Promise.all` would start too much at once. It can stop or continue on errors, and has settled, keyed and streaming (`pMapIterable`) variants.

Pairs with @xtandard/lib/pagination: A paginator's `items()` is an async iterable, so p-map can process every row with bounded concurrency while pages are fetched lazily.

Example
import pMap from "p-map";

await pMap(paginator.items({ type: "cursor", limit: 500 }), (user) => reindex(user), {
  concurrency: 8,
});

p-queue

MITv10.0.0 · 2026-10-12

A promise queue with concurrency control, priorities and interval-based rate limiting.

Zero dependencies and battle-tested. It covers both 'at most N at a time' and 'at most N per interval' (API rate limits).

Pairs with @xtandard/lib: Push each finished task into an `AsyncChannel` and consume the results as an async iterable, or hand the channel to `toastStream` / `StreamRenderer`.

Example
import PQueue from "p-queue";
import { AsyncChannel } from "@xtandard/lib";

const queue = new PQueue({ concurrency: 4 });
const reports = AsyncChannel.create<Report>();
for (const id of ids) void queue.add(async () => reports.push(await buildReport(id)));
void queue.onIdle().then(() => reports.close());

for await (const report of reports) render(report);

Caching & storage

Key-value storage, caches with stale-while-revalidate, file and blob storage.

@epic-web/cachified

MITv5.7.0 · 2026-11-19

Wraps any cache (lru-cache, Redis, SQLite, Cloudflare KV through adapters) with TTL, stale-while-revalidate, value validation and batching.

Adds what a plain TTL cache lacks: serve stale values while refreshing in the background, validate or migrate cached values (for example with a schema), force a fresh value with fallback to the cache, and share one `getFreshValue` call between concurrent misses for the same key.

Instead of: cachified (the package's old name, deprecated on npm)

Pairs with @xtandard/lib/unstorage: Keep `createCache` for simple TTL caching on an unstorage driver. Switch to cachified when you need stale-while-revalidate, validation of cached values, or concurrent misses for the same key to share one fetch (within a process). `createCache` does none of these, on purpose.

Example
import { LRUCache } from "lru-cache";
import { cachified, type CacheEntry } from "@epic-web/cachified";

const cache = new LRUCache<string, CacheEntry>({ max: 1000 });

const user = await cachified({
  key: `user-${id}`,
  cache,
  ttl: 60_000,
  staleWhileRevalidate: 300_000,
  getFreshValue: () => db.users.findById(id),
});

bentocache

MITv1.6.1 · 2026-02-09

A multi-tier cache for Node.js: an in-memory L1 in front of a distributed L2 (Redis, Upstash, DynamoDB, SQL databases, filesystem…), kept in sync across instances by a bus.

A real caching layer rather than a storage bridge: cache stampede protection, grace periods that serve stale data when the store is down or slow, timeouts, tags, namespaces, events and OpenTelemetry instrumentation.

Pairs with @xtandard/lib/unstorage: Prefer bentocache over `createCache` when several app instances share a cache and you want a local in-memory tier kept consistent through a bus, stampede protection, grace periods or tag-based invalidation.

Example
import { BentoCache, bentostore } from "bentocache";
import { memoryDriver } from "bentocache/drivers/memory";
import { redisDriver } from "bentocache/drivers/redis";

const bento = new BentoCache({
  default: "app",
  stores: {
    app: bentostore()
      .useL1Layer(memoryDriver({ maxSize: "10mb" }))
      .useL2Layer(redisDriver({ connection: { host: "127.0.0.1", port: 6379 } })),
  },
});

// Concurrent misses for the same key run the factory once.
const user = await bento.getOrSet({
  key: `user:${id}`,
  ttl: "1m",
  factory: () => db.users.findById(id),
});
  • Built for Node.js servers, not browsers or edge runtimes.

files-sdk

MITv3.2.0 · 2026-11-14

One API over object and blob storage: S3 and S3-compatible services (R2, MinIO, B2…), Google Cloud Storage, Azure Blob Storage, Vercel Blob and more.

Web-standard I/O, and switching providers means changing one adapter import. Each provider's SDK is an optional peer dependency, and the native client is available when you need it.

  • Requires Node.js 22+ (also runs on Bun, Deno and Cloudflare Workers).

unstorage

MITv2.0.0-beta.0 · 2026-10-20

One async key-value API over many drivers: memory, filesystem, Redis, Cloudflare KV, Vercel KV, databases and more.

The same code runs in browsers, Node.js and Workers, and you switch drivers by configuration. Drivers are tree-shakable and the core is tiny.

Pairs with @xtandard/lib/unstorage: `withCache` and `createCache` cache async function results, with a TTL, in any unstorage driver.

Example
import { createStorage } from "unstorage";
import redisDriver from "unstorage/drivers/redis";
import { withCache } from "@xtandard/lib/unstorage";

const storage = createStorage({ driver: redisDriver({ base: "app" }) });
const getRates = withCache((base: string) => fx.fetchRates(base), {
  storage,
  prefix: "fx",
  ttl: 3600,
});
  • npm's `latest` tag currently points at a v2 beta (2.0.0-beta.0). `@xtandard/lib/unstorage` targets v1 until 2.0 is stable, so install `unstorage@^1` with it.

Numbers, money & units

Exact decimals and rationals, money, and byte sizes.

big.js

MITv7.0.1 · 2025-04-21stable

Minimal arbitrary-precision decimal arithmetic.

6 KB minified with no dependencies: the smallest of MikeMcl's three decimal libraries, for when basic arithmetic is all you need.

Pairs with @xtandard/lib/big: Exact-decimal intervals over `Big` values.

bignumber.js

MITv11.1.5 · 2026-07-05

Arbitrary-precision decimal and non-decimal (any base) arithmetic, with formatting.

8 KB minified and gzipped, no dependencies. Sits between big.js and decimal.js, and adds base conversion and number formatting.

Pairs with @xtandard/lib/bignumber: Exact-decimal intervals over `BigNumber` values.

currency.js

MITv2.0.4 · 2021-05-19stable

Small library for currency arithmetic and formatting.

A tiny, simple API for adding, splitting and formatting money values.

decimal.js

MITv10.6.0 · 2025-07-06

An arbitrary-precision `Decimal` type with configurable precision and rounding, plus `exp`, `ln`, `log`, trigonometric and other functions.

The most complete of MikeMcl's three decimal libraries, for when you need more than the four basic operations. No dependencies.

Pairs with @xtandard/lib/decimal: Exact-decimal intervals over `Decimal` values.

dinero.js

MITv2.0.2 · 2026-03-13

Immutable money objects: create, calculate, allocate, convert and format amounts in minor units with currency metadata.

Avoids floating-point money bugs, carries the currency in the type, and its functional API is tree-shakable.

Instead of: number arithmetic on prices, currency.js

Pairs with @xtandard/lib/dinero: `createDineroInterval` builds intervals of Dinero values: price ranges, budget bands, tiered pricing.

fraction.js

MITv5.3.4 · 2025-08-22

Exact rational numbers (numerator / denominator), including parsing of decimals and repeating decimals.

Exact arithmetic for ratios like 1/3, which every decimal type has to round.

Pairs with @xtandard/lib/fraction: Exact-rational intervals over `Fraction` values.

xbytes

Apache-2.0v1.9.1 · 2024-04-01stable

Parse and format byte sizes (`4747` ↔ `'4.75 KB'`), in decimal and IEC (`KiB`) units.

Converts in both directions and handles both unit systems.

Dates, time & scheduling

Date math, the Temporal API, recurrence rules and cron.

@gobrand/tiempo

MITv3.2.5 · 2026-11-15

date-fns-style functions for the Temporal API: time zone conversion, DST-safe date math, formatting, parsing and business days.

If you know date-fns, these are the same names and argument order, on Temporal types.

Pairs with @xtandard/lib/temporal: Use tiempo for date math and formatting on Temporal values, and `@xtandard/lib/temporal` for intervals of them (`ZonedDateTimeInterval`, `PlainDateInterval`…) and `Date` ↔ Temporal conversion.

  • A young project with a small community.

croner

MITv11.0.1 · 2026-11-14

Cron scheduling and cron-expression evaluation in Node.js, Deno, Bun and browsers, with time zones.

Zero dependencies. Supports seconds and year fields and the `L`, `W` and `#` modifiers, and can compute the next run times without scheduling anything.

Instead of: node-cron, cron

date-fns

MITv4.4.0 · 2026-05-29

Modular date utility functions for the JavaScript `Date`.

Pure, immutable, tree-shakable functions with broad locale support. The standard choice while your code still uses `Date`.

Instead of: moment

rrule-temporal

MITv2.3.0 · 2026-11-18

RFC 5545 recurrence rules (RRULE) on the Temporal API, with time zones and RFC 7529 non-Gregorian calendars.

Occurrences are `Temporal.ZonedDateTime` values, so they stay correct across DST changes. Works with native Temporal or either polyfill, and can return your app's own Temporal objects.

Instead of: rrule (built on Date)

Pairs with @xtandard/lib/temporal: Expand a rule into occurrences, then turn each into a `ZonedDateTimeInterval` to check availability or overlaps. Pass your `Temporal` so the occurrences are instances of it.

Example
import { Temporal } from "@js-temporal/polyfill";
import { RRuleTemporal } from "rrule-temporal";
import { ZonedDateTimeInterval } from "@xtandard/lib/temporal";

const rule = new RRuleTemporal({
  temporal: Temporal,
  rruleString: "DTSTART;TZID=Europe/Madrid:20260105T090000\nRRULE:FREQ=WEEKLY;BYDAY=MO,WE;COUNT=10",
});

const slots = rule
  .all()
  .map((start) => ZonedDateTimeInterval.closedOpen(start, start.add({ hours: 1 })));
slots[0]?.toString(); // "[2026-01-05T09:00:00+01:00[Europe/Madrid],2026-01-05T10:00:00+01:00[Europe/Madrid])"

IDs & hashing

Unique identifiers and hash functions.

@noble/hashes

MITv2.4.0 · 2026-08-27

Audited, dependency-free implementations of SHA-2, SHA-3, BLAKE, RIPEMD-160, HMAC, HKDF, PBKDF2, scrypt and Argon2.

Audited by an independent security firm, pure TypeScript, and runs on every platform. Use it when WebCrypto lacks the algorithm or you need synchronous hashing.

nanoid

MITv6.0.2 · 2026-10-05

Tiny, secure, URL-friendly unique string IDs, with custom alphabets and lengths.

117 bytes (minified and brotlied) with no dependencies, uses a cryptographically secure random source, and is faster than `crypto.randomUUID()` according to its README.

Instead of: uuid v4 strings when you don't need the UUID format

ohash

MITv2.0.12 · 2026-08-14

Stable hashing, serialization, deep equality and diffing of JavaScript values.

`hash(value)` gives a deterministic, short key for any serializable value: the building block for cache keys. Small and maintained by UnJS.

Pairs with @xtandard/lib/unstorage: `withCache` and `createCache` key entries by `hash(args)` from ohash unless you pass `toKey`.

typeid-js

Apache-2.0v1.2.0 · 2025-02-04

TypeIDs: type-prefixed, sortable IDs (`user_01h…`) built on UUIDv7. The official TypeScript implementation of the TypeID spec.

TypeID is a cross-language spec, the prefix is part of the type (`TypeID<"user">`), and the suffix converts to and from a UUID, so IDs fit `uuid` columns.

Pairs with @xtandard/lib/ulid: `@xtandard/lib/ulid` makes prefixed ULIDs as plain strings, with no spec behind them. Prefer typeid-js when IDs cross languages, must be stored as UUIDs, or you want the prefix checked by the compiler.

Example
import { TypeID, typeid } from "typeid-js";

const id = typeid("user"); // TypeID<"user">
id.toString(); // "user_01m7y054epfzyv34cn1nzk5t99"
TypeID.fromString(id.toString(), "user").toUUID(); // "01a1fc02-91d6-7ffd-…"

Parsing & formats

Versions, IP addresses, JSON supersets, URL-friendly encodings and HTML.

@effective/rison

MITv2.0.1 · 2025-09-05

Rison: a compact, URL-friendly encoding of JSON, TypeScript-first and ESM-only, with optional compression helpers.

Nested filter, sort and column state stays readable and short in a URL, with minimal escaping.

Pairs with @xtandard/lib/tanstack/rison: `risonCodec` plugs Rison into `parseAsCodec` for URL query state.

  • A small project with few users.

cheerio

MITv1.2.0 · 2026-01-23

Parse and manipulate HTML and XML with a jQuery-like API, without a browser.

Familiar selectors and traversal on top of parse5 (or htmlparser2). The standard for scraping and server-side HTML transforms.

destr

MITv2.0.5 · 2025-04-03

A faster, safer `JSON.parse`: returns `unknown`, passes non-JSON strings through instead of throwing, and guards against prototype pollution.

Convenient for parsing values of uncertain shape (query params, storage, env); `safeDestr` throws when you want strict parsing.

ipaddr.js

MITv2.5.0 · 2026-08-04

Parse, validate and classify IPv4 and IPv6 addresses and CIDR ranges, including IPv4-mapped IPv6.

Small, no dependencies, and long established.

Pairs with @xtandard/lib/ip: IPv4/IPv6 address and CIDR intervals: containment, overlap and merging of address ranges.

semver

ISCv7.8.6 · 2026-11-02

Parse, compare, increment and match semantic versions and ranges.

The semver parser npm itself uses, so ranges behave exactly as they do in `package.json`.

Pairs with @xtandard/lib/semver: Semantic-version range intervals: intersect, merge and compare version ranges as `Interval`s.

superjson

MITv2.2.6 · 2025-11-27

Serialize `Date`, `Map`, `Set`, `BigInt`, `RegExp`, `undefined` and more through JSON, and get them back.

Keeps rich types across a JSON boundary (API responses, server-to-client props) with a negligible runtime footprint.

HTTP clients & URLs

fetch wrappers and URL helpers.

ky

MITv2.2.0 · 2026-10-09

A tiny `fetch`-based HTTP client with retries, timeouts, hooks and JSON shortcuts.

No dependencies and stays close to `fetch`, while fixing its rough edges (non-2xx responses throw, retries on failure).

Instead of: axios

ofetch

MITv1.5.1 · 2025-11-01

A better `fetch`: automatic JSON parsing, typed `FetchError` with the parsed body, retries, timeouts and interceptors.

Works the same in Node.js, browsers and Workers. Maintained by UnJS.

ufo

MITv1.6.4 · 2026-04-29

URL utilities: parse, join and normalize URLs, read and write query params, trailing slashes.

Consistent helpers for the cases the `URL` constructor doesn't cover, such as relative URLs and joining paths.

Servers & APIs

Web frameworks, middleware and GraphQL.

elysia

MITv1.4.32 · 2026-11-11

A Bun-first web framework with end-to-end type safety.

Route schemas validate requests and flow into the typed Eden client.

gql.tada

MITv1.11.5 · 2026-11-14

GraphQL documents typed on the fly from your schema, with no code generation step.

Together with GraphQLSP you get types and editor diagnostics as you write queries.

Instead of: graphql-codegen for client documents

graphql-yoga

MITv6.1.0 · 2026-11-12

A batteries-included, spec-compliant GraphQL server that runs on any JavaScript runtime.

Subscriptions built in, every envelop plugin works, and it's maintained by The Guild.

Instead of: apollo-server

hono

MITv4.13.19 · 2026-11-16

A small web framework on Web Standards for Cloudflare Workers, Deno, Bun, Node.js, AWS Lambda and more.

Zero dependencies (the `hono/tiny` preset is under 12 kB), the same code on every runtime, and many built-in middlewares.

Pairs with @xtandard/lib/filters: List endpoints: validate the incoming filter request with the ready-made schemas, render it with a database adapter, and serve pages with `@xtandard/lib/pagination`.

hono-idempotency

MITv0.9.1 · 2026-07-18

Stripe-style `Idempotency-Key` middleware for Hono, following the IETF idempotency-key header draft.

Request fingerprinting rejects a reused key with a different payload, concurrent duplicates are locked out, and replays return the stored response. Errors are RFC 9457 problem details. Stores: memory, Redis, Cloudflare KV and D1, Durable Objects.

  • Young and pre-1.0 (0.9.x), with a small community.

Pothos

ISCv4.18.1 · 2026-11-20

A code-first, plugin-based GraphQL schema builder.

Types are inferred from your code, with no code generation and no decorators, and `graphql` is its only dependency.

Databases & ORMs

Query builders, ORMs, embedded databases and their helpers.

dexie

Apache-2.0v4.4.7 · 2026-10-19

A promise-based IndexedDB wrapper with schema versioning, rich queries and live queries.

Works around bugs in browsers' IndexedDB implementations, and `useLiveQuery` (dexie-react-hooks) re-renders when the data changes.

  • Sync, auth and collaboration come from Dexie Cloud, a separate commercial service.

drizzle-audit

MITv0.1.13 · 2026-06-27

Audit logging for Drizzle ORM: tracks changes and custom actions, with pluggable storage, automatic context propagation and field-level transforms.

Wrap the database to get CRUD audit logs, then add context, redaction and external storage as you need them. Framework middleware is included.

  • Pre-1.0 (0.1.x).

drizzle-cursor

MITv0.7.2 · 2026-05-23

Cursor-based pagination for Drizzle ORM: any number of cursor columns, custom serialization, SQL expressions, query builder and relational queries.

A focused, single-purpose library for keyset pagination on Drizzle.

Pairs with @xtandard/lib/pagination/drizzle: Both do keyset pagination on Drizzle. `@xtandard/lib/pagination` adds offset and page modes, the same API across ORMs, and frontend helpers.

drizzle-orm

Apache-2.0v0.45.4 · 2026-10-08

A type-safe TypeScript ORM and SQL query builder for Postgres, MySQL, SQLite and more, with migrations through drizzle-kit.

A SQL-shaped API with no runtime code generation, and it runs in every major runtime, serverless and edge included.

Pairs with @xtandard/lib/filters/drizzle: Render a filter request to a Drizzle `WHERE` (or an RQB v2 `where` object with `/filters/drizzle-rqb`).

Pairs with @xtandard/lib/pagination/drizzle: Keyset (cursor) and offset pagination over Drizzle queries.

kysely

MITv0.29.9 · 2026-11-12

A type-safe, autocompletion-friendly SQL query builder.

Every query is typed from your database interface, and it runs in Node.js, Deno, Bun, Cloudflare Workers and browsers.

Pairs with @xtandard/lib/filters/kysely: Render a filter request to a Kysely boolean expression.

Pairs with @xtandard/lib/pagination/kysely: Keyset (cursor) and offset pagination over Kysely queries.

PGlite

Apache-2.0v0.5.17 · 2026-11-19

Postgres compiled to WASM: in-memory, or persisted to the filesystem (Node.js, Bun, Deno) or IndexedDB (browsers).

Real Postgres without a server: 3 MB gzipped, with extensions such as pgvector and PostGIS. Good for tests and local-first apps.

Pairs with @xtandard/lib/filters/drizzle: Run your filter and pagination queries against real Postgres in-process, for example through Drizzle's PGlite driver in tests.

Auth & permissions

Authentication and authorization.

better-auth

MITv1.7.27 · 2026-11-20

A framework-agnostic authentication (and authorization) framework for TypeScript: email and password, social sign-in, sessions, and plugins for 2FA, multi-tenancy and more.

Users and sessions live in your own database, and its plugin ecosystem covers what often needs a hosted auth service.

CASL

MITv7.1.3 · 2026-11-13

Isomorphic authorization: define what a user can do with which resources, and check it in the API and the UI.

The core is about 6 KB minified and gzipped, rules can be serialized and shared with the frontend, and there are integrations for React, Vue, Angular, Mongoose and Prisma.

permix

MITv4.4.1 · 2026-10-30

Type-safe permissions from one typed schema, framework-agnostic, on the client and the server.

Lightweight, and a permission that is misspelled or missing is a TypeScript error. Integrations exist for UI frameworks, SSR hydration and server middleware.

Payments

Billing and payment APIs.

PayKit

MITv0.2.0 · 2026-09-17

An embedded Stripe billing framework: plans and features in code, entitlements, usage metering, and webhooks handled for you.

Billing state lives in your database instead of being stitched together from raw Stripe APIs and webhooks.

  • Pre-1.0 (0.x).

stripe

MITv23.2.0 · 2026-11-19

Stripe's official API client for Node.js and other server runtimes.

Typed and maintained by Stripe.

Background jobs & workflows

Durable functions, queues and workflow engines.

inngest

Apache-2.0v4.26.2 · 2026-10-29

Durable functions, events and queues: step-based functions that retry and resume, served from your app over HTTP.

No queue infrastructure to run, and it works with most frameworks and serverless platforms.

  • Functions are orchestrated by the Inngest platform.

Temporal

MITv1.26.0 · 2026-11-17

Durable execution: workflows written as code that survive crashes and can run for days or years, with activities, retries, timers and signals.

A proven, distributed orchestration engine with an official TypeScript SDK.

  • Needs a Temporal server (self-hosted or Temporal Cloud), and the project strongly recommends running workers on Node.js.

Trigger.dev

MITv4.8.8 · 2026-11-20

Long-running background tasks with retries, queues, concurrency control and observability.

An open-source platform: use the managed cloud or self-host it (documented at trigger.dev/docs/self-hosting).

Workflow SDK

Apache-2.0v5.7.1 · 2026-11-20

Makes TypeScript functions durable: persisted progress, retried steps, suspension without using compute, built-in observability.

Durable workflows as ordinary async functions, with framework integrations such as Next.js.

  • Managed on Vercel; to self-host, use the Postgres backend or a custom 'World'.

AI

LLM toolkits, AI UI and sandboxes.

@vercel/sandbox

Apache-2.0v4.1.0 · 2026-11-20

SDK for Vercel Sandbox: run arbitrary code in isolated Linux microVMs, with the filesystem snapshotted between sessions.

A simple way to run untrusted or AI-generated code safely.

  • A Vercel service: needs a Vercel account and is billed by usage.

AI Elements (shadcn/ui)

MITv4.23.0 · 2026-10-27

Patterns for agentic interfaces (chat, messages, reasoning, tool calls, plans, sources, prompt input…) built from shadcn/ui components and copied into your project with the `shadcn` CLI.

There is no package to install: the code is yours to change. The steps an agent takes share one `Trace` component, which works with the AI SDK's reasoning, tool and source parts. It replaces the AI SDK's own AI Elements (elements.ai-sdk.dev), which is deprecated in its favour.

Instead of: ai-elements (elements.ai-sdk.dev)

  • Copy-in components, not a dependency: `recs:check` tracks the `shadcn` CLI that installs them. Needs a project set up with shadcn/ui and Tailwind CSS.

AI SDK

Apache-2.0v7.0.179 · 2026-11-20

A provider-agnostic toolkit for LLM apps and agents: text and structured generation, tool calling, streaming, and UI hooks for React, Svelte, Vue and Angular.

One API across OpenAI, Anthropic, Google and the other providers, with first-class streaming.

streamdown

Apache-2.0v2.8.0 · 2026-11-17

A drop-in `react-markdown` replacement for streamed AI output.

Renders incomplete Markdown gracefully while it streams, with GFM, KaTeX math, Mermaid diagrams, Shiki highlighting and hardened (safe) rendering.

Instead of: react-markdown for streamed content

Email, chat & notifications

Email templates, multi-channel notifications and chat bots.

Better Notify

MITv1.0.0-beta.12 · 2026-11-02

End-to-end typed notifications for Node.js and Bun: email, SMS, push, Slack, Discord, Telegram and more from one catalog.

One catalog type drives the client, the queue worker and the webhook router, transports can be swapped, and middleware (rate limits, idempotency, tracing) is built in.

  • 1.0 is in beta (1.0.0-beta.x).

Chat SDK

MITv4.45.0 · 2026-11-13

Build chat bots and AI agents once for Slack, Microsoft Teams, Google Chat, Discord, WhatsApp and more.

One TypeScript API for events, messages and cards across platforms.

React Email

MITv6.11.16 · 2026-11-17

Unstyled React components and a preview server for building emails.

Write emails in React and TypeScript, and let it handle the inconsistencies between Gmail, Outlook and other clients, including dark mode.

  • The separate `@react-email/components` package is deprecated on npm; follow the current install docs.

Client-side and in-memory search.

fuse.js

Apache-2.0v7.5.0 · 2026-07-13

Lightweight fuzzy search over arrays of strings or objects, with weighted keys and extended and logical queries.

No backend and no index server: about 8.6 kB for the full build. Good for command palettes and small to medium lists.

Orama

Apache-2.0v3.1.18 · 2025-12-19

An in-memory search engine with full-text, vector and hybrid search, for browsers, servers and edge runtimes.

Typed schemas, filters, facets and vector search in one package that runs anywhere.

React: state, data & routing

Server state, client state, URL state, routing, forms and tables.

@tanstack/react-form

MITv1.33.5 · 2026-08-11

Headless, type-safe form state and validation for React.

Deeply typed field paths, sync and async validation, and fine-grained re-renders.

@tanstack/react-query

MITv5.108.2 · 2026-11-20

Server-state management for React: caching, request deduplication, background refetching, mutations and infinite queries.

The de facto standard for fetching and caching server data in React.

Pairs with @xtandard/lib/react: `useStream` and `StreamRenderer` run streamed sources (async iterables, `AsyncChannel`) through React Query.

@tanstack/react-router

MITv1.170.46 · 2026-10-22

A fully type-safe router for React: typed path and search params, loaders with caching, file-based or code-based routes.

Search params are first-class, validated and typed state, which makes it a good fit for URL-driven UIs.

Pairs with @xtandard/lib/tanstack: nuqs-style URL query state (`useQueryState`, parsers, codecs) on top of TanStack Router.

@tanstack/react-table

MITv9.3.1 · 2026-10-12

Headless table and datagrid logic: sorting, filtering, grouping, pagination, column visibility and more.

You keep full control of the markup and styling, and it scales from simple tables to complex datagrids.

Pairs with @xtandard/lib/filters: For server-side tables, express column filters and sorting as a filter request and sort spec, and serve pages with `@xtandard/lib/pagination`.

@tanstack/react-virtual

MITv3.14.26 · 2026-11-03

Headless virtualization for long lists, grids and tables.

Renders only what is visible, with dynamic item sizes, and leaves the markup to you.

jotai

MITv3.0.2 · 2026-11-09

Primitive, atomic client state for React.

State is built from small atoms that compose, so components re-render only for what they read, without a global store or boilerplate.

nuqs

MITv2.10.3 · 2026-11-10

Type-safe URL search-param state for React: like `useState`, but stored in the query string.

Adapters for Next.js (app and pages routers), plain React, Remix and React Router, with parsers and serializers.

Pairs with @xtandard/lib/tanstack: `@xtandard/lib/tanstack` is a nuqs-style API built on TanStack Router's own search params (with server parsers, a testing adapter, and Temporal and Rison codecs). nuqs's TanStack Router adapter is experimental, so use nuqs on the other routers.

react-router

MITv8.5.2 · 2026-11-18

Routing for React, as a library (declarative or data mode) or as a full-stack framework.

The most widely used React router, and the successor of Remix as a framework.

React: UI components

Headless and lightly styled components.

Base UI

MITv1.9.0 · 2026-10-09

Unstyled, accessible React components (dialog, drawer, menu, popover, select, combobox, toast…) in one tree-shakable package.

From the creators of Radix, Floating UI and Material UI. Its Drawer (swipe to dismiss, snap points, nested drawers) is what shadcn/ui's Base UI drawer moved to from vaul, which is unmaintained.

Instead of: vaul (unmaintained) for drawers

cmdk

MITv1.1.1 · 2025-03-14

A fast, unstyled command menu (⌘K) for React that also works as an accessible combobox.

It filters and sorts items automatically, and its composable API lets you wrap items in your own components.

dnd kit

MITv0.5.3 · 2026-10-31

A drag-and-drop toolkit: sortable lists, a framework-agnostic core and a React adapter.

Accessible by default (keyboard support, ARIA attributes, screen reader announcements), performant and extensible.

  • The new `@dnd-kit/react` is pre-1.0 (0.x); the long-standing `@dnd-kit/core` v6 has had no release since December 2024.

liveline

MITv0.0.7 · 2026-03-12

Real-time animated charts for React: line, multi-series and candlestick.

Canvas-rendered at 60 fps with smooth interpolation between updates, and no CSS imports.

  • Pre-1.0 (0.0.x).

lucide-react

ISCv1.77.0 · 2026-11-20

Lucide's consistent SVG icon set as tree-shakable React components.

A large, consistent icon set where you only ship the icons you import.

masonic

MITv4.1.0 · 2025-04-22

A virtualized masonry grid for React.

Renders tens of thousands of cells without lag, and exposes its building blocks (hooks) for custom layouts.

next-themes

MITv0.4.6 · 2025-03-11

Theme switching (dark mode, system preference) for React apps.

Two lines of setup, and no flash of the wrong theme on load.

React Flow

MITv13.0.2 · 2026-11-17

Node-based editors and interactive diagrams for React.

Highly customizable nodes and edges, with built-in zoom, pan, selection, minimap and controls.

Instead of: reactflow (the package name before v12)

react-error-boundary

MITv6.1.6 · 2026-09-20

A reusable error boundary component and hooks for React.

Fallback UI, reset keys and `useErrorBoundary`, without writing a class component.

react-hotkeys-hook

MITv5.4.0 · 2026-11-09

A React hook for keyboard shortcuts.

Declarative shortcuts with modifier combinations and scopes, bound to a component's lifecycle.

react-lzy-img

MITv0.8.2 · 2026-03-29

A small lazy-loading image component for React with responsive images, BlurHash or LQIP placeholders and retries.

About 1.4 KB gzipped, with shared IntersectionObservers for long lists.

  • A small project with a single maintainer.

sonner

MITv2.0.8 · 2026-08-09

An opinionated toast component for React.

Good defaults and animations, promise toasts, and a one-line API (`toast(...)`) callable from anywhere.

Pairs with @xtandard/lib/sonner: `toastStream` shows a stream's progress in one toast: loading, each item, then success or error.

Example
import { toastStream } from "@xtandard/lib/sonner";

const { items } = await toastStream(() => importUsers(rows), {
  loading: "Importing users...",
  streaming: ({ count, latest }) => `Imported ${count}: ${latest.name}`,
  success: ({ count }) => `Imported ${count} users`,
});

Tiptap

MITv3.35.0 · 2026-11-20

A headless rich-text editor framework built on ProseMirror, with React and Vue bindings.

Full control over the UI, and a large set of extensions.

  • The editor is open source; the Pro extensions need a paid subscription.

Styling & animation

Class names, variants, colors and motion.

auto-animate

MITv0.10.2 · 2026-11-06

Zero-config animations when elements are added, removed or moved, for React, Vue, Solid or any JavaScript app.

One line of code (a ref or a function call) animates list changes.

chroma-js

(BSD-3-Clause AND Apache-2.0)v3.3.0 · 2026-11-09

Color conversions, manipulation and color scales (including Lab and LCH interpolation).

Zero dependencies, with a complete set of color spaces and scales for data visualization.

class-variance-authority

Apache-2.0v0.7.1 · 2024-11-26

Typed variant APIs for class names: `cva(base, { variants, defaultVariants })`.

Component variants with typed props, the pattern shadcn/ui uses.

clsx

MITv2.1.1 · 2024-04-23stable

Build `className` strings conditionally.

239 bytes gzipped, and a faster, smaller drop-in replacement for `classnames`.

Instead of: classnames

motion

MITv14.14.0 · 2026-11-13

An animation library for React and JavaScript (formerly Framer Motion): gestures, layout animations, springs, scroll.

Production-ready, tree-shakable, and the most complete declarative animation API for React.

Instead of: framer-motion

tailwind-merge

MITv3.7.1 · 2026-11-19

Merge Tailwind CSS class strings without style conflicts (the last `p-*` wins).

Lets components accept a `className` that overrides their defaults correctly.

Documents, media & devices

Images, spreadsheets, barcodes, printers, uploads and haptics.

etiket

MITv1.1.0 · 2026-11-10

A zero-dependency barcode and QR code generator: 40+ formats, styled QR codes, SVG and PNG output.

Each format is verified against an independent decoder or encoder, it is tree-shakable, and it runs everywhere.

hucre

MITv1.3.0 · 2026-10-26

A zero-dependency spreadsheet engine: read and write XLSX, CSV and ODS, with schema validation and streaming.

Pure TypeScript that runs everywhere, edge runtimes included, and much smaller than the usual spreadsheet libraries (the CSV-only import is about 2 KB gzipped).

Instead of: xlsx (SheetJS), exceljs

portakal

MITv0.5.0 · 2026-04-02

One API for thermal printer languages: ESC/POS, ZPL, TSC, EPL, CPCL and more, plus parsers and validation.

Pure TypeScript with zero dependencies; only the printer languages you import end up in the bundle.

  • Pre-1.0 (0.x); the project asks for testing on real printers.

satori

MPL-2.0v0.63.2 · 2026-10-20

Convert HTML and CSS (written as JSX) to SVG, for example for Open Graph images.

Runs in browsers, Node.js and Web Workers, with no headless browser needed.

  • MPL-2.0 is a weak (file-level) copyleft: fine as a dependency, but changes to satori's own files must stay open source.

tactus

MITv0.0.3 · 2025-06-17

Haptic feedback for web apps: `triggerHaptic()` gives Safari's native tick on iOS and uses the Vibration API on Android.

A one-function API for something the web platform doesn't offer directly on iOS.

  • 0.0.x, with no release since June 2025; desktop browsers are not supported.

thumbhash

MITv0.1.1 · 2023-03-22stable

A very compact image placeholder hash, to show while the real image loads.

Compared with BlurHash, it encodes more detail in the same space, includes the aspect ratio, and supports alpha.

Instead of: blurhash

Uppy

MITv6.3.2 · 2026-11-18

A modular file-upload UI and engine: dashboard, webcam and remote sources, resumable (tus) and S3 uploads.

Pluggable and framework-agnostic, with React components and headless options.

CLI, logging & tooling

Command-line apps, processes, logging, environment and code health.

citty

MITv0.2.2 · 2026-04-01

An elegant CLI builder: typed arguments, nested and lazily loaded sub-commands, generated usage.

Zero dependencies, built on Node's `util.parseArgs`.

Instead of: commander, yargs

Clack

MITv1.9.0 · 2026-11-09

Pre-styled, interactive command-line prompts: text, select, confirm, spinners and grouped flows.

Good-looking prompts with almost no code.

Instead of: inquirer, prompts

consola

MITv3.4.2 · 2025-03-18

A console logger for Node.js and browsers with log levels, pluggable reporters and interactive prompts.

Nice output out of the box; a smaller core build drops the fancy reporter.

dotenv

BSD-2-Clausev18.0.10 · 2026-11-09

Loads environment variables from a `.env` file into `process.env`.

The long-standing standard, with zero dependencies.

  • Node.js 20.6+ (`--env-file`), Bun and Deno can read `.env` files natively, so you may not need it.

evlog

MITv2.36.0 · 2026-11-18

A TypeScript logger built around wide events: one structured event per operation with all its context, plus structured errors.

One drain pipeline for scripts, libraries, jobs, edge and HTTP handlers, so logs become queryable events.

execa

MITv10.2.1 · 2026-10-23

Run commands from scripts and apps: promise and template-string APIs, piping, and better Windows support.

Built on `child_process` but designed for programmatic use, with good errors and graceful termination.

Instead of: child_process, shelljs

knip

ISCv6.47.0 · 2026-11-20

Finds and fixes unused files, dependencies and exports in JavaScript and TypeScript projects.

Understands many frameworks and tools through plugins, and works in monorepos.

std-env

MITv4.3.0 · 2026-09-29

Detects the JavaScript runtime (Node.js, Bun, Deno, workerd…), CI provider, AI coding agents and environment flags.

Runtime-agnostic and follows the WinterCG runtime keys proposal.

unctx

MITv3.0.1 · 2026-08-20

Composition-API-style context (`ctx.use()`) for plain JavaScript libraries.

Makes 'call `useX()` anywhere inside a request' work, with optional `AsyncLocalStorage` to keep the context across `await`.