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

create-admin-platform

v1.0.9

Published

CLI generator for React 19 + Ant Design 6 + React Router 7 + Vite 8 management console projects. Source-landing scaffolding with pluggable presets, themes, mock backend and feature flags.

Readme

create-admin-platform

Production-ready CLI for creating self-contained React management console projects.

create-admin-platform creates a React 19 + Ant Design 6 + React Router 7 + Vite 8 admin app, with runtime source code, enterprise layout, auth, permissions, themes, local mocks and quality scripts already wired together.

What You Get

  • A Vite, React and Ant Design admin project.
  • Built-in routing, layout, auth, permissions and themes.
  • Self-contained runtime source code with no private package dependencies.
  • Ready-to-use dev, lint, typecheck, test and build scripts.

Requirements

  • Node.js >= 20
  • pnpm >= 10 is recommended

npm and yarn are also supported.

Create A Project

Recommended:

pnpm dlx create-admin-platform@latest my-admin

The defaults give you a runnable, mock-backed admin app. The line above is equivalent to spelling every default out explicitly:

pnpm dlx create-admin-platform@latest my-admin --features=mock,admin,security,form-builder --router-mode hash --theme default

What each flag does:

  • --features=mock,admin,security,form-builder — Comma-separated feature modules. mock boots the MSW browser worker so the app runs offline; admin adds the operations console; security adds auth guards and the login flow; form-builder adds the iframe-embedded form designer integration. Trim the list to drop modules you do not need.
  • --router-mode hashhash uses /#/path (works on any static host with no extra config); browser uses /path (requires the host to fall back to index.html for unknown URLs).
  • --theme default — Initial theme key. Built-ins: default, fintech, compact, dark, linear, stripe, apple, ibm.

See the CLI Options table below for every flag and its default.

Alternatives (npm and yarn):

npm create admin-platform@latest my-admin
yarn create admin-platform my-admin

Then run the generated app:

cd my-admin
pnpm install
pnpm check
pnpm dev

The generated development server runs at http://localhost:8500.

Global Installation

If you prefer installing the admin scaffold CLI globally, use the commands below.

Install:

pnpm add -g create-admin-platform

Check the installed CLI version:

create-admin-platform --version

Create a project directory — the simplest form, all defaults:

create-admin-platform my-admin

Or spell every flag out explicitly (equivalent to the line above):

create-admin-platform my-admin --features=mock,admin,security,form-builder --router-mode hash --theme default

What each flag does:

  • --features=mock,admin,security,form-builder — Comma-separated feature modules. mock boots the MSW browser worker so the app runs offline; admin adds the operations console; security adds auth guards and the login flow; form-builder adds the iframe-embedded form designer integration. Trim the list to drop modules you do not need.
  • --router-mode hashhash uses /#/path (works on any static host with no extra config); browser uses /path (requires the host to fall back to index.html for unknown URLs).
  • --theme default — Initial theme key. Built-ins: default, fintech, compact, dark, linear, stripe, apple, ibm.

Upgrade to the latest version (either re-install or update; the first form also works if the CLI is not installed yet):

pnpm add -g create-admin-platform@latest
pnpm update -g create-admin-platform

CLI Options

| Option | Description | Default | | ------------------------------ | ---------------------------------------------------------------------------------------------------------- | ------------------------------------ | | --preset <name> | Project preset. blank is the OSS scaffold; chain-bill is a fuller business example. | blank | | --features <list> | Comma-separated feature flags: mock, admin, security, form-builder. | mock,admin,security,form-builder | | --router-mode <mode> | Router mode: hash or browser. | hash | | --theme <key> | Initial theme: default, fintech, compact, dark, linear, stripe, apple, ibm. | default | | --registry <url> | Optional package registry written into the generated .npmrc. | none | | --link-workspace-root <path> | Development-only source root override for local scaffold work. Published-package users should not need it. | auto | | --interactive | Force prompts even when <project-name> is provided. | false | | -h, --help | Show help. | - | | -v, --version | Show CLI version. | - |

Legacy --preset minimal | normal | fintech flags are accepted for backward compatibility. They warn on stderr and fall back to blank.

Generated Project Layout

src/
  api/          # auth APIs and business request clients
  components/   # source-landed reusable components
  config/       # app config, menu aggregation, feature flags and themes
  layouts/      # BasicLayout and layout styles
  lib/          # request, auth, permission, query, branding and dictionary
  pages/        # route pages, hooks and page-private components
  router/       # route creation, guards and business route adapters
  stores/       # Zustand stores
  styles/       # global Less styles
  utils/        # pure utilities split by topic
types/          # project-level runtime types
mock/           # local mock handlers
public/         # static assets

Generated Scripts

| Command | Purpose | | --------------- | ------------------------------------------------ | | pnpm dev | Start the development server on port 8500. | | pnpm dev:test | Start the app with .env.test on port 8500. | | pnpm dev:uat | Start the app with .env.uat on port 8500. | | pnpm check | Run lint, typecheck, tests and production build. | | pnpm build | Typecheck and build for production. | | pnpm test | Run Vitest. | | pnpm preview | Preview production output locally. |

To change the development port, edit --port 8500 in the generated package.json scripts.

Package Contents

The published package ships all assets needed to create a project:

  • dist/ - CLI entry and type declarations.
  • template/ - project skeleton copied into the generated app.
  • snapshot/packages/<name>/src/ - frozen source files for runtime and preset modules.

template/ and snapshot/ are produced by scripts/build-assets.mjs during pnpm build and prepublishOnly. Published installs do not require this monorepo on disk.

Local Development

From the monorepo root:

pnpm install
pnpm --filter create-admin-platform build
pnpm --filter create-admin-platform test:e2e

Smoke-test the local CLI without absolute machine paths:

pnpm --filter create-admin-platform build
node packages/create-admin-platform/dist/index.js ../admin-platform-verify --features=mock,admin,security,form-builder --router-mode hash --theme default

cd ../admin-platform-verify
pnpm install
pnpm check

FAQ

Does the generated app depend on this monorepo?

No. Runtime code is copied into the generated app, so the business project can be installed, built and deployed independently.

Should this CLI be added to generated app dependencies?

No. Use it as a project initializer through pnpm dlx, npm create or yarn create.

License

Apache-2.0