<?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: JACKT72xp</title>
    <description>The latest articles on DEV Community by JACKT72xp (@jackt72xp).</description>
    <link>https://dev.to/jackt72xp</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%2F1451497%2F8a9e63b1-3b46-4766-98b0-25f0e359b645.png</url>
      <title>DEV Community: JACKT72xp</title>
      <link>https://dev.to/jackt72xp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jackt72xp"/>
    <language>en</language>
    <item>
      <title>Luxel - Compiled Web Projection</title>
      <dc:creator>JACKT72xp</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:11:24 +0000</pubDate>
      <link>https://dev.to/jackt72xp/luxel-compiled-web-projection-1j2g</link>
      <guid>https://dev.to/jackt72xp/luxel-compiled-web-projection-1j2g</guid>
      <description>&lt;p&gt;What if your browser stopped downloading and executing your application code?&lt;/p&gt;

&lt;p&gt;Today we are releasing the first public beta of &lt;strong&gt;&lt;a href="https://github.com/IntiOps/luxel" rel="noopener noreferrer"&gt;Luxel&lt;/a&gt;&lt;/strong&gt; (&lt;code&gt;0.1.0-beta.1&lt;/code&gt;, Apache 2.0), an open-source framework implementing &lt;strong&gt;CWP (Compiled Web Projection)&lt;/strong&gt;—a web application model that sits alongside SPA and SSR.&lt;/p&gt;

&lt;p&gt;The core idea is simple: &lt;strong&gt;compile once, project information—not application code.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  How Compiled Web Projection (CWP) works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Compile once at build time:&lt;/strong&gt; You write your views in TSX. Luxel compiles them once into a public, cacheable template (&lt;em&gt;the mold&lt;/em&gt;), a slot map, and a manifest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Send only data per request:&lt;/strong&gt; The server remains the single authority. It validates, computes, formats, and fills the template's slots with escaped text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Project in the browser:&lt;/strong&gt; One universal runtime (~8.1 KB Brotli) resumes the already-painted page, applies server updates via the VSA (Visual State Atlas) protocol, and sends user events back.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The result is &lt;strong&gt;ASEF = 0&lt;/strong&gt;: zero bytes of app-specific executable JavaScript are sent to the browser, and there is &lt;strong&gt;no hydration&lt;/strong&gt;. Every Luxel app ships the exact same runtime modules with the exact same hashes.&lt;/p&gt;




&lt;h2&gt;
  
  
  CWP vs. SPA vs. SSR
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;What the browser receives&lt;/th&gt;
&lt;th&gt;Hydration&lt;/th&gt;
&lt;th&gt;Where logic &amp;amp; state live&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SPA&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Full application bundle&lt;/td&gt;
&lt;td&gt;N/A (client-rendered)&lt;/td&gt;
&lt;td&gt;Client + Server (must sync)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SSR (React/Next.js)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;HTML + application bundle&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Server + Client&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;CWP (Luxel)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Compiled template + data + 1 universal runtime (~8.1 KB)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;None&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Server only&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Benchmarks (and where Luxel loses)
&lt;/h2&gt;

&lt;p&gt;We believe in publishing both wins and trade-offs. All figures below were measured on cold loads (4G network profile, CPU ×4):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;vs. Next.js 16 (internal business app pilot, 9 data screens):&lt;/strong&gt; 0.29–0.35× time to interactive, 0.22–0.26× first paint, 0.06–0.07× JavaScript downloaded, and 0.02–0.07× single-user frontend CPU per cold view.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;vs. Optimized Next.js 16 (RSC + inlined CSS):&lt;/strong&gt; 0.07–0.08× JavaScript and 0.76–0.78× task completion time, &lt;strong&gt;but LCP is a tie&lt;/strong&gt; (336 vs 340 ms and 292 vs 300 ms).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where it loses:&lt;/strong&gt; Every recalculation, sort, or search is a server round trip (~165 ms on 4G). On a lab search, it takes 1.124× the time of plain JS with inlined CSS.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All claims, conditions, and negative results are documented in &lt;a href="https://github.com/IntiOps/luxel/blob/main/docs/claims.md" rel="noopener noreferrer"&gt;&lt;code&gt;docs/claims.md&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who it is for (and who it is NOT for)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Good fit:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Business applications: dashboards, forms, tables, back-office tools, and sign-in flows where rules already live on the server.&lt;/li&gt;
&lt;li&gt;Teams that want strict Content-Security-Policy, zero client-server drift, and no per-app client bundle to audit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Not a fit:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Offline-first apps, rich editors, games, maps, or spreadsheets that require client-side physics or optimistic local state.&lt;/li&gt;
&lt;li&gt;Apps that need server push today (data updates are polled for now; no SSE/WebSocket yet).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Try the beta &amp;amp; break it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Full transparency:&lt;/strong&gt; &lt;code&gt;0.1.0-beta.1&lt;/code&gt; has not undergone an external security review yet, and concurrent-user load tests are still open. It is not "production ready"—we are releasing it now to get real architectural feedback and battle-test the authoring DX.&lt;/p&gt;

&lt;p&gt;Try it locally (requires Node.js 22.12+):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm create luxel@beta my-app
&lt;span class="nb"&gt;cd&lt;/span&gt; my-app
npm install
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/IntiOps/luxel" rel="noopener noreferrer"&gt;github.com/IntiOps/luxel&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Getting Started Guide:&lt;/strong&gt; &lt;code&gt;docs/guide/getting-started.md&lt;/code&gt; (also available in Spanish)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What do you think about moving application code completely out of the browser for business apps? Drop your feedback, critiques, or questions in the comments!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>typescript</category>
      <category>opensource</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
