π I Built x: An Ultra-Fast, Full-Stack React Framework Native to Bun!
Hey Hack Club! π
I just shipped x (@thexjs) β an open-source, single-process React framework designed from scratch to run natively on top of the Bun runtime.
Check out the project on StarDance β
π‘ The Idea
Modern frameworks like Next.js bring heavy bundlers, complex dev servers, and dozens of abstractions. Since Bun is already a transpiler, bundler, package manager, and native HTTP engine with built-in SQLite & Postgres support, I asked a simple question:
Why wrap React around Webpack/Vite when Bun can do it all natively in a single process?
π Key Features
- π File-Based Routing: Drop
.tsxfiles insrc/pages/to create routes. - β‘ Hybrid Rendering: Choose SSR or static prerendering per route (
export const mode = "static"). - π Built-in API Routes: Write REST endpoints in
src/api/sharing the same memory and DB context. - π οΈ Server Functions: Call type-safe server logic directly from your React components.
- π‘οΈ Zero-Trust Security: AST build-time leak detection (prevents secret key exposure), native CSRF protection, and rate limiting.
- π Production Observability: Built-in
/healthz&/readyzprobes, JSON logging, and OpenTelemetry/Sentry support. - π Deploy Anywhere: Run on any VPS/Docker, or deploy to Vercel via
@thexjs/adapter-vercel.
β±οΈ Quickstart
Bootstrap a production-grade app in 30 seconds:
bun create thexjs-app@latest my-app
cd my-app
bun run dev
π Links & Resources
- π StarDance: stardance.hackclub.com/home
- β GitHub Repository: github.com/abdelkabirouadoukou/x
- π Documentation: thexjs.vercel.app
Feedback and GitHub stars are super appreciated! Let me know what you think! π
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.