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

@withgoogle/stitch-sdk

v0.1.5

Published

cli for the stitch design platform

Downloads

635

Readme

stitch-sdk

npm version license

<one-line description of what stitch-sdk does>

Install

Run it without installing:

npx stitch-sdk --help

Or install globally:

npm install -g stitch-sdk
stitch-sdk --help

Usage

stitch-sdk [options] [args]

Options:
  -h, --help     Show help and exit
  -v, --version  Show version and exit

Implementing your logic

All of the package plumbing is done. The only file you need to edit is bin/cli.js — look for the marked TODO block:

// TODO: YOUR IMPLEMENTATION GOES HERE.
// `args` is an array of the CLI arguments (everything after the command).
// Return 0 on success, or a non-zero number to signal an error.

--help and --version already work, and arguments are parsed for you.

The preinstall hook

This package includes an example lifecycle hook at scripts/preinstall.js, wired up in package.json:

"scripts": {
  "preinstall": "node scripts/preinstall.js"
}

npm runs preinstall automatically on every npm install, before dependencies are installed — both while you develop the package and when someone installs it as a dependency. The example here is deliberately benign: it warns (without failing) if the user's Node is older than engines.node, and prints a short notice.

Output visibility: npm shows lifecycle-script output when you run npm install inside this package (development), but hides it when stitch-sdk is installed as someone's dependency — unless they pass npm install --foreground-scripts. The hook still runs; only its console output is suppressed. (One more reason a preinstall hook must never be essential to how the package works.)

⚠️ Security: preinstall / install / postinstall scripts execute arbitrary code on the installing machine and are a known supply-chain attack surface. Keep them minimal and transparent — never download remote code, phone home, or touch files outside the package. Security-conscious users may install with npm install --ignore-scripts, so nothing in a lifecycle hook should be load-bearing for the package to function.

Don't want it? Delete scripts/preinstall.js and remove the "preinstall" entry from package.json.

Development

npm install     # also triggers the preinstall hook, so you can see it run
npm test        # runs the smoke tests via `node --test`
npm start       # runs ./bin/cli.js

Publishing

See PUBLISHING.md for step-by-step release instructions.

Note: the published tarball is controlled by the files whitelist in package.json (so test/ and dev files are never shipped). Run npm pack --dry-run to preview exactly what will be published.

License

MIT © <YOUR NAME>