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

diagramers-admin

v3.0.10

Published

CLI tool for generating React admin applications with Redux and authentication

Readme

Diagramers Admin CLI

A powerful CLI tool for generating React admin applications with Redux, authentication, and a complete design system.

Features

  • 🚀 Quick Setup: Generate a complete React admin application in seconds
  • 🎨 Design System: Built-in comprehensive UI component library
  • 🔐 Authentication: Complete auth flows (login, register, forgot password, OTP)
  • 📊 Dashboard: Ready-to-use dashboard with charts and analytics
  • 👥 User Management: Full CRUD operations for user management
  • 🔄 Redux Integration: Pre-configured Redux store with RTK
  • 🔌 API Integration: Connected to diagramers-api by default
  • 📱 Responsive: Mobile-first responsive design
  • 🎯 TypeScript Ready: Full TypeScript support

Installation

npm install -g diagramers-admin

Usage

Initialize a new project

diagramers-admin init my-admin-app --port 3000

This will create a new React admin application with:

  • Complete admin template with design system
  • Redux store configuration
  • Authentication setup
  • API integration with diagramers-api
  • Environment configuration

Extend existing project

cd my-admin-app
diagramers-admin extend auth
diagramers-admin extend users
diagramers-admin extend dashboard

Available features:

  • auth: Authentication flows and Redux slice
  • users: User management CRUD operations
  • dashboard: Dashboard with analytics

Project Structure

my-admin-app/
├── src/
│   ├── components/          # Reusable UI components
│   ├── views/              # Page components
│   │   ├── interface/      # Design system components
│   │   ├── blocks/         # Content blocks
│   │   └── pages/          # Page layouts
│   ├── store/              # Redux store and slices
│   ├── auth/               # Authentication components
│   ├── hooks/              # Custom React hooks
│   ├── layout/             # Layout components
│   ├── routing/            # Route configuration
│   └── sass/               # Styles and themes
├── public/                 # Static assets
├── .env                    # Environment variables
└── package.json           # Dependencies and scripts

Environment Configuration

The CLI automatically creates a .env file with:

PORT=3000
REACT_APP_API_URL=http://localhost:3001
REACT_APP_SOCKET_URL=http://localhost:3001
REACT_APP_ENV=development

Design System

The generated application includes a comprehensive design system with:

Components

  • Forms: Input groups, selects, checkboxes, radio buttons
  • Layout: Cards, containers, grids, spacing
  • Navigation: Sidebar, top navigation, breadcrumbs
  • Data Display: Tables, lists, badges, avatars
  • Feedback: Alerts, modals, tooltips, notifications
  • Charts: Line charts, bar charts, pie charts, gauges

Themes

  • Light and dark themes
  • Multiple color schemes (blue, green, pink, etc.)
  • Customizable CSS variables

Authentication

The authentication system includes:

  • Login: Email/password authentication
  • Register: User registration with validation
  • Forgot Password: Password reset flow
  • OTP Verification: Two-factor authentication
  • Token Management: Automatic token storage and refresh
  • Protected Routes: Route protection based on auth status

API Integration

The application is pre-configured to work with diagramers-api:

  • Base URL: Configurable via environment variables
  • Authentication: JWT token-based auth
  • Error Handling: Centralized error handling
  • Request/Response Interceptors: Automatic token injection
  • Socket.IO: Real-time updates support

Redux Store

Pre-configured Redux store with:

  • Auth Slice: User authentication state
  • Users Slice: User management operations
  • Dashboard Slice: Dashboard data and analytics
  • Persistent Storage: State persistence across sessions

Getting Started

  1. Install the CLI:

    npm install -g diagramers-admin
  2. Create a new project:

    diagramers-admin init my-admin-app
  3. Navigate to the project:

    cd my-admin-app
  4. Start development server:

    npm start
  5. Open in browser:

    http://localhost:3000

Customization

Adding Custom Components

  1. Create your component in src/components/
  2. Import and use in your views
  3. Follow the existing component patterns

Modifying Themes

  1. Edit src/sass/themes/_variables.scss
  2. Update color schemes in theme files
  3. Rebuild CSS with npm run build-css

Extending Redux Store

  1. Create new slices in src/store/
  2. Add to store configuration
  3. Use in components with useSelector and useDispatch

Development

Building the CLI

npm run build

Running in Development

npm run dev

Testing

npm test

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Support

For support and questions:

  • Create an issue on GitHub
  • Check the documentation
  • Review the example projects

Changelog

v1.0.0

  • Initial release
  • React admin template with design system
  • Redux integration
  • Authentication flows
  • User management
  • Dashboard components
  • API integration
  • CLI tool for project generation