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

sapient-ai

v0.2.0

Published

CLI for Sapient design-system presets and registry components

Readme

sapient-ai CLI

Thin wrapper around shadcn for Sapient registry usage.

Commands

  • sapient-ai init
  • sapient-ai init --preset <handle-or-id> --template next
  • sapient-ai add <component>
  • sapient-ai add-icons <design-system|lucide|remix>
  • sapient-ai shadcn <args...>

Behavior

  • init runs Sapient's setup flow, can offer a Design System picker when no preset is specified, then initializes the repo and adds @sapient registry to components.json.
  • init --preset <handle-or-id> fetches a saved design-system preset and writes Sapient artifact files into .sapient/, including design-system.md, sapient-design-system-config.json, tokens.json, and sapient-components.json.
  • The CLI also generates a sapient-theme.css file next to the app's globals.css file and imports it automatically so the runtime theme matches the exported Sapient preset.
  • The CLI installs a small Sapient foundation pack by default, then adds any additional registry components inferred from the preset.
  • When the preset references supported Sapient registry items, the CLI also runs shadcn add for those components automatically.
  • When the preset uses lucide or remix, the CLI also installs the matching icon package automatically.
  • add-icons <library> updates local Sapient config and installs the matching icon package for an existing project.
  • add button is rewritten to add @sapient/button.
  • Pass fully-qualified names (@scope/name) unchanged.
  • Internally, init still uses shadcn for project wiring, but it now supplies Sapient-owned defaults so the user does not have to answer the underlying shadcn prompts.

Local test

npm pack ./packages/cli
 npx --yes ./sapient-ai-0.2.0.tgz --help

Registry URL

Default: https://sapient-playground-design-system.vercel.app/r/{name}.json

Override:

SAPIENT_REGISTRY_URL="https://your-domain/r/{name}.json" npx sapient-ai@latest init

Preset API URL

Default: https://sapient-playground-design-system.vercel.app/api/presets

Override for local development:

SAPIENT_PRESET_BASE_URL="http://localhost:3002/api/presets" npx sapient-ai@latest init --preset ferrari --template next