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

@kirank911/theme-ai

v1.0.6

Published

Analyze your frontend theme stack and dependencies using OpenAI

Downloads

14

Readme

🔍 Theme Stack Analyzer

A smart CLI tool to analyze frontend themes (like those in Drupal, Node, or design systems) and detect:

  • ✅ Build tools (Webpack, Vite, Gulp, PostCSS, etc.)
  • 🎨 Styling stacks (SCSS/SASS, Tailwind, Stylelint)
  • ⚛️ Frameworks (React, Vue, Next.js, etc.)
  • 📦 Outdated dependencies
  • 🤖 AI-powered upgrade recommendations
  • ⚙️ Suggested Node.js version based on your theme’s package.json

⚙️ Prerequisites

Before using this tool, make sure you have the following installed:

  1. Node.js v18.x or higher

    Use node -v to check your version.
    You can download it from https://nodejs.org or use a version manager like nvm.

  2. npm (comes with Node.js)

    Use npm -v to verify it's installed.

  3. OpenAI API Key (for AI suggestions)

Get one from https://platform.openai.com/account/api-keys


📦 Install via npm

You can install this tool globally to use from anywhere:

npm install -g @kirank911/theme-ai

Or use it locally in a project:

npm install --save-dev @kirank911/theme-ai

🔐 Setup OpenAI API Key

To use AI-powered features, you need to provide your OpenAI API key.

bash -c 'read -p "Enter your OpenAI API Key: " key && echo "OPENAI_API_KEY=$key" > .env'

This will generate a .env file in your project root like:

OPENAI_API_KEY=sk-xxxxxxx

You can get your key from https://platform.openai.com/account/api-keys.


🚀 Usage

If installed globally, run:

theme-ai

If installed locally, use npx:

npx theme-ai

Or run via npm script (if added in your package.json scripts section):

npm run analyze

Make sure you are inside the directory containing package.json.


📊 What It Detects

| Category | Tools Detected | | ------------- | ---------------------------------------------------------------- | | Build Tools | Webpack, Vite, Gulp, Grunt, PostCSS, Babel | | Frameworks | React, Vue, Next.js, Nuxt.js, Lit | | Style Tools | SCSS/SASS, Tailwind CSS, Stylelint | | Linting | ESLint, Stylelint | | TypeScript | TypeScript via tsconfig.json | | Documentation | Storybook via storybook/main.js | | Package State | Outdated packages via npm outdated | | Node Version | engines.node in package.json, or recommends >=18.x default |


🧠 Example Output

🔍 Analyzing theme...

🧱 Detected Stack:
- Webpack
- SCSS (Sass)
- React
- ESLint
- Tailwind CSS

📦 Recommended Node version based on packages: >=18.x

⬆️ Outdated packages detected:
- webpack: 5.60.0 → 5.88.1
- tailwindcss: 3.3.0 → 3.4.1

📦 Created package-updated.json with latest versions and engines.node = >=18.x

🤖 AI Suggestions:
- Update `webpack`, `tailwindcss` in your package.json
- Check for breaking changes in config files
- Rebuild your lock file: `rm -rf node_modules package-lock.json && npm install`