<?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: Deviprasad Rai P</title>
    <description>The latest articles on DEV Community by Deviprasad Rai P (@devi5040).</description>
    <link>https://dev.to/devi5040</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%2F960555%2F8e9740db-41e4-40f4-ae11-9f01f2d8fcb4.jpeg</url>
      <title>DEV Community: Deviprasad Rai P</title>
      <link>https://dev.to/devi5040</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/devi5040"/>
    <language>en</language>
    <item>
      <title>I Got Tired of Manually Creating Folders for Every New Project - So I Built Scaffinity</title>
      <dc:creator>Deviprasad Rai P</dc:creator>
      <pubDate>Tue, 30 Jun 2026 16:40:44 +0000</pubDate>
      <link>https://dev.to/devi5040/i-got-tired-of-manually-creating-folders-for-every-new-project-so-i-built-scaffinity-82i</link>
      <guid>https://dev.to/devi5040/i-got-tired-of-manually-creating-folders-for-every-new-project-so-i-built-scaffinity-82i</guid>
      <description>&lt;p&gt;Every time I start a new project, it's the same routine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir &lt;/span&gt;src
&lt;span class="nb"&gt;mkdir &lt;/span&gt;src/modules
&lt;span class="nb"&gt;mkdir &lt;/span&gt;src/modules/auth
&lt;span class="nb"&gt;touch &lt;/span&gt;src/modules/auth/auth.controller.ts
&lt;span class="nb"&gt;touch &lt;/span&gt;src/modules/auth/auth.service.ts
&lt;span class="c"&gt;# ...repeat 20 more times&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I do this &lt;em&gt;constantly&lt;/em&gt; - building backend services, AI voice agent projects, side experiments. At some point I realized I was rebuilding the same folder structures over and over, and copy-pasting old projects just to steal their layout.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Scaffinity&lt;/strong&gt; - a CLI that turns a simple JSON file into a real project structure, instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;Define your structure once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"src"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"modules"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"auth"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"auth.controller.ts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"auth.service.ts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"auth.routes.ts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"main.ts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"import express from 'express'&lt;/span&gt;&lt;span class="se"&gt;\n\n&lt;/span&gt;&lt;span class="s2"&gt;const app = express()&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;".env.example"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"PORT=3000&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;NODE_ENV=development"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scaffinity generate blueprint.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the entire structure - folders, files, even file contents - gets created instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Feature I'm Most Proud Of
&lt;/h2&gt;

&lt;p&gt;Most scaffolding tools only go one direction: template -&amp;gt; project. Scaffinity also goes the &lt;em&gt;other&lt;/em&gt; way.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scaffinity &lt;span class="nb"&gt;export&lt;/span&gt; ./my-existing-project &lt;span class="nt"&gt;-o&lt;/span&gt; blueprint.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This scans any existing project and converts its structure into a portable JSON blueprint. Now you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Share your team's standard folder layout with one file&lt;/li&gt;
&lt;li&gt;Version control your project structure like any other config&lt;/li&gt;
&lt;li&gt;Recreate a structure on a new machine in seconds&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No more "hey can you send me your folder structure" Slack messages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Interactive Mode
&lt;/h2&gt;

&lt;p&gt;If you don't want to hand-write JSON, there's also:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;Walks you through building a structure interactively, file by file, directory by directory, then saves it as a blueprint you can reuse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;p&gt;Built with TypeScript, Commander.js for the CLI parsing, fs-extra for file operations, and ora/chalk for clean terminal output. Kept it intentionally dependency-light.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&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;-g&lt;/span&gt; scaffinity
scaffinity generate blueprint.json &lt;span class="nt"&gt;--dry&lt;/span&gt; &lt;span class="nt"&gt;--verbose&lt;/span&gt;   &lt;span class="c"&gt;# preview first&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub: &lt;a href="https://github.com/devi5040/scaffinity/" rel="noopener noreferrer"&gt;Github&lt;/a&gt;&lt;br&gt;
npm: &lt;a href="https://www.npmjs.com/package/scaffinity" rel="noopener noreferrer"&gt;Scaffinity&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Still early - would genuinely love feedback, bug reports, or blueprint contributions for other stacks (NestJS, FastAPI, Next.js, etc). There's an &lt;code&gt;/examples&lt;/code&gt; folder for community blueprints if you want to add yours.&lt;/p&gt;

</description>
      <category>node</category>
      <category>typescript</category>
      <category>cli</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
