| Crates.io | forge-tree |
| lib.rs | forge-tree |
| version | 0.1.0 |
| created_at | 2025-08-30 12:45:49.261825+00 |
| updated_at | 2025-08-30 12:45:49.261825+00 |
| description | A powerful project scaffolding tool that generates folder and file structures from text representations |
| homepage | https://github.com/IDKSAM27/forge-tree |
| repository | https://github.com/IDKSAM27/forge-tree |
| max_upload_size | |
| id | 1817594 |
| size | 72,471 |
"Why spend hours creating folder structures when you can forge them in seconds?"
Ever stared at a project structure in documentation and thought "Ugh, I have to create all these folders and files manually?" Yeah, we've all been there. That's exactly why Forge-Tree exists!
You know the drill:
my-awesome-project/
├── src/
│ ├── components/
│ │ ├── Header.js
│ │ └── Footer.js
│ ├── utils/
│ │ └── helpers.js
│ └── index.js
├── tests/
│ └── app.test.js
├── package.json
└── README.md
And then you spend the next 10 minutes going:
Forge-Tree takes that ASCII art structure and magically transforms it into real folders and files. No clicking. No tedious manual work. Just pure, beautiful automation.
cargo install forge-tree
That's it. You're now a project structure wizard. 🧙♂️
Create a file called my-dream-project.txt:
my-dream-project/
├── frontend/
│ ├── src/
│ │ ├── components/
│ │ │ ├── Header.jsx
│ │ │ ├── Footer.jsx
│ │ │ └── Sidebar.jsx
│ │ ├── pages/
│ │ │ ├── Home.jsx
│ │ │ └── About.jsx
│ │ ├── utils/
│ │ │ └── api.js
│ │ └── App.jsx
│ ├── package.json
│ └── README.md
├── backend/
│ ├── src/
│ │ ├── routes/
│ │ │ ├── auth.rs
│ │ │ └── api.rs
│ │ ├── models/
│ │ │ └── user.rs
│ │ ├── main.rs
│ │ └── lib.rs
│ ├── Cargo.toml
│ └── README.md
├── docs/
│ ├── api.md
│ └── setup.md
└── docker-compose.yml
Now watch the magic happen:
forge-tree forge my-dream-project.txt
BOOM! 💥 Your entire project structure appears like you're some kind of terminal sorcerer.
🏗️ Forging project structure...
📖 Parsing structure from: my-dream-project.txt
🌳 Root: my-dream-project
📁 Items: 23
✨ [████████████████████████████████] 23/23 Processing docker-compose.yml
✅ Project 'my-dream-project' forged successfully at ./my-dream-project
Built with Rust because life's too short for slow tools. We're talking milliseconds, not minutes.
None of that boring terminal output. We've got colors, progress bars, and emojis because we're not savages.
.js = file, no extension = probably a folder)Won't overwrite your existing files unless you explicitly tell it to with --force. We respect your work.
forge-tree forge structure.txt --var project_name=MyApp --var author="Your Name"
Variables in your templates get replaced automagically. It's like mail merge, but for code.
| What You Want | Command |
|---|---|
| Basic forging | forge-tree forge structure.txt |
| Custom location | forge-tree forge structure.txt -o ~/Projects |
| See what's happening | forge-tree forge structure.txt --verbose |
| YOLO mode (overwrite everything) | forge-tree forge structure.txt --force |
| Check if structure is valid | forge-tree validate structure.txt |
| Use variables | forge-tree forge structure.txt --var name=John --var email=john@example.com |
Just describe your ideal project structure in a text file. Forge-Tree is pretty good at figuring out what you mean.
Create template files for your common project types. React app? Got a template. Rust CLI? Got a template. Microservice? You know it.
Share your structure files with your team. Now everyone can spin up identical project structures. No more "it works on my machine because I forgot to mention that obscure folder structure."
Include structure files in your project documentation. New team members can literally copy-paste and get started instantly.
"It's not creating files!"
.js, .py, .rs)"It's creating everything as folders!"
--verbose flag to see what's being detected"It says file already exists!"
--force if you want to overwrite, or change your output directory"My structure looks weird!"
forge-tree validate structure.txt first to catch formatting issuesforge-tree init --template rust-cli --gitFound a bug? Have an idea? Want to contribute? We're all ears!
MIT License - aka "do whatever you want with this, just don't sue me."
Full license text is in the LICENSE file, but honestly, it's pretty standard stuff.
Forge-Tree is what happens when a developer gets tired of manually creating project structures and decides to do something about it. It's fast, it's beautiful, it's useful, and it'll save you hours of mundane folder-clicking.
Go forth and forge amazing projects!
Made with 🦀 Rust, ❤️ Love, and Frustration at manual folder creation
P.S. - It took me hours to forge this README, you better have read it all or else get ready to feel my breath in your ears while you're sleeping. And Yes, I know there are other scaffolding tools. But have you seen how pretty my progress bars are?