npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@duestel/react-scaffold

v1.0.8

Published

A CLI tool to generate boilerplate React components and forms

Readme

@duestel/react-scaffold

NPM Version License

A lightning-fast CLI tool to generate boilerplate React components, forms, modals, charts, sheets, and data tables with smart naming conventions to minimize imports.

Features

  • 🚀 Component Generator - Create well-structured React components with proper file organization
  • 📝 Form Generator - Generate form components with built-in validation structure
  • 🔔 Modal Generator - Create accessible modal components ready for your content
  • 📊 Chart Generator - Scaffold data visualization components for your analytics needs
  • 📑 Sheet Generator - Build slide-in/out sheet components for your UI
  • 📋 Data Table Generator - Create table components for displaying structured data
  • 🎭 Smart Naming Convention - Uses namespaced exports to reduce import statements in your code
  • 🔄 Path Support - Create components in any directory structure with automatic path handling

Installation

# Install globally
npm install -g @duestel/react-scaffold

# Or use with npx (recommended)
npx @duestel/react-scaffold generate

Usage

# Using the globally installed CLI tool
drsf generate

# Or with npx
npx @duestel/react-scaffold generate

# Short alias
drsf g

Interactive CLI

When you run the generator, you'll be presented with an interactive prompt:

  1. First, select the type of component you want to generate:

    ? Please choose a generator.
    > component - Create a new component
      form - Create a new form
      modal - Create a new modal
      chart - Create a new chart
      sheet - Create a new sheet
      data-table - Create a new data-table
  2. Then, follow the prompts specific to your selection:

    • For components: component name (can include path, e.g., ui/common/hello-world)
    • For other generators: Resource name (e.g., user, product)

Output Structure

The tool generates components with a consistent structure and naming convention that helps minimize import statements in your code.

Example: Modal Generator

If you create a modal for "product" resource:

? Please choose a generator. modal - Create a new modal
? Resource name (e.g., user, product): product

The generator will create:

src/components/modals/
└── products/
    ├── index.js               # Exports all modals as ProductsModals namespace
    ├── CreateProductModal.jsx # Create modal component
    ├── EditProductModal.jsx   # Edit modal component
    ├── DeleteProductModal.jsx # Delete modal component
    └── ViewProductModal.jsx   # View modal component

Usage in Your Code

Instead of importing each modal separately, you can use the namespace pattern:

import { ProductsModals } from "components/modals/products";

function App() {
  return (
    <div>
      <ProductsModals.CreateProductModal />
      <ProductsModals.EditProductModal />
    </div>
  );
}

Similar patterns are provided for all generators (forms, charts, sheets, data-tables).

Generator Details

Component Generator

Creates a single React component with appropriate structure.

Form Generator

Creates form components for a specific resource with validation structure:

  • CreateProductForm
  • EditProductForm

Modal Generator

Creates a suite of modal components for a resource:

  • CreateProductModal
  • EditProductModal
  • DeleteProductModal
  • ViewProductModal

Chart Generator

Creates chart components for displaying data visualizations:

  • ProductsBarChart
  • ProductsLineChart
  • ProductsPieChart

Sheet Generator

Creates side-panel sheet components:

  • ProductsFilterSheet
  • ProductsDetailsSheet

Data Table Generator

Creates components for displaying tabular data:

  • ProductsTable
  • ProductsTableActions
  • ProductsTableFilters

License

MIT © duestel

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.