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

workos

v0.4.5

Published

The Official Workos CLI

Readme

workos

AI-powered CLI that automatically integrates WorkOS AuthKit into web applications.

Installation

# Run directly with npx (recommended)
npx workos

# Or install globally
npm install -g workos
workos

Features

  • 5 Framework Support: Next.js, React Router, TanStack Start, React SPA, Vanilla JS
  • AI-Powered: Uses Claude to intelligently adapt to your project structure
  • Security-First: Masks API keys, redacts from logs, saves to .env.local
  • Smart Detection: Auto-detects framework, package manager, router type
  • Live Documentation: Fetches latest SDK docs from WorkOS and GitHub
  • Full Integration: Creates routes, middleware, environment vars, and UI

What It Creates

Depending on your framework, the installer creates:

  • ✅ Authentication routes (callback, sign-in, sign-out)
  • ✅ Middleware for route protection
  • ✅ Environment variable configuration
  • ✅ SDK installation with correct package manager
  • ✅ UI components showing login status
  • ✅ User info display (name, email)

Credentials

Get your credentials from dashboard.workos.com:

  • API Key (sk_test_xxx or sk_live_xxx) - For server-side frameworks only
  • Client ID (client_xxx) - Required for all frameworks

Security: API keys are masked during input and redacted in logs.

CLI Options

workos [options] [command]

Commands:
  dashboard              Run with visual TUI dashboard (experimental)
  login                  Authenticate with WorkOS via Connect OAuth device flow
  logout                 Remove stored credentials
  install-skill          Install AuthKit skills to coding agents (Claude Code, Codex, etc.)
    --list, -l           List available skills without installing
    --skill, -s          Install specific skill(s)
    --agent, -a          Target agent(s): claude-code, codex, cursor, goose

Options:
  --direct, -D            Use your own Anthropic API key (bypass llm-gateway)
  --integration <name>    Framework: nextjs, react, react-router, tanstack-start, vanilla-js
  --redirect-uri <uri>    Custom redirect URI (defaults to framework convention)
  --homepage-url <url>    Custom homepage URL (defaults to http://localhost:{port})
  --install-dir <path>    Installation directory
  --no-validate           Skip post-installation validation (includes build check)
  --force-install         Force install packages even if peer dependency checks fail
  --debug                 Enable verbose logging

Environment Variables:
  WORKOS_TELEMETRY=false  Disable telemetry collection

Examples

# Interactive (recommended)
npx workos

# Specify framework
npx workos --integration react-router

# With visual dashboard (experimental)
npx workos dashboard

Authentication

The CLI uses WorkOS Connect OAuth device flow for authentication:

# Login (opens browser for authentication)
workos login

# Logout (clears stored credentials)
workos logout

Credentials are stored in ~/.workos/credentials.json. Access tokens are not persisted long-term for security - users re-authenticate when tokens expire.

How It Works

  1. Detects your framework and project structure
  2. Prompts for WorkOS credentials (API key masked)
  3. Auto-configures WorkOS dashboard (redirect URI, CORS, homepage URL)
  4. Fetches latest SDK documentation from workos.com
  5. Uses AI (Claude) to generate integration code
  6. Installs SDK with detected package manager
  7. Creates auth routes, middleware, and UI
  8. Configures environment variables securely

Telemetry

The installer collects anonymous usage telemetry to help improve the product:

  • Session outcome (success/error/cancelled)
  • Framework detected
  • Duration and step timing
  • Token usage (for capacity planning)

No code, credentials, or personal data is collected. Disable with:

WORKOS_TELEMETRY=false npx workos

Logs

Detailed logs (with redacted credentials) are saved to:

~/.workos/logs/workos-{timestamp}.log

Up to 10 session log files are retained. Use --debug flag for verbose terminal output.

Development

See DEVELOPMENT.md for development setup.

Build:

pnpm build

Run locally:

pnpm dev  # Watch mode
./dist/bin.js --help

License

MIT © WorkOS