<?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: Aditya Sengar</title>
    <description>The latest articles on DEV Community by Aditya Sengar (@aditya_sengar_18547ba3ce7).</description>
    <link>https://dev.to/aditya_sengar_18547ba3ce7</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3877084%2F72d0565d-15f8-4d06-b93a-b4350d908be1.jpg</url>
      <title>DEV Community: Aditya Sengar</title>
      <link>https://dev.to/aditya_sengar_18547ba3ce7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aditya_sengar_18547ba3ce7"/>
    <language>en</language>
    <item>
      <title>🚀 Stop Rewriting the Same React Boilerplate — I Built a CLI to Fix It</title>
      <dc:creator>Aditya Sengar</dc:creator>
      <pubDate>Mon, 13 Apr 2026 16:57:42 +0000</pubDate>
      <link>https://dev.to/aditya_sengar_18547ba3ce7/stop-rewriting-the-same-react-boilerplate-i-built-a-cli-to-fix-it-3fl1</link>
      <guid>https://dev.to/aditya_sengar_18547ba3ce7/stop-rewriting-the-same-react-boilerplate-i-built-a-cli-to-fix-it-3fl1</guid>
      <description>&lt;p&gt;Every React team eventually runs into this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Different folder structures across developers&lt;/li&gt;
&lt;li&gt;Inconsistent naming conventions&lt;/li&gt;
&lt;li&gt;Missing test files&lt;/li&gt;
&lt;li&gt;Rewriting the same boilerplate again and again&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And code reviews filled with:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Move this file”&lt;br&gt;
“Rename this properly”&lt;br&gt;
“Where is the test?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;At some point, I realized:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;❌ We don’t have a coding problem&lt;br&gt;
✅ We have a &lt;strong&gt;standardization problem&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  💣 Why This Actually Hurts
&lt;/h2&gt;

&lt;p&gt;This slows teams down more than we think:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🚫 New developers take longer to onboard&lt;/li&gt;
&lt;li&gt;🧩 Codebases become inconsistent&lt;/li&gt;
&lt;li&gt;🔁 Same feedback in every PR&lt;/li&gt;
&lt;li&gt;⏳ Time wasted on setup instead of logic&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💡 So I Built Something
&lt;/h2&gt;

&lt;p&gt;I created &lt;strong&gt;rgenex&lt;/strong&gt; — a config-driven React code generator CLI.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Define your structure once → generate consistent code across your team automatically&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🎬 See It in Action
&lt;/h2&gt;

&lt;h3&gt;
  
  
  📦 Install
&lt;/h3&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.amazonaws.com%2Fuploads%2Farticles%2F0z5g4p3qbz080z14lxb5.gif" 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.amazonaws.com%2Fuploads%2Farticles%2F0z5g4p3qbz080z14lxb5.gif" alt="Install" width="1898" height="981"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  ⚙️ Initialize Project
&lt;/h3&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.amazonaws.com%2Fuploads%2Farticles%2Fy77dqkdgrajdf0hc751s.gif" 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.amazonaws.com%2Fuploads%2Farticles%2Fy77dqkdgrajdf0hc751s.gif" alt="Init" width="1898" height="981"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  🧩 Generate Component
&lt;/h3&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.amazonaws.com%2Fuploads%2Farticles%2F8m832syq2zkt0smb1fgt.gif" 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.amazonaws.com%2Fuploads%2Farticles%2F8m832syq2zkt0smb1fgt.gif" alt="Generate" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚡ Getting Started (Takes &amp;lt; 1 minute)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Install
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--save-dev&lt;/span&gt; rgenex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  2. Initialize
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx rgenex init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  3. Generate
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx rgenex g component Button
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🧠 The Core Idea
&lt;/h2&gt;

&lt;p&gt;The real power of rgenex lies in how you use the &lt;code&gt;rgenex.config.js&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;This file acts as the single source of truth for how your project should be structured.&lt;/p&gt;

&lt;p&gt;🧩 Define your rules once in &lt;code&gt;rgenex.config.js&lt;/code&gt;&lt;br&gt;
🚀 Enforce them automatically across your entire team&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works:&lt;/strong&gt;&lt;br&gt;
You define your preferred language, styling, and testing setup&lt;br&gt;
You specify where different types of files should live (components, hooks, pages, etc.)&lt;br&gt;
You configure how each generator should behave (structure, test files, styles, etc.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Once this is set up:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 Every time someone runs a generator command, rgenex follows these rules&lt;br&gt;
👉 No manual decisions, no inconsistencies&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This means:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;✅ Every component follows the same structure&lt;br&gt;
✅ Every file is placed in the correct location&lt;br&gt;
✅ Every developer generates code in the same way&lt;/p&gt;

&lt;p&gt;Instead of relying on conventions that people forget…&lt;/p&gt;

&lt;p&gt;You enforce them automatically through configuration.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;language&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;typescript&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;styling&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;scss-modules&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;testing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;vitest&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

  &lt;span class="na"&gt;paths&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;components&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;src/components&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;src/pages&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;hooks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;src/hooks&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;generators&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;component&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;structure&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;grouped&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;includeTest&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="na"&gt;includeStyle&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;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;h2&gt;
  
  
  ✨ What You Get
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;⚡ Instant scaffolding (components, hooks, pages)&lt;/li&gt;
&lt;li&gt;🧪 Auto-generated test files&lt;/li&gt;
&lt;li&gt;🎨 Styling support (SCSS, Tailwind, CSS)&lt;/li&gt;
&lt;li&gt;🧠 Smart project detection&lt;/li&gt;
&lt;li&gt;📦 Zero production impact&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🎯 Why I Built This
&lt;/h2&gt;

&lt;p&gt;I’ve worked on projects where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Everyone had a different way of structuring files&lt;/li&gt;
&lt;li&gt;Boilerplate was repeated constantly&lt;/li&gt;
&lt;li&gt;Code reviews focused on structure instead of logic&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted something that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enforces standards automatically&lt;/li&gt;
&lt;li&gt;Saves time&lt;/li&gt;
&lt;li&gt;Improves developer experience&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚀 Try It Out
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--save-dev&lt;/span&gt; rgenex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 GitHub: &lt;a href="https://github.com/asengar14/rgenex" rel="noopener noreferrer"&gt;https://github.com/asengar14/rgenex&lt;/a&gt;&lt;br&gt;
👉 npm: &lt;a href="https://www.npmjs.com/package/rgenex" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/rgenex&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🔮 What’s Coming Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Custom generators (services, APIs, etc.)&lt;/li&gt;
&lt;li&gt;Interactive CLI&lt;/li&gt;
&lt;li&gt;Plugin system&lt;/li&gt;
&lt;li&gt;More flexibility in templates&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🤝 Would Love Your Feedback
&lt;/h2&gt;

&lt;p&gt;If you try it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What worked well?&lt;/li&gt;
&lt;li&gt;What’s missing?&lt;/li&gt;
&lt;li&gt;What would make it more useful for your team?&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🏁 Final Thought
&lt;/h2&gt;

&lt;p&gt;We spend most of our time writing logic.&lt;/p&gt;

&lt;p&gt;But a surprising amount of time goes into:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;📁 Creating files&lt;br&gt;
📂 Setting up folders&lt;br&gt;
🧱 Maintaining structure&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If we automate that…&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We can focus on what actually matters.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;✨ Built with ❤️ by Aditya Singh Sengar&lt;/p&gt;

</description>
      <category>react</category>
      <category>frontend</category>
      <category>productivity</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
