sxo
SXO is a multi-runtime server-side JSX tool for Node.js, Bun, Deno, and Cloudflare Workers. It includes SXOUI, a framework-agnostic UI library inspired by shadcn/ui
Optimize SXO production builds using custom esbuild configuration. Inject any esbuild option via the BUILD environment variable to override defaults and enhance client-side bundling for better performance.
How to Add SXOUI Components Using the sxo add CommandLearn to add SXOUI components to your project using the sxo add command. Effortlessly integrate UI elements from the basecoat library into your local src components directory.
SXO ETag and Caching: How Hashed vs Non-Hashed Assets Are HandledLearn how SXO manages ETag and caching for hashed vs non-hashed assets. Discover immutable year-long caches for hashed files and five-minute caches for others, optimizing performance.
How Middleware Execution Order Works in SXO's Middleware ChainUnderstand SXO middleware execution order in the middleware chain. Learn how SXO runs middleware sequentially and short-circuits the chain for efficient request processing. Optimize your SXO setup.
How the Readiness Probe Determines When the Dev Server Is Ready in SXODiscover how the SXO readiness probe uses waitForHttp to poll the dev server's endpoint and determine readiness by checking status codes 200-499. Learn about backoff and jitter.
How to Deploy SXO to Cloudflare Workers with Wrangler ConfigurationDeploy SXO to Cloudflare Workers using Wrangler. Configure ASSETS binding and map virtual imports in wrangler.jsonc for seamless static file serving and module management.
Node-Style vs Web Standard Middleware Signatures in SXOUnderstand Node-style and Web Standard middleware signatures in SXO. Learn how SXO supports both Nodejs and serverless environments for flexible application development.
How SXO Handles Static Asset Precompression (.br/.gz) NegotiationDiscover how SXO handles static asset precompression negotiation for .br/.gz files. SXO intelligently chooses between Brotli and Gzip based on client support and availability, optimizing load times.
What Runtime Helpers Does the Rust/WASM JSX Transformer Generate?Discover the three runtime helpers __jsxComponent __jsxSpread and __jsxList generated by the Rust WASM JSX transformer enabling efficient component rendering attribute serialization and list flattening.
How Route Parameter Validation Works with SLUG_REGEX in SXOLearn how SXO validates dynamic route parameters using SLUG_REGEX. Discover the compile-time and runtime checks that ensure correct URL patterns and prevent errors.
How SXO Detects Which JavaScript Runtime (Node, Bun, or Deno) Is Being UsedDiscover how SXO identifies JavaScript runtimes like Node Bun or Deno by checking global objects Learn the simple detection method used in the gc Victor sxo repository.
How `global.css` Gets Injected Across All Routes in SXOLearn how SXO automatically injects your global CSS file into every route's entry points for consistent styling. Master your SXO build system.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →