<?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: Hoàng An Unicode</title>
    <description>The latest articles on DEV Community by Hoàng An Unicode (@hong_anunicode_a3c3bcd6).</description>
    <link>https://dev.to/hong_anunicode_a3c3bcd6</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%2F1575510%2Fef0896d5-cd0c-446c-958a-e7b323e9b820.jpg</url>
      <title>DEV Community: Hoàng An Unicode</title>
      <link>https://dev.to/hong_anunicode_a3c3bcd6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hong_anunicode_a3c3bcd6"/>
    <language>en</language>
    <item>
      <title>I missed Laravel's DX in Node.js, so I built a "Batteries-Included" framework on top of Fastify.</title>
      <dc:creator>Hoàng An Unicode</dc:creator>
      <pubDate>Fri, 31 Jul 2026 15:27:35 +0000</pubDate>
      <link>https://dev.to/hong_anunicode_a3c3bcd6/i-missed-laravels-dx-in-nodejs-so-i-built-a-batteries-included-framework-on-top-of-fastify-8p2</link>
      <guid>https://dev.to/hong_anunicode_a3c3bcd6/i-missed-laravels-dx-in-nodejs-so-i-built-a-batteries-included-framework-on-top-of-fastify-8p2</guid>
      <description>&lt;p&gt;Hello DEV Community!&lt;/p&gt;

&lt;p&gt;If you have ever written PHP using &lt;strong&gt;Laravel&lt;/strong&gt;, you already know how incredible the Developer Experience (DX) is. Everything you need—Routing, ORM, Dependency Injection, Queues, and Authentication—is beautifully integrated out of the box. You just type a command and start building your business logic.&lt;/p&gt;

&lt;p&gt;But when modern projects require high throughput, real-time concurrency, and asynchronous processing, we often migrate to &lt;strong&gt;Node.js&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;And that is when the &lt;strong&gt;"Blank Canvas Fatigue"&lt;/strong&gt; hits.&lt;/p&gt;

&lt;p&gt;If you use Express, Koa, or even Fastify, you are handed a blank slate. You spend your first week arguing about folder structures, trying to wire up an ORM, setting up WebSockets, and piecing together a dozen different libraries, praying they play nicely together in production.&lt;/p&gt;

&lt;p&gt;I wanted the blazing-fast asynchronous performance of Node.js (specifically Fastify), but I craved the elegant, structured, and highly productive architecture of Laravel. &lt;/p&gt;

&lt;p&gt;Since I couldn't find exactly what I was looking for, I spent the last few months building it. &lt;/p&gt;




&lt;h2&gt;
  
  
  Introducing StruxJS
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://struxjs.vercel.app/" rel="noopener noreferrer"&gt;StruxJS&lt;/a&gt; is a modern, TypeScript-first Node.js enterprise framework designed for developer happiness. &lt;/p&gt;

&lt;p&gt;Under the hood, it is powered entirely by &lt;strong&gt;Fastify&lt;/strong&gt;, meaning it handles massive traffic effortlessly. But on the surface, the API is designed to feel like writing poetry.&lt;/p&gt;

&lt;p&gt;Here are a few things StruxJS gives you out of the box:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. True Dependency Injection (IoC Container)
&lt;/h3&gt;

&lt;p&gt;No more manually instantiating classes or passing massive context objects around.&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="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;MailService&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;./MailService&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;class&lt;/span&gt; &lt;span class="nc"&gt;UserController&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

  &lt;span class="nf"&gt;constructor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="nx"&gt;mailService&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;MailService&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;

  &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="nf"&gt;register&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;Request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Business logic...&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;mailService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sendWelcomeEmail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&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="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. An Elegant Active Record ORM
&lt;/h3&gt;

&lt;p&gt;Inspired directly by Eloquent, interacting with your database is beautiful.&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="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;HasMany&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;belongsTo&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;struxjs&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;class&lt;/span&gt; &lt;span class="nc"&gt;User&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;BaseModel&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;HasMany&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;Post&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;posts&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="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hasMany&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;Post&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// In your controller:&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;users&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;User&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;with&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;posts&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;where&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;status&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;active&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Redis-Backed Background Queues
&lt;/h3&gt;

&lt;p&gt;Sending emails or resizing images shouldn't block your HTTP response.&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;// Dispatch a job to the background queue instantly&lt;/span&gt;
&lt;span class="nx"&gt;SendWelcomeEmailJob&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dispatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;user&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Zero-Config Concurrency
&lt;/h3&gt;

&lt;p&gt;StruxJS comes with a built-in &lt;code&gt;ThreadPool&lt;/code&gt; and &lt;code&gt;ClusterManager&lt;/code&gt;. Have a heavy CPU-bound task like PDF generation? Offload it to a worker thread with one line of code so your Node event loop never gets blocked.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Start in 3 seconds
&lt;/h3&gt;

&lt;p&gt;You don't need to configure anything to get started.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-struxjs-app my-awesome-app
&lt;span class="nb"&gt;cd &lt;/span&gt;my-awesome-app
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Why StruxJS instead of NestJS or AdonisJS?
&lt;/h2&gt;

&lt;p&gt;The Node.js ecosystem is rich, and both of those frameworks are incredible. &lt;/p&gt;

&lt;p&gt;However, &lt;strong&gt;NestJS&lt;/strong&gt; is heavily influenced by Angular. While it's immensely powerful, it can sometimes feel overly verbose and heavily boilerplate-driven for rapid product development.&lt;br&gt;
&lt;strong&gt;AdonisJS&lt;/strong&gt; is fantastic and is the closest thing to Laravel in Node, but it relies on its own custom HTTP server. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;StruxJS&lt;/strong&gt; takes a different path. It sits directly on top of &lt;strong&gt;Fastify&lt;/strong&gt;—leveraging one of the fastest web engines in the world—while providing an incredibly clean, accessible, and structured API to help you ship products faster.&lt;/p&gt;




&lt;h2&gt;
  
  
  I would love your feedback!
&lt;/h2&gt;

&lt;p&gt;The project is entirely Open Source. Whether you are a Laravel developer dipping your toes into Node.js, or a seasoned Node veteran looking for a structured architecture, I would love for you to try it out.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Official Documentation:&lt;/strong&gt; &lt;a href="https://struxjs.vercel.app" rel="noopener noreferrer"&gt;struxjs.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/Strux-Team/struxjs" rel="noopener noreferrer"&gt;Strux-Team/struxjs&lt;/a&gt; (If you like the idea, a star would mean the world to me!)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I am actively looking for contributors, feedback, and yes, even roasts of my codebase. Let me know what you think in the comments!&lt;/p&gt;

</description>
      <category>node</category>
      <category>typescript</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
