DEV Community

Cover image for Shipping Better Dev Tools: What I Learned After Launching My React Generator CLI
Aditya Sengar
Aditya Sengar

Posted on

Shipping Better Dev Tools: What I Learned After Launching My React Generator CLI

Building Better Dev Tools: What I Learned After Launching My React Generator CLI

A few weeks ago, I launched rgenex — a config-driven React architecture scaffolding CLI for teams.

The goal was simple:

Define your architecture once in rgenex.config.js
Generate consistent React code across your team.

The initial feedback was encouraging.

But it also surfaced an important lesson quickly:

Developer experience matters as much as functionality.

A generator can technically work…

But if developers don’t trust it, they won’t use it.


What Feedback Taught Me

The biggest concerns weren’t about features.

They were about confidence and safety:

  • “Can I preview what will be generated first?”
  • “What if it overwrites existing files?”
  • “How do I see available generators?”
  • “Can I skip prompts in CI/scripts?”

That made me realize:

Building dev tools isn’t just about automation.
It’s about creating automation developers trust.


What’s New in rgenex v1.1.0

Dry Run Preview

Preview generated files before writing anything:

npx rgenex g component Button --dry
Enter fullscreen mode Exit fullscreen mode

Dry Run Demo


Overwrite Protection

If files already exist, rgenex now prompts before overwriting.

This prevents accidental destructive generation.


Force Overwrite

For scripted workflows / power users:

npx rgenex g component Button --force
Enter fullscreen mode Exit fullscreen mode

List Available Generators

Quickly inspect configured generators:

npx rgenex list
Enter fullscreen mode Exit fullscreen mode

The Bigger Lesson

This release reinforced something I think applies to all developer tooling:

Features get attention.
UX drives adoption.

Especially for tools developers integrate into daily workflows.


What rgenex Is Trying to Solve

Most React teams don’t struggle because they lack coding skill.

They struggle because architecture standards drift over time:

  • Different folder structures
  • Inconsistent naming conventions
  • Missing tests/styles
  • Repeated PR comments about organization

rgenex helps solve that by making architecture configurable and enforceable:

module.exports = {
  language: "typescript",
  styling: "scss-modules",
  testing: "vitest",

  paths: {
    components: "src/components",
    hooks: "src/hooks",
    pages: "src/pages",
  },
};
Enter fullscreen mode Exit fullscreen mode

Define once.
Generate consistently forever.


Still Early — Looking for Feedback

I’m continuing to iterate based on real-world usage.

If you use React in team environments, I’d love to know:

What would make a generator like this useful enough for your team to adopt?

GitHub: https://github.com/asengar14/rgenex
npm: https://www.npmjs.com/package/rgenex


Thanks to everyone who shared feedback after the initial release — it directly shaped this update.

Code generator with newly added flags

Top comments (0)