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

stitch-design-cli

v0.1.3

Published

Agent-first CLI + skill for Google's official Stitch SDK

Downloads

117

Readme

stitch-design-cli

Agent-first CLI for Google's official Stitch SDK.

This package is meant for the workflow where active MCP wiring is overkill, but a stable local command surface is still useful for agents and operators.

Why this exists

Google Stitch officially exposes:

  • a remote MCP server
  • an official JavaScript SDK, @google/stitch-sdk

What it does not currently expose is a standalone generic local CLI with:

  • explicit auth setup
  • predictable JSON envelopes
  • stderr/stdout discipline for agents
  • a small command surface for common project and screen workflows

This package fills that gap without leaving the official platform surface.

Install

npm install -g stitch-design-cli

Or run it without installing:

npx -y stitch-design-cli doctor --json

Auth

The CLI supports both auth modes exposed by the official Stitch SDK:

  • API key
  • OAuth access token plus project id

Save a key locally:

stitch auth set

Pipe a key from stdin:

printf '%s' "$STITCH_API_KEY" | stitch auth set --stdin

Or use env directly:

export STITCH_API_KEY=...
stitch doctor --json

Save OAuth locally:

stitch auth set --access-token "$STITCH_ACCESS_TOKEN" --project-id "$GOOGLE_CLOUD_PROJECT"

Or use OAuth env directly:

export STITCH_ACCESS_TOKEN=...
export GOOGLE_CLOUD_PROJECT=...
stitch doctor --json

If tool list works but project list fails with AUTH_FAILED, the configured credentials reached Stitch but were rejected for project access. In that case, rotate the API key or switch to OAuth.

Optional env/config knobs:

  • STITCH_API_KEY
  • STITCH_HOST
  • STITCH_TIMEOUT_MS
  • STITCH_ACCESS_TOKEN
  • GOOGLE_CLOUD_PROJECT

Common commands

stitch auth status --json
stitch doctor --json
stitch tool list --json
stitch project list --json
stitch project create --title "Design Sandbox" --json
stitch project get <project-id> --json
stitch screen list --project-id <project-id> --json
stitch screen get --project-id <project-id> --screen-id <screen-id> --include-image --json
stitch screen get --project-id <project-id> --screen-id <screen-id-a> --screen-id <screen-id-b> --include-image --include-html --json
stitch screen generate --project-id <project-id> --prompt "A landing page for a healthcare startup" --device-type DESKTOP --include-image --json
stitch screen edit --project-id <project-id> --screen-id <screen-id> --prompt "Make the hero more editorial" --json
stitch screen variants --project-id <project-id> --screen-id <screen-id> --prompt "Explore three lighter brand directions" --variant-count 3 --creative-range EXPLORE --aspect COLOR_SCHEME --aspect LAYOUT --json

Design notes

  • project get calls the official get_project tool directly.
  • screen get can optionally include HTML and screenshot artifact URLs, and accepts repeated --screen-id flags for batch retrieval.
  • screen edit and screen variants accept repeated --screen-id flags or comma-separated values.
  • screen variants now returns explicit follow-up screen IDs plus a ready-to-run screen get command, which is useful when project inventory lags behind fresh variants.
  • v1 intentionally stops before design-system and upload flows.

Contract

Stable machine-readable behavior is documented in docs/CONTRACT_V1.md.

Release hygiene

  • CI workflow: .github/workflows/ci.yml
  • publish workflow: .github/workflows/publish.yml
  • trusted publishing notes: stitch-trusted-publishing-notes.md