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

gradient-forge

v1.0.7

Published

A production-ready gradient theming framework for shadcn/ui with CLI support

Readme


Highlights

  • 20+ curated gradient themes with a secret Memory Lane unlock.
  • Light/dark mode with persisted state.
  • Surface overlays tuned for cards, sidebars, and popovers.
  • Export snippets for CSS + Tailwind token mapping.
  • Gallery-ready previews for each theme preset.

Demo

The app is fully multi-page. Explore:

  • / Home
  • /studio Interactive theme studio
  • /gallery Theme gallery
  • /showcase Template showcase with live previews
  • /docs Installation and CLI documentation

Quick Start

npm install
npm run dev

What You Get

  • Theme engine with data-theme and data-color-mode attributes.
  • Gradient tokens and surface layers in app/globals.css.
  • A full preview dashboard showing shadcn-style components.
  • Copy-ready export snippets for your own repos.

Architecture

  • app/page.tsx - Home experience and component previews.
  • app/studio/page.tsx - Interactive theme studio.
  • app/gallery/page.tsx - Gradient gallery.
  • app/showcase/page.tsx - Template showcase with live theme previews.
  • app/docs/page.tsx - Installation and CLI documentation.
  • app/globals.css - Gradient tokens, theme classes, and surface overlays.
  • components/theme/theme-engine.ts - Theme catalog + persistence helpers.
  • components/theme/theme-context.tsx - Client state + unlock logic.
  • components/theme/theme-panel.tsx - UI for theme selection and mode toggle.
  • components/theme/theme-exporter.tsx - Copy-ready export blocks.

Installation

Option 1: CLI (Recommended)

npx gradient-forge@latest init --inject

CLI options:

  • --inject adds the theme CSS to app/globals.css automatically
  • --no-inject skips modifying app/globals.css
  • --path targets a custom project root
  • --force overwrites existing generated files
  • --yes skips prompts and applies defaults
  • --tui enables arrow-key selector mode

Option 2: Manual Installation

Copy these files to your project:

| File | Description | |------|-------------| | components/theme/theme-engine.ts | Core theme logic & 20+ theme definitions | | components/theme/theme-context.tsx | React context provider with persistence | | components/theme/token-export-utils.ts | Export utilities for all token formats | | app/globals.css | CSS variables & theme classes (merge with your existing) |

Integration Steps:

  1. Copy the 3 theme files to your components/theme/ folder
  2. Merge the CSS from globals.css into your app/globals.css
  3. Wrap your app with ThemeProvider:
    import { ThemeProvider } from '@/components/theme/theme-context';
       
    export default function RootLayout({ children }) {
      return (
        <ThemeProvider>
          {children}
        </ThemeProvider>
      );
    }
  4. Add theme classes to your HTML root element:
    <html class="dark theme-nitro-midnight-blurple" data-theme="theme-nitro-midnight-blurple" data-color-mode="dark">

Add A New Theme

  1. Add a new entry in components/theme/theme-engine.ts.
  2. Create the matching CSS class in app/globals.css.
  3. The gallery and theme picker update automatically.

Export Snippets

Open the Export section in the app to copy snippets for:

  • Root theme attributes
  • Surface tint styling
  • Tailwind color token aliases

Scripts

  • npm run dev - Start the dev server.
  • npm run build - Build for production.
  • npm run start - Run the production build.
  • npm run lint - Lint the codebase.

Support

If Gradient Forge helps your project, you can support development here:

  • https://buymeacoffee.com/karannn

License

Add your preferred license before publishing.