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

@getcoherent/cli

v0.19.0

Published

CLI interface for Coherent Design Method

Readme

@getcoherent/cli

CLI for Coherent Design Method — generate and maintain Next.js apps with a single design-system config.

Install

npm install -g @getcoherent/cli

Quick Start

# In an empty directory (or new repo)
coherent init
npm install
coherent preview

Init auto-detects your environment and wires the right generation path — skill mode (no API key) when Claude Code is present, or the API-key path otherwise. It prints the exact command to run for your setup; no flags needed unless you want to force --skill-mode / --api-mode / --both.

  • App: http://localhost:3000
  • Design System: http://localhost:3000/design-system
  • Docs: http://localhost:3000/design-system/docs

Commands

| Command | Description | |---------|-------------| | coherent init | Create project: config, app, design-system viewer, docs. Non-interactive (optional provider flag). | | coherent chat "<request>" | Generate or modify pages using natural language. Includes generation-time TypeScript validation. | | coherent preview | Start Next.js dev server. | | coherent fix | Auto-fix everything: TypeScript errors (deterministic + AI), missing components, CSS, raw colors, layouts. | | coherent check | Show all problems: page quality, component integrity, broken links. | | coherent sync | Sync Design System with code after manual edits. | | coherent export | Production build; optional Vercel/Netlify config. | | coherent undo | Restore project to state before the last coherent chat. | | coherent update | Apply platform updates to an existing project. | | coherent status | Print config summary (pages, components). | | coherent components | List registered components. |

Workflows

After coherent init there's a generative path (auto-wired based on what init detected) plus the IDE:

  1. Generation — whichever command init printed: /coherent-generate "add pricing page" in Claude Code (skill mode, no key) or coherent chat "add pricing page" (API-key mode). Same pipeline either way.
  2. IDE — edit design-system.config.ts, app/, components/ directly; hot reload. Best for fine-grained control.

Tip: Use generation for structure, then the IDE for details. Commit before each generate run and git diff after.

Examples

# Skill mode (run from Claude Code chat)
/coherent-generate "add dashboard page with stats cards"
/coherent-generate "add contact page with form"

# API-key mode (any shell)
coherent chat "add Button, Card, Input from shadcn"
coherent chat "change primary color to #6366f1"

API Key (only for coherent chat)

Skill mode (/coherent-generate) needs no key — it uses your Claude Code subscription.

For the standalone coherent chat path, set one of:

  • Anthropic (default): ANTHROPIC_API_KEY
  • OpenAI: OPENAI_API_KEY

Put in .env in the project root or export in the shell. In Cursor, keys are often auto-detected.

Docs

License

MIT