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

fe-boilerplate-cli

v1.0.4

Published

This repo is about to create folder structuring using cli

Downloads

11

Readme

FE Boilerplate CLI

🚀 A powerful CLI tool to quickly scaffold frontend projects and generate code components

✨ Features

  • 📦 Quick Project Setup - Create a new frontend project in seconds
  • 🎨 Code Generators - Generate routes, pages, and components with consistent structure
  • 🔥 TypeScript Support - All generated files use TypeScript (.tsx)
  • 💅 Best Practices - Follows modern React and Next.js conventions
  • 🎯 Flexible - Customizable paths and naming conventions
  • Fast & Lightweight - Minimal dependencies, maximum efficiency

📦 Installation

Global Installation (Must)

npm install -g fe-boilerplate-cli

🚀 Quick Start

1. Create a New Project

# Using global installation
fe-boilerplate-cli my-app

# Using npx
npx fe-boilerplate-cli my-app

2. Navigate to Your Project

cd my-app
npm install
npm run dev

3. Generate Code

# Generate a route
fe-boilerplate-cli g r about

# Generate a page
fe-boilerplate-cli g p home

📖 Commands

Create Project

fe-boilerplate-cli [project-name]

Creates a new frontend project from the boilerplate template.

Example:

fe-boilerplate-cli my-awesome-app

If you don't provide a project name, you'll be prompted to enter one.


Generate Code

fe-boilerplate-cli generate <type> [name]
# or use the alias
fe-boilerplate-cli g <type> [name]

Generate different types of code files with consistent structure.


🎨 Generators

Routes Generator

Generate route components in src/app/ directory (Next.js App Router style).

Aliases: routes, route, r

fe-boilerplate-cli g r about
fe-boilerplate-cli generate route contact
fe-boilerplate-cli g routes dashboard

Output:

src/app/about/About.tsx

Generated File Structure:

import React from 'react';

export default function About() {
  return (
    <div>
      <h1>About Page</h1>
      <p>Welcome to About!</p>
    </div>
  );
}

Pages Generator

Generate page components in src/pages/ directory with "Page" suffix.

Aliases: pages, page, p

fe-boilerplate-cli g p home
fe-boilerplate-cli generate page dashboard
fe-boilerplate-cli g pages settings

Output:

src/pages/HomePage.tsx

Generated File Structure:

import React from 'react';

export default function HomePage() {
  return (
    <div>
      <h1>HomePage Page</h1>
      <p>Welcome to HomePage!</p>
    </div>
  );
}

💡 Examples

Basic Usage

# Create new project
fe-boilerplate-cli my-app
cd my-app

# Generate routes
fe-boilerplate-cli g r about
fe-boilerplate-cli g r contact
fe-boilerplate-cli g r blog

# Generate pages
fe-boilerplate-cli g p home
fe-boilerplate-cli g p dashboard

Multi-word Names

# Kebab-case (recommended)
fe-boilerplate-cli g r contact-us      # → ContactUs.tsx
fe-boilerplate-cli g p user-profile    # → UserProfilePage.tsx

# Space-separated (will be converted to kebab-case)
fe-boilerplate-cli g r "about us"      # → AboutUs.tsx
fe-boilerplate-cli g p "my settings"   # → MySettingsPage.tsx

📂 Project Structure

After creating a project and generating code, your structure will look like:

my-app/
├── src/
│   ├── app/                    # Routes (Next.js App Router)
│   │   ├── about/
│   │   │   └── About.tsx
│   │   ├── contact/
│   │   │   └── Contact.tsx
│   │   └── blog/
│   │       └── Blog.tsx
│   │
│   └── pages/                  # Pages (Traditional routing)
│       ├── HomePage.tsx
│       ├── DashboardPage.tsx
│       └── SettingsPage.tsx
│
├── package.json
└── ...

🆘 Help

Get help anytime with the --help flag:

# Root help
fe-boilerplate-cli --help

# Generator help
fe-boilerplate-cli generate --help
fe-boilerplate-cli g --help

🎯 Generator Comparison

| Generator | Aliases | Output Path | Naming Convention | Use Case | |-----------|---------|-------------|-------------------|----------| | Routes | routes, route, r | src/app/{name}/{Name}.tsx | PascalCase | Next.js App Router | | Pages | pages, page, p | src/pages/{Name}Page.tsx | PascalCase + "Page" | Traditional routing |


📊 Version History

v1.0.0 (Current)

  • ✨ Initial release
  • 📦 Project scaffolding
  • 🎨 Route generator
  • 📄 Page generator
  • 💅 TypeScript support