Config-driven React architecture scaffolding for teams.
Define your project structure once in rgenex.config.js and generate code consistently across your entire team.
npm install --save-dev rgenexnpx rgenex init
# Creates rgenex.config.js based on your detected stacknpx rgenex generate component Button
# shorthand
npx rgenex g component Button- π― Config-Driven Generation β Define structure, naming conventions, and file patterns once in
rgenex.config.js - π₯ Team Standardization β Enforce consistent React architecture across your team
- β‘ Instant Scaffolding β Generate components, hooks, and pages in one command
- π‘οΈ Safe Generation β Preview output before writing and prevent accidental overwrites
- π§ͺ Built-in Test Support β Auto-generate test files (Vitest, Jest)
- π¨ Smart Stack Detection β Detects TypeScript, styling, and testing setup automatically
- π¦ Zero Bundle Impact β Dev-only tool, excluded from production builds
- π§ Configurable Structure β Adapt templates, paths, and conventions to your architecture
npx rgenex g component Button --dryPreview files before writing them to disk.
npx rgenex g component ButtonIf files already exist, rgenex prompts before overwriting.
npx rgenex g component Button --forceSkip overwrite prompts when needed.
npx rgenex listView all configured generators in your project.
- QUICK_START.md β Complete guide with examples
- CHANGELOG.md β Release history
- CONTRIBUTING.md β Contributing guidelines
npx rgenex g component ButtonCreates:
Button.tsxButton.test.tsxButton.module.scssindex.ts
(Structure depends on your config)
npx rgenex g hook useCounterCreates:
useCounter.tsuseCounter.test.ts
npx rgenex g page DashboardCreates:
Dashboard.tsxDashboard.test.tsx
After running npx rgenex init, configure your teamβs standards once:
// rgenex.config.js - Your team's code standards
module.exports = {
language: "typescript", // Enforce TypeScript
styling: "scss-modules", // Your design system
testing: "vitest", // Your test framework
paths: {
components: "src/components", // Where to generate
pages: "src/pages",
hooks: "src/hooks",
},
generators: {
component: {
structure: "grouped", // Grouped or flat structure
includeTest: true, // Always generate tests
includeStyle: true, // Always generate styles
updateBarrel: true, // Auto-update index.ts exports
},
},
};Every team member uses the same configuration.
No more debates about:
- Folder structure
- Naming conventions
- Test file placement
- Style file conventions
- Node.js >= 16.0.0
- npm or yarn
MIT
See CONTRIBUTING.md
Built by Aditya Singh Sengar



