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

stackshare

v0.0.5

Published

StackShare CLI - Scan repos and sync tech stacks

Readme

StackShare CLI

Scan your projects and automatically detect the tools you're using. Update your StackShare tech stack without manual effort.

Beta - The StackShare CLI is currently in beta. Features may change and we'd love your feedback!

Quick Start

npx stackshare scan

This scans your current directory and detects tools automatically. No installation required.

Installation

For frequent use, install globally:

npm install -g stackshare
# or
pnpm add -g stackshare

Prerequisites

How It Works

The CLI maintains a curated database of 4,600+ tools across 71 StackShare categories, each with specific detection patterns:

  • File patterns - Config files, lock files, and tool-specific files (e.g., tailwind.config.js, .eslintrc, docker-compose.yml)
  • Import statements - Imports and requires in your source code
  • Configuration keys - Tool references in package.json, pyproject.toml, etc.
  • Directory structures - Tool-specific directories and conventions

This approach detects more than just npm packages—it finds Vercel, GitHub Actions, Docker, Tailwind CSS, and hundreds of other tools across all categories.

Commands

stackshare scan [directory]   # Scan a directory for tools (default command)
stackshare login [api-key]    # Authenticate with StackShare
stackshare logout             # Remove stored authentication

Scan Options

stackshare scan [directory] [options]

Options:
  -s, --stack <slug>     Sync to an existing stack by slug
  -S, --stack-name <n>   Stack name for new stacks
  -a, --all              Include all detected tools (not just primary)
  -n, --dry-run          Scan only, do not post
  -j, --json             Output JSON only
  -v, --verbose          Show matched files for each tool
  -y, --yes              Skip prompts, post automatically
  -r, --raw              Show all detections without deduplication

Example Output

$ stackshare scan

✔ Scanned 847 files in 234ms

Detected 18 primary tools (24 total):

  ▸ Application & Data
    ● TypeScript · Languages
    ● React · JavaScript Frameworks
    ● Next.js · Frameworks (Full Stack)
    ● Tailwind CSS · Front-End Frameworks

  ▸ DevOps
    ● Docker · Virtual Machine Platforms
    ● GitHub Actions · Continuous Integration

  ▸ Utilities
    ● ESLint · Code Review
    ● Prettier · Code Review
    ● Vitest · Testing Frameworks

? What would you like to do? › Post on StackShare

Authentication

Browser Authentication

When posting, the CLI opens a browser window for you to sign in. After authenticating, your API key is saved automatically.

API Key

Authenticate directly with an API key:

stackshare login <your-api-key>

Generate an API key from your account settings.

CI/CD

For automated pipelines, set the STACKSHARE_API_KEY environment variable:

export STACKSHARE_API_KEY=your-key-here
npx stackshare scan --yes --stack my-project

CI/CD Integration

Add automatic stack updates to your CI/CD pipeline:

GitHub Actions

# .github/workflows/update-stack.yml
name: Update StackShare

on:
  push:
    branches: [main]
    paths:
      - 'package.json'
      - 'pnpm-lock.yaml'
      - '*.config.*'
      - 'Dockerfile'

jobs:
  update-stack:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npx stackshare scan --yes --stack my-project
        env:
          STACKSHARE_API_KEY: ${{ secrets.STACKSHARE_API_KEY }}

See the CI/CD Integration guide for GitLab CI, CircleCI, and Azure Pipelines examples.

What Gets Detected

The scanner identifies tools across all StackShare categories:

  • Languages & Frameworks - TypeScript, React, Next.js, Django, Rails
  • Build Tools - Webpack, Vite, esbuild, Turbopack
  • Testing - Jest, Vitest, Playwright, Cypress
  • Linting & Formatting - ESLint, Prettier, Biome
  • Data Stores - PostgreSQL, MongoDB, Redis, Prisma
  • DevOps & Infrastructure - Docker, Kubernetes, Terraform
  • CI/CD - GitHub Actions, CircleCI, GitLab CI
  • Hosting & Deployment - Vercel, AWS, Cloudflare
  • Monitoring & Analytics - Sentry, PostHog, Datadog
  • And many more...

Documentation

Full documentation available at stackshare.io/docs/cli

Feedback & Support

Email [email protected] for bug reports, feature requests, or to request new tool detection.