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

@usesidekick/cli

v0.2.4

Published

Command-line tool for integrating and managing [Sidekick](https://github.com/zhendershot/sidekick) in Next.js applications. Analyzes your app, generates AI-powered override modules, and scaffolds the full integration in one command.

Readme

@usesidekick/cli

Command-line tool for integrating and managing Sidekick in Next.js applications. Analyzes your app, generates AI-powered override modules, and scaffolds the full integration in one command.

Quick Start

npx @usesidekick/cli init

This single command will:

  1. Install @usesidekick/react and build plugins
  2. Configure .babelrc with the Sidekick JSX runtime
  3. Add webpack aliases to next.config.js
  4. Create a catch-all API route (api/sidekick/[...action]/) with JSON file storage
  5. Add SidekickBootstrap to your app layout
  6. Analyze your components and generate schema.json

After init, add your API key and start developing:

# .env.local
ANTHROPIC_API_KEY=your_api_key
npm run dev

Overrides are stored locally in .sidekick/overrides.json — no database setup required.

Using Postgres Instead

For production deployments (e.g. Vercel) where the filesystem is read-only, use the --postgres flag to set up Drizzle + Neon:

npx @usesidekick/cli init --postgres

This will additionally:

  • Install drizzle-orm, @neondatabase/serverless, and drizzle-kit
  • Create a database schema and connection (lib/db/)
  • Create drizzle.config.ts
  • Generate an API route using createDrizzleStorage

After init with --postgres:

# .env.local
DATABASE_URL=your_neon_database_url
ANTHROPIC_API_KEY=your_api_key
npx drizzle-kit push
npm run dev

Commands

sidekick init

Initialize Sidekick in an existing Next.js project.

sidekick init [options]

| Option | Default | Description | |--------|---------|-------------| | -d, --dir <path> | . | Target project directory | | --postgres | false | Use Drizzle + Neon Postgres instead of JSON file storage |

Detects automatically: package manager (npm/yarn/pnpm), Next.js version, TypeScript, src/app vs app directory structure. Skips already-installed dependencies and already-configured files. Creates backups before modifying existing configs.

sidekick analyze

Analyze your app's components, extension points, data models, and design system to generate a schema.json that powers AI override generation.

sidekick analyze [options]

| Option | Default | Description | |--------|---------|-------------| | -d, --dir <path> | . | Target directory to analyze | | -o, --output <path> | ./sidekick/schema.json | Output path for schema |

sidekick generate

Generate an override module from a natural language description using Claude.

sidekick generate <request> [options]

| Option | Default | Description | |--------|---------|-------------| | -s, --schema <path> | ./sidekick/schema.json | Path to schema.json | | -o, --output <path> | ./sidekick/overrides | Output directory for generated overrides | | -k, --api-key <key> | ANTHROPIC_API_KEY env var | Anthropic API key |

Example:

sidekick generate "Add a purple banner above the task board that says 'Beta'"

The generated override is validated against the SDK's safety rules (no DOM access, no eval, only @usesidekick/react and react imports allowed).

sidekick validate

Validate an override module file for correctness and safety.

sidekick validate <file>

Checks for:

  • Valid JavaScript/TypeScript syntax
  • Forbidden APIs (document, window, eval, fetch, etc.)
  • Import restrictions (only @usesidekick/react and react)
  • Required createOverride export

What init Creates

Default (JSON file storage)

your-app/
  .babelrc                              # JSX runtime config
  next.config.js                        # Webpack aliases (modified)
  src/
    components/
      SidekickBootstrap.tsx             # Provider + Panel wrapper
    app/
      layout.tsx                        # Modified to include SidekickBootstrap
      api/sidekick/[...action]/
        route.ts                        # Handler with JSON file storage
    .sidekick/
      schema.json                       # App analysis output
      overrides.json                    # Override data (auto-created on first request)

With --postgres

your-app/
  .babelrc                              # JSX runtime config
  next.config.js                        # Webpack aliases (modified)
  drizzle.config.ts                     # Drizzle Kit config
  src/
    lib/db/
      schema.ts                         # Overrides table definition
      index.ts                          # Neon DB connection
    components/
      SidekickBootstrap.tsx             # Provider + Panel wrapper
    app/
      layout.tsx                        # Modified to include SidekickBootstrap
      api/sidekick/[...action]/
        route.ts                        # Handler with Drizzle storage
    .sidekick/
      schema.json                       # App analysis output

Requirements

  • Next.js 14+ with App Router
  • Node.js 18+
  • Anthropic API key for AI generation
  • Neon (or any PostgreSQL) only when using --postgres

License

MIT