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

grg-kit-cli

v0.6.15

Published

CLI tool for pulling GRG Kit resources into your Angular project

Readme

grg-kit-cli

CLI tool for initializing Angular projects with GRG Kit and adding blocks.

Installation

npm install -g grg-kit-cli

Quick Start

# Create Angular project first
ng new my-app --style=css
cd my-app

# Initialize GRG Kit in the project
grg init

# Or with a specific theme
grg init --theme claude

# Add or switch theme
grg add theme claude
grg add theme modern-minimal

# Add blocks (all files)
grg add block auth
grg add block shell

# Add specific files from a block
grg add block auth login
grg add block shell sidebar

# Add all blocks
grg add block --all

# Add components
grg add component file-upload

# List available resources
grg list
grg list blocks
grg list themes
grg list components

Commands

grg init

Initialize GRG Kit in an existing Angular project.

grg init [options]

Options:
  -t, --theme <name>  Theme to install (default: "grg-theme")

Examples:
  grg init
  grg init --theme claude
  grg init -t modern-minimal

Prerequisites:

  • Must be run inside an existing Angular project (with angular.json)
  • Create one with: ng new my-app --style=css

What it does:

  • Installs Tailwind CSS v4 (tailwindcss @tailwindcss/postcss postcss)
  • Creates .postcssrc.json with PostCSS configuration
  • Installs and configures Spartan-NG CLI
  • Runs ng g @spartan-ng/cli:ui all to install all Spartan-NG UI components
  • Downloads 56+ Spartan-NG examples to libs/examples
  • Downloads the selected theme
  • Updates src/styles.css with theme import

Available themes:

  • grg-theme - Default theme with blue accents
  • claude - Claude-inspired warm tones
  • clean-slate - Minimal grayscale palette
  • modern-minimal - Contemporary minimal design
  • amber-minimal - Warm amber accents
  • chroma-clinic - Professional blue theme for healthcare
  • bio-lab - Fresh green theme for life sciences
  • pharma-teal - Calming teal for pharmaceutical apps
  • helix-purple - DNA-inspired purple for genomics

grg add theme

Add or switch theme in an existing project.

grg add theme <themeName>

Options:
  -o, --output <path>    Custom themes directory (default: "src/themes")

Examples:
  grg add theme claude           # Download and set claude theme
  grg add theme modern-minimal   # Download and set modern-minimal

What it does:

  • Downloads the theme CSS file to src/themes/
  • Updates src/styles.css to import the new theme (replaces existing theme import)

grg add block

Add blocks or specific block files to your project.

grg add block <blockName> [fileIds...]

Options:
  --all                  Add all blocks
  -o, --output <path>    Custom output directory

Examples:
  grg add block auth                    # All auth files
  grg add block auth login              # Only login
  grg add block auth login register     # Login and register
  grg add block shell sidebar           # Only sidebar shell
  grg add block shell topnav topnav-footer  # Topnav variants
  grg add block --all                   # All blocks

grg add component

Add GRG Kit components to your project.

grg add component <componentName>

Options:
  --all                  Add all components
  -o, --output <path>    Custom output directory

Examples:
  grg add component file-upload    # Download file-upload component
  grg add component --all          # All components

Available blocks and files:

| Block | Files | |-------|-------| | auth | login, register, forgot-password | | shell | sidebar, sidebar-footer, topnav, topnav-footer, collapsible, collapsible-footer | | settings | profile, security, notification, danger-zone |

Search tags (for MCP server discoverability):

| Block | Search Terms | |-------|--------------| | auth | signin, sign-in, signup, register, password, credentials, onboarding | | shell | dashboard, admin, navbar, menu, left-nav, top-bar, wrapper | | settings | user-settings, my-account, configuration, notifications, privacy |

grg list [category]

List available blocks and themes.

grg list [category] [options]

Options:
  --json             Output as JSON (for MCP server integration)

Examples:
  grg list           # Show overview
  grg list blocks    # List all blocks
  grg list themes    # List all themes
  grg list --json    # Output all resources as JSON

The --json flag outputs structured data used by the MCP server to get resource information.

grg llm-setup

Generate design system rules for AI assistants (Windsurf, Cursor, Claude Code).

grg llm-setup [options]

Options:
  -o, --output <path>  Output directory for rules (default: ".windsurf/rules")

Examples:
  grg llm-setup                    # Windsurf/Cursor (design-system.md)
  grg llm-setup --output .claude   # Claude Code (single CLAUDE.md)

What this creates:

  • design-system.md - Component usage patterns, styling rules, import patterns

What this enables:

  • ✅ AI follows GRG Kit design system patterns
  • ✅ AI uses Spartan-NG components correctly
  • ✅ AI uses semantic colors instead of raw Tailwind colors

Quick Reference

# Create Angular project first
ng new my-app --style=css
cd my-app

# Initialize GRG Kit
grg init                        # Default theme
grg init --theme claude         # Custom theme

# Add/switch theme
grg add theme claude            # Switch to claude theme
grg add theme modern-minimal    # Switch to modern-minimal

# Add blocks (all files)
grg add block auth              # All auth files
grg add block shell             # All shell layouts
grg add block settings          # All settings pages

# Add specific files
grg add block auth login        # Just login
grg add block shell sidebar     # Just sidebar shell
grg add block --all             # All blocks

# Add components
grg add component file-upload   # File upload component

# List resources
grg list                        # Overview
grg list blocks                 # Available blocks
grg list themes                 # Available themes
grg list components             # Available components

# AI setup
grg llm-setup                   # Generate AI rules

License

MIT