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

ngx-crafter

v1.2.1

Published

Custom Angular CLI generator

Readme

logo ngx-crafter

Craft your Angular projects like a pro! ⛏️

License: MIT npm version Node.js Angular

A powerful CLI tool that helps you craft Angular projects with pre-configured folder structures and essential packages. Think of it as your personal crafting table for Angular development! 🧰

🌟 Features

  • 🏗️ Smart Project Generation: Creates Angular projects with optimized folder structures
  • 📦 Package Management: Automatically installs commonly used packages (Tailwind CSS, Angular Material, NgRx, ESLint)
  • 🔧 Dev Utilities: Git hooks and development tools (Husky)
  • 🎨 Tailwind CSS Integration: Pre-configured utility-first CSS framework with PostCSS
  • 🎯 Custom Structures: Support for custom folder structure configurations
  • 🔌 Plugin System: Extensible plugin architecture for additional features (auth, i18n, PWA, etc.)
  • ⚡ Fast Setup: Get your project ready in seconds, not minutes
  • 🔧 Angular 17-20 Support: Compatible with the latest Angular versions

🚀 Quick Start

Prerequisites

Before you start crafting, make sure you have:

  • Node.js (v18 or higher) 📦
  • Angular CLI (v17-20) ⚡
npm install -g @angular/cli

Installation

npm install -g ngx-crafter

Usage

# Basic usage with interactive prompts
ngx-crafter

# Use plugins for additional features (coming soon)
ngx-crafter -- --with auth
ngx-crafter -- --with auth,i18n,pwa

# Plugin-specific options (coming soon)
ngx-crafter -- --with auth --auth-provider firebase
ngx-crafter -- --with pwa --pwa-name "My Awesome App"

That's it! The tool will guide you through the setup process with interactive prompts.

🎯 What You Get

When you run ngx-crafter, you'll get a fully configured Angular project with:

📦 Pre-configured Packages

  • Tailwind CSS: Automatically configured with PostCSS and ready to use
  • Angular Material: UI components and theming setup
  • NgRx: State management with store, effects, and devtools

🛠️ Development Utilities

  • Husky: Git hooks configured with lint-staged for pre-commit code quality checks
  • ESLint: Code linting and formatting rules
  • Prettier: Code formatting and style consistency

📁 Default Folder Structure

src/
├── app/
│   ├── core/           # Core application logic
│   │   ├── services/   # Application services
│   │   ├── guards/     # Route guards
│   │   ├── interceptors/ # HTTP interceptors
│   │   ├── models/     # Data models
│   │   └── utils/      # Utility functions
│   ├── shared/         # Shared components & services
│   │   ├── components/ # Reusable components
│   │   ├── directives/ # Custom directives
│   │   ├── pipes/      # Custom pipes
│   │   ├── models/     # Shared models
│   │   └── services/   # Shared services
│   ├── features/       # Feature modules
│   ├── layouts/        # Layout components
│   └── assets/         # Static assets
│       ├── images/     # Image files
│       ├── icons/      # Icon files
│       └── fonts/      # Font files
└── environments/       # Environment configurations

🔌 Available Plugins

  • 🔐 Auth: Authentication setup with Angular Fire and Firebase (coming soon)
  • 🌍 i18n: Internationalization with ngx-translate (coming soon)
  • 📱 PWA: Progressive Web App setup with Angular PWA (coming soon)
  • 📊 CRUD: CRUD operations setup (coming soon)
  • 🧪 Testing: Enhanced testing setup (coming soon)
  • 📚 Storybook: Storybook integration (coming soon)

Plugin system infrastructure is ready! You can create your own plugins now. Provided plugins will be available in future versions. Meanwhile, check out demo-plugin as an example.

🛠️ Interactive Setup

The tool will ask you:

  1. Project Name: What should we call your masterpiece?
  2. Package Selection: Which packages do you want to include?
    • Angular Material: UI component library
    • Tailwind CSS: Utility-first CSS framework
    • NgRx: State management library
  3. Dev Utilities: Which development utilities do you want to add?
    • Husky: Git hooks with lint-staged for pre-commit code quality
    • ESLint: Code linting and formatting
    • Prettier: Code formatting and style consistency
  4. Folder Structure: Use default or custom structure?

🎨 Custom Structures

Want to craft your own folder structure? Create a JSON file like this:

{
  "src": {
    "app": {
      "core": {
        "services": {},
        "guards": {},
        "models": {}
      },
      "features": {
        "auth": {},
        "dashboard": {}
      }
    }
  }
}

Then reference it during setup!

🧰 Development

Building the Project

npm run build

Development Mode

npm run dev

Project Structure

ngx-crafter/
├── src/
│   ├── cli.ts                 # Main CLI entry point
│   ├── default-structure.json # Default folder structure
│   └── utils/                 # Utility functions
│       ├── checkAngularCLI.ts # Angular CLI version checker
│       ├── createFolders.ts   # Folder creation logic
│       ├── createProject.ts   # Project creation logic
│       └── prompt.ts          # Interactive prompts
├── test/                      # Test files
├── package.json               # Project configuration
└── tsconfig.json             # TypeScript configuration

🤝 Contributing

Want to help improve ngx-crafter? Here's how you can contribute:

  1. Fork the repository 🍴
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request 🚀

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

Happy Crafting! ⛏️✨

Built with ❤️ by TOROIMERA