What these are
A collection of small TypeScript packages that agree with each other, built on what the web platform already provides.
Last updated by
After reading this guide, you will know
- What the
@sdxcpackages have in common, and why they agree with each other - Which packages need Remix and which run anywhere
fetchdoes - Which of the two ways in fits what you are building
@sdxc is 153 packages published under one npm scope, written for the same
author's applications and kept in one repository, so they agree on what a failure is, what
validation looks like and where the framework goes. This page covers what they share, and which
of the two ways in fits what you are building.
What they have in common
The platform is the baseline. A package takes a Request and answers with a Response,
hashes through Web Crypto, formats through Intl, and describes a schema through Standard
Schema. Where the platform has an answer, that answer is the API; a shim exists only where it
does not.
Failure is a value. Every fallible entry point returns a Result rather than throwing, so
a failure is something the type system makes you look at. A parse failure also carries the
position it happened at, which is what turns "invalid input" into a line number.
Nothing arrives that you did not ask for. 56 of the 153 have no dependency outside the collection at all, and the ones that do name it in their README. Subpath exports keep the parts of a package you never import out of your bundle.
They are written for Remix, and most work without it. 98 target Remix
directly. The other 55 depend on no framework and run anywhere fetch
does. Where a package needs both, the framework binding sits under its
own subpath, so the core stays importable on its own.
Versions are dates. A later date says only that it is later.
Two ways in
Build an app with sdxc. You start from a template that already has a router, a database,
jobs, email, an MCP endpoint and tests wired together, and sdxc writes each new controller,
model or job where it belongs. Pick this when you are starting an app on Cloudflare Workers and
want the decisions made:
The sdxc command — what each command does, and where it is covered.
Use the packages à la carte. You add one package to the app you already have, whatever its layout, and import it by its own name. Pick this when you need one problem solved, such as signing a JWT or parsing markdown, and want nothing else to change:
Install and pin — the versioning scheme, and the one rule it carries.
Your first handler — three packages composed into something that runs.
Where to go next
Build an app — start a project with
sdxcand ship a small app end to end.Your first handler — three packages composed into a handler, with no project template.
Resulteverywhere — the convention every package's API is built around.