sdxc

[ Guides ]

Documentation

What the collection is, the conventions it keeps, and how to build a Remix app with it, from the router to the jobs behind it.

Getting started

A collection of small TypeScript packages that agree with each other, built on what the web platform already provides.
What these are

Conventions

Every fallible entry point answers with a value instead of throwing, and what that buys you at the call site.
Result everywhere

Building Remix apps

Build the global middleware chain once, publish services onto the request context, and let tests swap them.
Wire the router: middleware, context and services

HTTP APIs

A small resource API that validates bodies, answers failures as RFC 9457 problems, pages its lists and states its rate limit.
Build a JSON API with problem details

Identity & security

An authorization-code login against any OpenID Connect provider, with a KV-backed session and a return URL that stays on your origin.
Sign in with OpenID Connect

Data & background work

Keep values in Workers KV with a stale copy for outages, and store whole responses at the edge under tags you can purge.
Cache on Cloudflare Workers

Content & feeds

Parse posts with typed frontmatter and custom tags, transform them in one walk, and render them in a Remix route.
A markdown content pipeline

Operations & testing

One wide log event per invocation, a W3C trace that follows a request into its jobs, and a Server-Timing header for the browser.
Logs, traces and timings

Releases

Releases are dated rather than semantic, the number records when a release went out, and that is why a dependency is written as one exact date.
Versioning

License

Every package in the collection is published under the MIT license, on the same terms, and each one carries its own copy of it.
License

Browse the packages

All 121, filterable by name and by what they do, each with its own reference page.
Open the index

Watch what ships

One release a day at most, named for the date it went out, with the commits that went into it.
Read the releases

Written by Sergio Xalambrí. Follow @sergiodxa for new packages, or sponsor the work.