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

@sanring/cli

v0.6.1

Published

CLI for adding Sanring UI components to your Angular project

Downloads

1,671

Readme

@sanring/cli

CLI for adding Sanring UI components to your Angular project.

Sanring UI is a collection of open-source Angular components built on top of @angular/aria and @angular/cdk, styled with Tailwind CSS. Components are copied directly into your project — you own the code.

Links


Usage

No installation required. Run with npx:

npx @sanring/cli@latest init
npx @sanring/cli@latest add accordion

Commands

init

Initialize Sanring UI in your Angular project. Sets up sanring.config.json, writes src/sanring-theme.css (the --sanring-* design tokens every component reads — see Theming), and installs base dependencies.

npx @sanring/cli@latest init

Add the generated stylesheet to your global CSS once:

@import './sanring-theme.css';

Options:

| Flag | Description | Default | |---|---|---| | -p, --path <path> | Component destination path | src/app/components/ui | | -y, --yes | Accept all defaults | false | | -f, --force | Overwrite an existing theme file with the defaults | false | | --registry <source> | Custom registry (URL or local path) | — |


add <components...>

Copy one or more components into your project and install their peer dependencies. If a component depends on another (e.g. tag depends on badge), the dependency is added automatically and labeled (dependency) in the output — no need to run add again.

npx @sanring/cli@latest add accordion
npx @sanring/cli@latest add button dialog
npx @sanring/cli@latest add tag   # also adds badge automatically

Options:

| Flag | Description | |---|---| | -p, --path <path> | Override destination path | | -f, --force | Overwrite existing files after confirmation | | -y, --yes | Skip overwrite confirmation when using --force | | --registry <source> | Custom registry (URL or local path) | | --dry-run | Preview changes without writing files |


diff [components...]

Sanring UI has no version concept — components are copied source, not npm packages — so there's no automatic way to know if your local copy has drifted from the registry. diff compares your installed files (and sanring-theme.css) against the current registry and prints what changed, so you can see whether a file was customized locally, updated upstream, or both before running add --force.

npx @sanring/cli@latest diff            # check everything installed
npx @sanring/cli@latest diff accordion  # check just one component

Options:

| Flag | Description | |---|---| | -p, --path <path> | Override destination path | | --registry <source> | Custom registry (URL or local path) |


list

List all available components.

npx @sanring/cli@latest list

Requirements

  • Node.js >= 18
  • Angular >= 22
  • Tailwind CSS configured in your project

License

MIT