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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-admin-ui-cli

v1.0.18

Published

A custom CLI tool for quickly scaffolding CRUD modules for React Admin Skeleton projects.

Readme

react-admin-ui-cli

🚀 React CLI for admin panel scaffolding, CRUD generator, Ant Design, Redux Toolkit, and Vite.

npm version

A custom React CLI tool for quickly scaffolding CRUD modules of admin panels based on the React Admin Skeleton architecture.

This CLI helps you save development time by generating boilerplate code (pages, feature components, hooks, services, models, routes) that fits perfectly into the React Admin Skeleton structure.


✨ Features

  • React CLI generator for admin UIs
  • Generate full CRUD modules with one command
  • Auto-create files following the React Admin Skeleton folder structure
  • Adds pages, feature components, hooks, services and models automatically
  • Compatible with React 18, Redux Toolkit, Ant Design, and Vite

📦 Installation

Project Installation

git clone [email protected]:imrul89/react-admin-skeleton.git
cd react-admin-skeleton

cp .env.dev.example .env.dev
// Update .env.dev with your configurations

npm install
npm run dev

Login Credentials

A basic auth, user, and customers api deployed on vercel server, so that you can test the generated modules right away.

Username: admin
Password: 123456

CLI Installation

npm install -g react-admin-ui-cli

After package installation you have to create a rcli-settings.json file in the root directory of your project. This file contains the necessary configuration for the CLI to generate modules correctly.

🛠 rcli-settings.json

{
  "moduleName": "Customer",
  "options": {
    "fields": [
      {
        "name": "name",
        "type": "string",
        "required": true
      },
      {
        "name": "email",
        "type": "string",
        "required": true
      },
      {
        "name": "phone_number",
        "type": "string",
        "required": false
      },
      {
        "name": "status",
        "type": "boolean",
        "required": false
      }
    ]
  }
}

🚀 Usage

Generate a new CRUD module

Module name should be in Singular or PascalCase (e.g. User, UserGroup).

rcli generate module <ModuleName>
or
rcli g m <ModuleName>

Example

rcli g m Customer

This command will create a new Customer module with the following structure:

src/
  features/
    users/
      customer-form.tsx
      customer-table.tsx
      customer-table-columns.tsx
  hooks/
    useCustomers.ts  
  models/
    customer-model.ts
  pages/
    customers/
      index.jsx
      create.jsx
      edit.jsx
  services/
    customers-service.ts

It will also update the following files:

  • src/routes/routes.tsx to include the new routes for customers
  • src/services/core/base-service.ts to include the new service tags
  • src/utils/constants/api-end-points.ts to include the new api end points

Example

Routes: src/routes/routes.tsx

{
  path: 'customers',
  breadcrumb: 'Customers',
  component: '',
  exact: true,
  children: [
    {
      path: '',
      breadcrumb: 'Customers',
      component: Customers,
      exact: true
    },
    {
      path: 'create',
      breadcrumb: 'Create Customer',
      component: CustomerCreate,
      exact: true
    },
    {
      path: ':id',
      breadcrumb: 'Edit Customer',
      component: CustomerEdit,
      exact: true
    }
  ]
}

Service Tags: src/services/core/base-service.ts

const baseService = createApi({
  reducerPath: 'api',
  baseQuery: baseQueryWithReAuth,
  keepUnusedDataFor: 120,
  tagTypes: [
    ...,
    'customers',
    'customer'
  ],
  endpoints: () => ({}),
});

API End Points: src/utils/constants/api-end-points.ts

export const API_END_POINTS = {
  ...,
  customers: '/api/v1/customers',
};