Skip to content

Isaacprogi/scaffoldrite

Repository files navigation

Here’s your clean, simplified, production-ready README with npx included and a pointer to docs:


Scaffoldrite: Define. Enforce. Generate.

Structure the right way

Stop guessing. Start structuring. Your project’s architecture should be as reliable as your code. Scaffoldrite makes it enforceable.


ScaffoldRite Banner


🚀 What is Scaffoldrite?

Scaffoldrite is a CLI tool that helps you:

  • Define project structure in a single file (structure.sr)
  • Enforce architecture rules with constraints
  • Generate consistent project scaffolds
  • Validate filesystem structure automatically

⚡ Quick Start

Run instantly (recommended)

npx scaffoldrite init
npx scaffoldrite generate .

Or install globally

npm install -g scaffoldrite
sr init
sr generate .

📁 Core Idea

You define your project structure:

folder src {
  folder components {
    file Button.tsx
  }
  file index.ts
}

constraints {
  mustContain src index.ts
}

Scaffoldrite ensures your filesystem matches this blueprint.


🧠 Key Features

  • Declarative project structure (structure.sr)
  • Enforceable constraints for architecture rules
  • CLI-based workflow (init, generate, validate, update)
  • Sync between filesystem and structure definition
  • Template-friendly project generation

🛠 Common Commands

npx scaffoldrite init
npx scaffoldrite generate .
npx scaffoldrite validate
npx scaffoldrite update --from-fs .
npx scaffoldrite find Button

Or using global install:

sr init
sr generate .
sr validate

📦 Config Location (v2+)

.scaffoldrite/
├─ structure.sr
└─ .scaffoldignore

📖 Documentation

Full documentation, guides, and advanced usage:

👉 https://isaacprogi.github.io/scaffoldrite/


🤝 Community


📄 License

MIT


Your project structure is code. Treat it that way.

Happy structuring

About

Scaffoldrite is a project structure validator & generator. You define your project structure using a simple structure.sr format, then run commands to validate, generate, snapshot or modify the structure.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages