Composable, Bun-First Full-Stack Framework
Build fast full-stack web apps with a native Go CLI, file-based React routing, Elysia server primitives, SSG prerendering, and a typed OpenAPI route-tree client.
# Install the native Go CLI
curl -fsSL https://raw.githubusercontent.com/patrickaigbogun/dex/master/install.sh | bash
# Scaffold a new app and start the dev server
dex scaffold my-app && cd my-app && dex start5-Pillar Architecture
Every layer of Dex is a focused, composable package that works together out of the box or standalone in your own stack.
Native Go CLI
Sub-5ms standalone Go binary for scaffolding, upstream template syncing, multi-version switching, builds, and OpenAPI codegen.
Router
File-based React routing with concurrent transitions, intent prefetching, nested layouts, subdomain mounting, and error boundaries.
Server
Elysia helpers for path-safe static assets, SSG-aware SPA fallback, Google Fonts injection, head metadata, and SSE dev reload.
Pie API Client
Framework-agnostic typed route-tree HTTP client with JSON/YAML OpenAPI code generation, lifecycle hooks, and idempotent retries.
Dev & Build
Parallel dev supervisor and production build pipeline with ESM code splitting, Tailwind CSS compilation, SSG prerendering, and compiled server binaries.
What's New in v0.3.0
6 MB Native Go CLI
Zero-dependency Go binary with sub-5ms startup, ~/.dex multi-version management, interactive template sync, and release diffing.
ESM Code Splitting & Cache Busting
Production builds emit client.js and content-hashed chunks/[name]-[hash].js with automatic ?v=<hash> asset cache busting in HTML.
Subdomain Mounting & Canonical Redirects
Map subdomains like docs or admin to route prefixes in dex.config.ts with clean client URLs and canonical 308 redirects.
Google Variable Fonts & Tailwind v4 @theme
Configure fonts once in dex.config.ts to inject preconnect links, CSS variables, utility classes, and Tailwind v4 @theme definitions.
SSG Prerendering & Head Metadata
Pre-render static routes to build/__ssg/ with RouterContext.Provider, Open Graph/Twitter tags, and Google Fonts baked into HTML.
@dex/pie YAML OpenAPI & Retry Safety
Generate typed route trees from JSON or YAML OpenAPI specs and retry idempotent methods safely with exponential backoff and jitter.