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

kpm-cli-rn

v1.0.6

Published

A smart CLI for JS/TS developers to bootstrap modern fullstack projects with frontend, backend, and Docker setup.

Readme

KPM CLI

npm version License: MIT

KPM is a smart CLI tool for developers to quickly bootstrap React and Next.js projects with modern best practices. It helps you set up frontend, optional backend, UI libraries, and project templates in seconds, without worrying about repetitive configuration.


Features

  • Frameworks: React or Next.js
  • TypeScript support: Optional for strict typing
  • UI Libraries: Hiro UI, Material UI, Chakra UI, or No UI Library
  • Project templates: Blog, Ecommerce, Portfolio, or Blank
  • Component & Page Generators: Quickly scaffold reusable components and pages
  • Smart Library Installer: Suggests popular frontend/backend libraries and remembers custom ones
  • Docker Support: Ready-to-run docker-compose setup for frontend + backend
  • Multilingual prompts: Easily add new languages for CLI interactions

Installation

Install KPM globally:

npm install -g kpm

Check the version:

kpm --version

CLI Commands

kpm init

Initializes a new project interactively.

kpm init
  • Prompts for:

    • Project name
    • Framework (React / Next.js)
    • TypeScript support
    • UI library
    • Project template
    • Optional backend setup
  • Automatically sets up:

    • Frontend project folder
    • TailwindCSS + selected UI library
    • Optional Node.js backend with TypeScript
    • Docker Compose for full-stack development

Example:

kpm init
? Project name: my-awesome-app
? Framework: Next.js
? Use TypeScript? Yes
? Choose UI Library: Chakra UI
? Template: Blog
? Include backend? Yes

kpm add component

Generates a new component in your project.

kpm add component
  • Detects project structure automatically:

    • app/components/ for app-based Next.js
    • src/components/ otherwise
  • Prompts for:

    • Component name
    • TypeScript or JavaScript
  • Creates the component folder and files ready for use.

Example:

kpm add component
? Component name: HeroBanner
? Use TypeScript? Yes
✅ Component "HeroBanner" created at src/components/HeroBanner/

kpm add page

Generates a new page.

kpm add page
  • Detects project structure automatically:

    • app/pages/ for app-based Next.js
    • src/pages/ otherwise
  • Prompts for:

    • Page name
    • TypeScript or JavaScript

Example:

kpm add page
? Page name: About
? Use TypeScript? No
✅ Page "About" created at src/pages/About/

kpm add library

Installs a frontend or backend library smartly.

kpm add library
  • Detects whether you are in frontend or backend folder.
  • Suggests popular libraries or lets you input a custom one.
  • Automatically installs it using npm/yarn/pnpm.
  • Remembers new libraries for future suggestions.

Example:

kpm add library
? Select a library to install in frontend (or choose New Library): react-router
⬇ Installing "react-router" in frontend...
✅ "react-router" installed successfully.
kpm add library
? Select a library to install in backend (or choose New Library): New Library
? Enter the npm library name: prisma
⬇ Installing "prisma" in backend...
✅ "prisma" added to the backend library list and installed.

Docker Setup

If you include a backend, KPM generates a docker-compose.yml:

version: "3.8"
services:
  frontend:
    build: .
    ports:
      - "3000:3000"
    command: "npm run dev"
    volumes:
      - .:/app
    working_dir: /app

  backend:
    build: ./backend
    ports:
      - "4000:4000"
    command: "npm run dev"
    volumes:
      - ./backend:/app
    working_dir: /app

Run both frontend and backend with:

docker-compose up

Tips & Tricks

  • Use kpm add component and kpm add page to keep your code organized.
  • Use kpm add library to manage both frontend and backend dependencies in one place.
  • Combine Docker with kpm init to start full-stack development instantly.
  • You can customize templates and languages by editing the /templates folder and /lib/language.json.

License

MIT