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

@squadai/cli

v0.4.1

Published

Squad AI CLI - Product strategy management for AI agents and humans

Readme

@squadai/cli

Command-line interface for Squad AI — work the evidence chain (signals, insights, actions, goals, decision briefs) from your terminal or AI agent workflows. The command surface mirrors the Squad MCP server's tools, so the workflow is the same whichever you use.

See the full documentation for detailed usage guides and examples.

Install

npm install -g @squadai/cli

Requires Node.js 22+.

Platform compatibility

This CLI targets the new Squad platform (v2). It is not compatible with the legacy Squad v1 platform. If your workspace is still on Squad v1, stay on the previous CLI release:

npm install -g @squadai/[email protected]

Quick start

squad auth login          # Opens browser for OAuth2 login
squad workspace list      # List available workspaces
squad workspace select <orgId> <workspaceId>
squad workspace overview  # Orient: mission, goals, activity, open work

Commands

| Command | Description | |---------|-------------| | squad auth login\|logout\|status | Authenticate via OAuth2 PKCE | | squad workspace list\|select\|overview\|update\|members | Manage and orient in workspaces | | squad signal list\|similar\|ingest\|dismiss | Browse and capture feedback signals | | squad cluster list\|get | Recurring themes across signals | | squad insight list\|update | Distilled insights (AI-derived) | | squad action list\|context\|status\|update | Work the action queue | | squad goal list\|create\|update | Strategic goals | | squad research list\|create | Research questions (knowledge gaps) | | squad document list\|create\|update | Knowledge documents | | squad brief list\|generate\|status | Decision briefs (one-pagers) | | squad integration list | Connected feedback sources | | squad activity | Workspace change feed | | squad search <query> | Keyword search across the workspace | | squad get <id> | Fetch any entity by display ID (e.g. AC-12) or UUID |

Entities are addressed by display ID: SI signal, IN insight, AC action, GL goal, OP decision brief, DC document, RQ research question, CL cluster. All commands support --format json|table.

Configuration

Config is stored in ~/.config/squad/ (respects XDG_CONFIG_HOME):

  • auth.json — OAuth session and cached service JWTs
  • client.json — Registered OAuth client IDs
  • workspace.json — Selected workspace per environment

squad auth login runs an OAuth 2.1 PKCE flow against PropelAuth. The resulting opaque token is exchanged with the platform for a short-lived service JWT (scoped to the selected org), which is sent with every GraphQL request together with an x-workspace-id header.

Override auth with SQUAD_TOKEN (a service JWT). SQUAD_GRAPHQL_URL overrides the GraphQL endpoint.

Development

yarn install
yarn build        # Build to dist/cli.js (tsup)
yarn dev          # Watch mode
yarn typecheck    # tsc --noEmit
yarn test         # vitest

Lint and format:

yarn format       # Check (Biome)
yarn format:fix   # Auto-fix
yarn knip         # Dead code detection (Knip)

The typed GraphQL client is generated from schema.graphql (a committed snapshot of the platform schema) and the operations in src/graphql/**/*.graphql:

yarn codegen       # Regenerate src/gql/
yarn codegen:check # Fail if src/gql/ is stale (run in CI)

Refresh schema.graphql from the platform API, or point SQUAD_GRAPHQL_URL at a live endpoint, then rerun yarn codegen.

Smoke test

./scripts/smoke-test.sh <org-id> <workspace-id>

Architecture

src/
├── cli.ts              # Entry point (Commander.js)
├── commands/           # One module per entity (signal, insight, action, ...)
├── graphql/            # Named GraphQL operations (*.graphql)
├── gql/                # Generated typed documents (do not edit)
└── lib/
    ├── auth/           # OAuth2 PKCE flow, token store, JWT exchange
    ├── graphql/        # execute() transport (Bearer + x-workspace-id)
    ├── config.ts       # Environment config
    ├── context.ts      # Workspace directory, selection, JWT resolution
    ├── display-id.ts   # Display-ID parsing/formatting
    ├── errors.ts       # Error handling
    ├── format.ts       # Deep links into the app
    ├── ingest.ts       # REST signal ingest client
    └── output.ts       # JSON/table formatting

License

MIT