<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdelkabir Ouadoukou</title>
    <description>The latest articles on DEV Community by Abdelkabir Ouadoukou (@abdelkabirouadoukou).</description>
    <link>https://dev.to/abdelkabirouadoukou</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3389067%2F096848ba-c968-4253-9be9-f4cb2aa9da50.jpeg</url>
      <title>DEV Community: Abdelkabir Ouadoukou</title>
      <link>https://dev.to/abdelkabirouadoukou</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdelkabirouadoukou"/>
    <language>en</language>
    <item>
      <title>I Built a Full-Stack React Framework on Bun at 18. Here's Why Next.js Was Doing Too Much.</title>
      <dc:creator>Abdelkabir Ouadoukou</dc:creator>
      <pubDate>Wed, 29 Jul 2026 13:09:02 +0000</pubDate>
      <link>https://dev.to/abdelkabirouadoukou/i-built-a-full-stack-react-framework-on-bun-at-18-heres-why-nextjs-was-doing-too-much-1p5e</link>
      <guid>https://dev.to/abdelkabirouadoukou/i-built-a-full-stack-react-framework-on-bun-at-18-heres-why-nextjs-was-doing-too-much-1p5e</guid>
      <description>&lt;p&gt;I built &lt;a href="https://github.com/abdelkabirouadoukou/x" rel="noopener noreferrer"&gt;x&lt;/a&gt; — an open-source, ultra-fast full-stack React framework designed from scratch to run natively on the Bun runtime in a single process. Here is why I built it, how it works, and what I learned along the way.&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 The Realization: Modern Web Frameworks Are Bloated
&lt;/h2&gt;

&lt;p&gt;Most modern React frameworks ship with an overwhelming amount of abstraction: a separate build step, a complex dev server, heavy bundlers, independent API layers, and endless configuration files. By the time you run &lt;code&gt;npm install&lt;/code&gt;, your &lt;code&gt;node_modules&lt;/code&gt; folder already holds hundreds of megabytes of dependencies you'll never touch directly.&lt;/p&gt;

&lt;p&gt;When I started diving deep into Bun, everything changed. Bun isn’t just a JavaScript runtime — it’s a transpiler, bundler, test runner, package manager, and native HTTP engine with built-in SQLite and Postgres support. It starts in single-digit milliseconds.&lt;/p&gt;

