[ API ]
Every package
Every published package, grouped by the problem it solves and filterable by name or description.
The sdxc command
HTTP & responses
@sdxc/httpResponse builders, content negotiation, and HTTP caching for the Fetch API@sdxc/responseSemantic helpers that build Response objects for JSON APIs and redirects@sdxc/api-clientBase class for HTTP API clients: one origin, verb methods, shared hooks@sdxc/get-client-ipRead the client IP from a Cloudflare Workers request@sdxc/ipIPv4 and IPv6 addresses and ranges as value objects that classify against the IANA special-purpose registries@sdxc/outboundCheck, follow and read URLs a stranger chose: public hosts on every redirect, one deadline, bounded bodies@sdxc/user-agentRead a User-Agent string into its browser, engine, operating system and device@sdxc/structured-fieldsParse and serialize RFC 9651 structured HTTP field values@sdxc/link-headerParse and stringify RFC 8288 Link headers@sdxc/digest-fieldsRFC 9530 Content-Digest and Repr-Digest, plus the RFC 3230 Digest header@sdxc/http-signaturesSign and verify HTTP requests with RFC 9421 message signatures or draft-cavage-12@sdxc/server-timingServer-Timing measurements collected per request and written to a response header@sdxc/catch-response-middlewareRouter middleware that turns a thrown Response into the request's response@sdxc/assets-middlewareRouter middleware that resolves a document's stylesheets and client entry once per request and publishes them on the request context as ctx.assets@sdxc/trailing-slash-middlewareRouter middleware that redirects every path to one canonical trailing-slash form@sdxc/no-www-middlewareRouter middleware that permanently redirects a www. hostname to the apex domain@sdxc/well-knownTyped documents for well-known URIs: security.txt, WebFinger, NodeInfo, OAuth and OIDC metadata, JWKS and more
API design
@sdxc/openapiBuild, serve and check OpenAPI 3.1 documents from typed operations@sdxc/problemBuild, detect and parse RFC 9457 problem details, cataloged per API@sdxc/json-schemaSchema builders that validate like remix/data-schema and emit JSON Schema@sdxc/json-pointerParse, stringify, get and set RFC 6901 JSON Pointers@sdxc/paginationOffset and keyset pagination with parameter parsing and Link headers@sdxc/idempotencyIdempotency-Key requests: replay the first response, refuse conflicting reuse@sdxc/merge-patchApply, diff and read RFC 7396 JSON Merge Patch documents
Identity & security
@sdxc/authOAuth 2.0 and OpenID Connect client for any runtime that speaks Request and Response@sdxc/authzAuthorization from a typed catalog of abilities, additive roles and guards, answered synchronously from loaded facts@sdxc/jwtJWT payload classes and the keys that sign them@sdxc/passkeyPasskeys end to end: a WebAuthn browser API and a verifying relying party@sdxc/samlSAML 2.0 service provider: verify signed assertions, build requests and metadata@sdxc/scimSCIM 2.0 resources, filters, PATCH operations and discovery documents@sdxc/cryptoWeb Crypto primitives — hashing, HMAC, tokens, TOTP, AES-GCM — plus scrypt passwords@sdxc/security-headersTyped CSP, Permissions-Policy and security response headers, with middleware@sdxc/webhooksSign and verify Standard Webhooks deliveries, reporting every failure as a typed value
Forms & abuse
@sdxc/captchaTurnstile, hCaptcha and reCAPTCHA verification, with middleware and widgets@sdxc/honeypotHoneypot form fields with a signed timestamp, middleware and a UI component@sdxc/spamSpam scoring for user content: local rules, reputation checks and a classifier@sdxc/password-policyPassword checks: length, common and breached passwords, similarity and reuse@sdxc/email-addressEmail address parsing, normalization, disposable-domain and mail-server checks
Content & formats
@sdxc/markdownGitHub Flavored Markdown: parse to a typed AST, transform it, write it back@sdxc/mathTeX math to MathML Core, with a markdown walk visitor and a component@sdxc/diagramMermaid sequence, class, state and flowchart diagrams to SVG, with a markdown walk visitor and a component@sdxc/yamlYAML reading and writing over a documented subset, shaped after the built-in JSON object@sdxc/xmlXML parser and serializer for RSS-style feeds@sdxc/htmlRead a served page: fetch or parse HTML, then query it by role and accessible name@sdxc/csvRead and write RFC 4180 CSV, with a streaming writer and formula neutralization@sdxc/jsonlJSON Lines reading and writing, streamed with a bounded buffer and line numbers in every failure@sdxc/jsoncJSON with comments and trailing commas, parsed with errors that point at the line and column@sdxc/icalendarRead and write iCalendar documents, with recurrence rules and time zones@sdxc/epubBuild EPUB 3.3 publications from XHTML chapters, checked against what epubcheck rejects@sdxc/zipStreaming ZIP archive writer with CRC-32, storing every entry uncompressed@sdxc/distillExtract the article from a web page: bounded fetch, scoring and sanitizing@sdxc/jsdocRead JSDoc out of JavaScript and TypeScript source text into a JSON documentation model@sdxc/codemodSource-to-source edits of JavaScript and TypeScript imports and declarations, changing only the edited ranges
Feeds & publishing
@sdxc/rssRSS 2.0 feed builder and parser@sdxc/atomAtom 1.0 feed parser and builder@sdxc/json-feedJSON Feed 1.1 builder and parser@sdxc/feedOne feed API over RSS, Atom and JSON Feed, with conditional fetching and autodiscovery@sdxc/opmlRead and write OPML subscription lists@sdxc/sitemapRead and write the sitemap protocol: collect URLs, or fetch a published sitemap@sdxc/robotsRead, write and evaluate robots.txt and robots directives@sdxc/microformatsParse, read and write microformats2@sdxc/micropubRead Micropub requests into typed operations and build the spec's responses@sdxc/webmentionReceive, verify, discover and send Webmentions@sdxc/websubWebSub subscriber and publisher: subscribe, verify intent and signatures, notify hubs@sdxc/activitypubActivityPub protocol logic: vocabulary, actors, discovery, a verified inbox and signed delivery@sdxc/newsletterVendor-neutral newsletter subscriber lists with Buttondown and Kit providers
Data & storage
@sdxc/data-modelModels over remix/data-table tables with scopes, async callbacks and typed meta fields@sdxc/database-middlewareMiddleware that publishes a remix/data-table database as ctx.db on a request, a job or a command@sdxc/cacheCache contract with adapters for memory and Cloudflare KV@sdxc/workers-cacheCache tags, purging and cache-status reads for Cloudflare Workers Cache@sdxc/searchFull-text search over SQLite tables you already declare: safe query parsing, FTS5 and LIKE matching, field-weighted ranking, highlighting and batched reindexing@sdxc/session-storage-kvA remix/session SessionStorage backed by a Cloudflare Workers KV store@sdxc/data-table-d1A remix/data-table DatabaseDriver backed by Cloudflare D1@sdxc/data-table-sqlstorageA remix/data-table database driver backed by a Cloudflare Durable Object's SQL storage
Interface
@sdxc/uiStyled, accessible remix/component components rendered as server HTML@sdxc/uUtility-first styling for remix/component, composed from small, terse mixins@sdxc/iconsLucide icons as remix/component components, one tree-shakeable export per icon@sdxc/i18nLanguage detection and MessageFormat 2 translators for Remix routers and remix/component@sdxc/messageformatUnicode MessageFormat 2 parser and formatter shaped like Intl.MessageFormat@sdxc/seoCanonical URLs, typed schema.org structured data and head metadata@sdxc/highlightSyntax highlighting as tokens, with a markdown walk visitor and a stylesheet@sdxc/lazy-routeMaps a route to a module imported on the first request that reaches it@sdxc/lazy-frameA remix/component frame that loads its page once the reader reaches it, by scrolling near it or opening the dialog around it@sdxc/qrQR Code Model 2 encoder with optimal segmentation, SVG path data and a remix/component renderer
Operations
@sdxc/jobsDeclared background jobs dispatched over a pluggable queue backend@sdxc/cronCron schedules with zone-aware occurrences and descriptors@sdxc/backoffRetry delay schedules with exponential, linear, constant or stepped growth, a ceiling, free attempts and seedable jitter@sdxc/loggerOne wide event per Worker invocation, attached at the router and the job dispatcher@sdxc/trace-contextW3C Trace Context, carried from each invocation to its jobs and requests@sdxc/rate-limitAdapter-based rate limiting with standard response headers@sdxc/flagsFeature flag evaluation implementing the OpenFeature specification@sdxc/flags-engineFlag evaluation engine: typed targeting rules, percentage splits and pluggable stores@sdxc/billingVendor-neutral billing providers and a webhook endpoint that verifies deliveries@sdxc/attributionCampaign parameters, click identifiers and referrers, kept as a visitor's first and last touch@sdxc/mailTransport-agnostic transactional email with pluggable transports and remix/component rendering@sdxc/messagingSend one portable message to Slack, Discord, Teams, Google Chat, Telegram, WhatsApp, ntfy, Pushover, PagerDuty, Opsgenie, browser push or a signed webhook@sdxc/web-pushWeb Push from Workers: RFC 8291 encryption, VAPID signing, subscription checks and a browser subscribe helper@sdxc/hostnameCloudflare for SaaS custom-hostname client: register, poll and delete customer domains@sdxc/dohTyped DNS over HTTPS lookups@sdxc/zone-fileRead and write RFC 1035 DNS zone files, with the record data codec for every typed record@sdxc/rdapDomain registration data over RDAP: expiry, status, registrar and nameservers from the registry@sdxc/mcpModel Context Protocol servers as remix/router actions over Streamable HTTP@sdxc/cliBuild command-line tools with generated help, prompts bound to flags, tasks and a test harness@sdxc/cloudflare-pricingCloudflare Developer Platform list prices, one module per service
Language & values
@sdxc/resultResult type for error handling@sdxc/typesShared TypeScript types@sdxc/datesZone-aware date operations with Intl-only formatting@sdxc/durationTyped duration strings converted to milliseconds or seconds@sdxc/stringsEnglish inflection, Chicago title case, slugs and grapheme-safe text@sdxc/semverSemVer 2.0.0 parsing, precedence ordering and range-free version comparisons@sdxc/locationURL-like Location class for URL paths without an origin@sdxc/validateStandard Schema validation utilities@sdxc/expressionBoolean conditions over a context, stored as typed JSON or written as text, with operators you add@sdxc/bracket-paramsRead and write nested query strings and form data with bracket syntax, validated by a Standard Schema@sdxc/uuidValidate and assert UUIDs behind a branded UUID type, and generate v4 or v7 values@sdxc/typeidType-safe TypeID values: a UUID and the prefix that names what it identifies@sdxc/randomSeeded and system random streams with integer, float, pick and shuffle draws, and resumable state
Testing
Written by Sergio Xalambrí. Follow @sergiodxa for new packages, or sponsor the work.