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

@felixgeelhaar/glaze-cli

v1.0.1

Published

Command-line interface for the Glaze Design System

Readme

@felixgeelhaar/glaze-cli

Command-line interface for the Glaze Design System

Installation

npm install -g @felixgeelhaar/glaze-cli
# or
pnpm add -g @felixgeelhaar/glaze-cli
# or
yarn global add @felixgeelhaar/glaze-cli

Usage

Initialize a new project

glaze init my-project

This will create a new project with the Glaze Design System pre-configured.

Add Glaze to an existing project

# In your project directory
glaze add

This command will:

  1. Install necessary dependencies
  2. Set up configuration files
  3. Import required styles
  4. Configure your build tools

Add specific components

# Add individual components
glaze add button card dialog

# Add all components
glaze add --all

Generate component wrappers

# Generate React wrappers
glaze generate react

# Generate Vue wrappers
glaze generate vue

# Generate Angular wrappers (coming soon)
glaze generate angular

Commands

glaze init [project-name]

Create a new project with Glaze Design System.

Options:

  • --framework <framework> - Choose framework (react, vue, vanilla)
  • --typescript - Use TypeScript
  • --tailwind - Include Tailwind CSS integration
  • --git - Initialize git repository
  • --install - Install dependencies immediately

Example:

glaze init my-app --framework react --typescript --tailwind

glaze add [components...]

Add Glaze components to your project.

Options:

  • --all - Add all components
  • --framework <framework> - Specify framework wrappers
  • --force - Overwrite existing files

Example:

glaze add button card --framework vue

glaze generate <framework>

Generate framework-specific component wrappers.

Supported frameworks:

  • react - React components
  • vue - Vue 3 components
  • angular - Angular components (coming soon)
  • svelte - Svelte components (coming soon)

Example:

glaze generate react --output ./src/components

glaze config

Configure Glaze Design System settings.

Options:

  • --theme - Configure theme settings
  • --tokens - Customize design tokens
  • --css - Configure CSS output

Example:

glaze config --theme

glaze update

Update Glaze packages to the latest version.

Options:

  • --check - Check for updates without installing
  • --major - Include major version updates

Example:

glaze update --check

Configuration

.glazerc.json

Create a .glazerc.json file in your project root:

{
  "framework": "react",
  "typescript": true,
  "components": ["button", "card", "dialog"],
  "theme": {
    "primary": "#6366f1",
    "accent": "#f472b6",
    "radius": "0.75rem"
  },
  "paths": {
    "components": "./src/components",
    "styles": "./src/styles"
  }
}

Environment Variables

# Set default framework
export GLAZE_FRAMEWORK=vue

# Set default output directory
export GLAZE_OUTPUT=./src/glaze

Project Templates

React + TypeScript + Tailwind

glaze init my-react-app \
  --framework react \
  --typescript \
  --tailwind \
  --git

Creates a project with:

  • React 18
  • TypeScript
  • Tailwind CSS with Glaze preset
  • Vite build tool
  • ESLint & Prettier
  • Git repository

Vue 3 + Composition API

glaze init my-vue-app \
  --framework vue \
  --typescript \
  --git

Creates a project with:

  • Vue 3
  • TypeScript
  • Composition API setup
  • Vite build tool
  • ESLint & Prettier
  • Git repository

Vanilla JavaScript

glaze init my-vanilla-app \
  --framework vanilla \
  --git

Creates a project with:

  • Vanilla JavaScript
  • Web Components
  • Vite build tool
  • Git repository

Integrations

With existing React app

cd my-react-app
glaze add --framework react

This will:

  1. Install @felixgeelhaar/glaze-react and @felixgeelhaar/glaze-components
  2. Add style imports to your entry file
  3. Provide usage examples

With existing Vue app

cd my-vue-app
glaze add --framework vue

This will:

  1. Install @felixgeelhaar/glaze-vue and @felixgeelhaar/glaze-components
  2. Set up the Vue plugin
  3. Add style imports
  4. Provide usage examples

With existing Tailwind project

glaze add --tailwind

This will:

  1. Install @felixgeelhaar/glaze-engine
  2. Update your tailwind.config.js
  3. Add Glaze preset and plugin

Troubleshooting

Common Issues

Issue: Components not styling correctly

# Ensure styles are imported
glaze doctor styles

Issue: TypeScript errors

# Generate type definitions
glaze generate types

Issue: Build errors

# Check configuration
glaze doctor config

Debug Mode

Run commands with debug output:

DEBUG=glaze:* glaze init my-project

Getting Help

# Show help for any command
glaze help [command]

# Show version
glaze --version

# Check system compatibility
glaze doctor

Features

  • 🚀 Quick setup - Get started in seconds
  • 📦 Smart defaults - Sensible configuration out of the box
  • 🔧 Customizable - Fine-tune every aspect
  • 🎨 Theme generation - Create custom themes
  • 📝 TypeScript support - Full type safety
  • 🔄 Auto-updates - Keep dependencies current
  • 🏗️ Scaffolding - Generate boilerplate code
  • 🔍 Diagnostics - Built-in troubleshooting

License

MIT

Links