&lt;p&gt;I asked myself a simple question: &lt;strong&gt;If Bun already does all of this natively, why are we still wrapping React around Webpack, Vite, or complex Node.js polyfills?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, at 18, I decided to build &lt;strong&gt;x&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚡ What is x?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;x&lt;/strong&gt; is a full-stack React meta-framework built natively for Bun. Not "Bun-compatible" — actually built on top of Bun’s core primitives (&lt;code&gt;Bun.serve()&lt;/code&gt;, &lt;code&gt;Bun.file()&lt;/code&gt;, and Bun's native bundler).&lt;/p&gt;

&lt;p&gt;No Webpack. No Vite. No esbuild overhead. Just Bun and React executing in a single, blazing-fast process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6jr6v4z5qefhkngqi0ix.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6jr6v4z5qefhkngqi0ix.png" alt=" " width="799" height="436"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🔑 Key Architecture &amp;amp; Features
&lt;/h2&gt;

&lt;p&gt;Here is what &lt;strong&gt;x&lt;/strong&gt; gives you out of the box with zero configuration:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📁 &lt;strong&gt;File-Based Routing:&lt;/strong&gt; Simply drop &lt;code&gt;.tsx&lt;/code&gt; files in &lt;code&gt;src/pages/&lt;/code&gt; to instantly create routes.&lt;/li&gt;
&lt;li&gt;⚡ &lt;strong&gt;Hybrid Rendering (Static vs. SSR):&lt;/strong&gt; Choose per-route rendering with a single line: &lt;code&gt;export const mode = "static"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;🔌 &lt;strong&gt;Built-in API Routes:&lt;/strong&gt; Handle HTTP methods (GET, POST, PUT, DELETE) in &lt;code&gt;src/api/*.ts&lt;/code&gt; without a separate backend server.&lt;/li&gt;
&lt;li&gt;🛠️ &lt;strong&gt;RPC Server Functions:&lt;/strong&gt; Call type-safe server-side logic directly from your components without writing REST boilerplate.&lt;/li&gt;
&lt;li&gt;🏝️ &lt;strong&gt;Islands Architecture:&lt;/strong&gt; Selective hydration ensures near-zero JavaScript shipped to the client by default.&lt;/li&gt;
&lt;li&gt;📚 &lt;strong&gt;Content Collections:&lt;/strong&gt; First-class Markdown &amp;amp; Frontmatter support with automatic route generation and syntax highlighting via Shiki.&lt;/li&gt;
&lt;li&gt;🗄️ &lt;strong&gt;Integrated Data Layer:&lt;/strong&gt; Native SQLite &amp;amp; PostgreSQL bindings with embedded versioned migrations.&lt;/li&gt;
&lt;li&gt;🛡️ &lt;strong&gt;Zero-Trust Security:&lt;/strong&gt; Built-in CSRF verification, rate limiting, secure HTTP headers, and strict build-time environment variable isolation.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ⏱️ The 30-Second Quickstart
&lt;/h2&gt;

&lt;p&gt;You can bootstrap and launch a production-grade &lt;strong&gt;x&lt;/strong&gt; application in under 30 seconds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bun create thexjs-app@latest my-app
&lt;span class="nb"&gt;cd &lt;/span&gt;my-app
bun run dev

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your app is live at &lt;code&gt;http://localhost:3000&lt;/code&gt; with hot-module reloading enabled out of the box!&lt;/p&gt;




&lt;h2&gt;
  
  
  🧪 Show Me The Code
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Minimal Static Page
&lt;/h3&gt;

&lt;p&gt;Every page in &lt;strong&gt;x&lt;/strong&gt; is a React component. Here is how simple a prerendered static page is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/pages/index.tsx&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;RouteProps&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@thexjs/core&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;static&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;HomePage&lt;/span&gt;&lt;span class="p"&gt;({}:&lt;/span&gt; &lt;span class="nx"&gt;RouteProps&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;main&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"max-w-xl mx-auto py-12"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text-4xl font-bold"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Hello from x!&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"mt-2 text-gray-600"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Built natively on the Bun runtime.&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;main&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. SSR Page with Server Loaders
&lt;/h3&gt;

&lt;p&gt;Need fresh server data on every request? Export an async &lt;code&gt;loader&lt;/code&gt; function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/pages/products/[id].tsx&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;RouteProps&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;LoaderArgs&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@thexjs/core&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;loader&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt; &lt;span class="p"&gt;}:&lt;/span&gt; &lt;span class="nx"&gt;LoaderArgs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;product&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;SELECT * FROM products WHERE id = ?&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;product&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Not Found&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;404&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;product&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;ProductDetail&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;loaderData&lt;/span&gt; &lt;span class="p"&gt;}:&lt;/span&gt; &lt;span class="nx"&gt;RouteProps&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="nx"&gt;loader&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text-3xl font-bold"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;loaderData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text-xl text-green-600"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;$&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;loaderData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;price&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Server Functions (No REST Boilerplate)
&lt;/h3&gt;

&lt;p&gt;Execute server code straight from your UI components:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/actions/subscribe.ts&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;subscribeUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;email&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Invalid email&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;INSERT INTO subscribers (email) VALUES (?)&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;email&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;success&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/components/Form.tsx&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;subscribeUser&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;../actions/subscribe&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Calling it directly like a standard async function&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;subscribeUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;dev@example.com&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🛡️ Enterprise Security Out-of-the-Box
&lt;/h2&gt;

&lt;p&gt;Building a framework means taking security seriously. &lt;strong&gt;x&lt;/strong&gt; ships with opinionated security defaults:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Build-Time Public Env Leak Detector:&lt;/strong&gt; During &lt;code&gt;x build&lt;/code&gt;, the compiler AST-scans every client bundle. If server secrets like &lt;code&gt;DATABASE_URL&lt;/code&gt; or &lt;code&gt;STRIPE_SECRET_KEY&lt;/code&gt; sneak into client files, the build halts instantly:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[x] ERROR: Server-only environment variable(s) leaked into client bundle:
    - DATABASE_URL
    - STRIPE_SECRET_KEY

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Only variables prefixed with &lt;code&gt;THEXJS_PUBLIC_*&lt;/code&gt; are permitted in browser bundles.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Native CSRF &amp;amp; Rate Limiting:&lt;/strong&gt; All dynamic actions undergo Origin &amp;amp; Referer verification, paired with a configurable sliding-window rate limiter (60 req/min default).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Production Security Headers:&lt;/strong&gt; Content Security Policy (CSP), HTTP Strict Transport Security (HSTS), and X-Frame-Options are injected at the HTTP engine layer.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📦 Deployment: Ship Anywhere Bun Runs
&lt;/h2&gt;

&lt;p&gt;Building your app generates a lean, self-contained output directory inside &lt;code&gt;.x/&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;x build

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.x/
├── client/       # Prerendered HTML, isolated island JS chunks, static assets
└── server/
    └── index.js  # Optimized single-file Bun server entry

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Deploy the output to Fly.io, Railway, Docker, or any VPS. You can also use the official Vercel adapter for serverless edge deployment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bun add &lt;span class="nt"&gt;-d&lt;/span&gt; @thexjs/adapter-vercel
x build &lt;span class="nt"&gt;--adapter&lt;/span&gt; vercel
vercel deploy &lt;span class="nt"&gt;--prebuilt&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🎯 What Building x Taught Me
&lt;/h2&gt;

&lt;p&gt;Building a full-stack framework at 18 wasn’t just about writing code — it was about understanding system architecture, bundler internals, AST parsing, state hydration, and developer experience.&lt;/p&gt;

&lt;p&gt;It proved to me that simplicity is the ultimate sophistication. We don’t need heavier tools to build better websites; we just need better integration with the low-level primitives we already have.&lt;/p&gt;




&lt;h2&gt;
  
  
  🌟 Join the Journey
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;x&lt;/strong&gt; is 100% open-source under the MIT License, complete with documentation and starter templates.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🌐 &lt;strong&gt;Live Documentation:&lt;/strong&gt; &lt;a href="https://www.google.com/search?q=https://thexjs.vercel.app" rel="noopener noreferrer"&gt;thexjs.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📦 &lt;strong&gt;npm CLI:&lt;/strong&gt; &lt;code&gt;npm i create-thexjs-app&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;💻 &lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://www.google.com/search?q=https://github.com/abdelkabirouadoukou/x" rel="noopener noreferrer"&gt;github.com/abdelkabirouadoukou/x&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you believe the future of web development should be faster, simpler, and built natively on modern runtimes, give the repository a ⭐ &lt;strong&gt;Star on GitHub&lt;/strong&gt; and try building your next project with &lt;strong&gt;x&lt;/strong&gt;!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>bunjs</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
