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

wspaces-claude

v1.1.0

Published

WSpace integration for Claude Code — automate issue management, projects, and documents via GraphQL API

Readme

WSpaces Claude Integration

Integrate WSpace with Claude Code — automate issue management, projects, and documents via GraphQL API.

Installation

Prerequisites

  • Claude Code (npm install -g @anthropic-ai/claude-code)
  • WSpace API Key (from WSpace Settings > Apps)

Install via npm

npx wspaces-claude

Or install globally:

npm install -g wspaces-claude
wspace-install

This installs two slash commands into Claude Code:

  • /wspace-setup — Set up WSpace integration for the current project
  • /wspace-api — Interact with the WSpace GraphQL API

Usage

1. Project setup

Open Claude Code in your project with the API key:

cd my-project
export WSPACE_API_KEY="sk_live_your_key_here" && claude

Run setup:

/wspace-setup

The setup wizard will:

  • Use the WSPACE_API_KEY from env (or prompt for one)
  • Connect and fetch workspace context (teams, workflows, labels, members)
  • Auto-detect bot identity via me query
  • Generate CLAUDE.md with project-specific defaults
  • Optionally enable auto-loop (5m / 10m / 30m)

No .env file is created. The API key is set per terminal session to support multiple bot instances.

2. Multiple bot instances

Run multiple Claude Code instances on the same project, each with a different bot:

# Terminal 1
export WSPACE_API_KEY="sk_live_bot1_key" && claude

# Terminal 2
export WSPACE_API_KEY="sk_live_bot2_key" && claude

Each instance auto-detects its own bot identity via me query. No conflicts — each bot only processes issues assigned to itself.

3. WSpace API commands

/wspace-api context                          # View workspace info + scopes
/wspace-api workspaces                       # List all workspaces
/wspace-api issues list                      # List issues
/wspace-api issues get --team IVT --code 3   # Get issue details
/wspace-api issues create --title "Bug fix"  # Create a new issue
/wspace-api issues update --id <id> --priority HIGH
/wspace-api projects list                    # List projects
/wspace-api documents list                   # List documents

Once set up, you don't need to pass --workspace or --team — defaults are loaded from CLAUDE.md.

4. Auto-implement workflow

Enable auto-loop so the bot automatically processes assigned issues:

/loop 5m /wspace-api issues list

Or select an interval during /wspace-setup.

Flow

User assigns issue to Bot
  -> Backlog/Todo
  -> [Bot picks up] -> In Progress (comments implementation plan)
  -> [User responds via comment]
    -> approve       -> Bot implements  -> In Review (comments results)
    -> analyze more  -> Bot researches  -> In Progress (comments findings)
    -> feedback      -> Bot revises     -> In Progress (comments new plan)
    -> reject        -> Bot confirms    -> Backlog
    -> question      -> Bot answers     -> In Progress
  -> [User reviews In Review & completes manually]

How it works

  1. User creates an issue on WSpace and assigns it to the bot
  2. Bot picks it up — moves to In Progress, analyzes the task, comments the implementation plan
  3. User reviews the plan — responds via comment on the issue:
    • "ok, go ahead" -> bot implements the code
    • "analyze section X further" -> bot does more research
    • "revise the plan" -> bot updates the approach
  4. Bot finishes implementation -> comments results + moves to In Review
  5. User reviews and completes manually

The bot only processes issues explicitly assigned to it. It never self-assigns issues. Comment intent is understood via NLU — no keyword matching.

File structure

After setup, your project will contain:

my-project/
  CLAUDE.md         # WSpace config defaults (auto-generated)

Global Claude Code commands:

~/.claude/commands/
  wspace-api.md     # /wspace-api command
  wspace-setup.md   # /wspace-setup command

Setting up on another machine

npm install -g @anthropic-ai/claude-code
npx wspaces-claude

# Then in your project
export WSPACE_API_KEY="sk_live_your_key" && claude
/wspace-setup

API Reference

Endpoint

  • https://api.wspaces.app/graphql

Authentication

Header: x-api-key: <API_KEY>

Scopes

| Scope | Description | |-------|-------------| | ISSUES_READ / WRITE | Read/write issues | | PROJECTS_READ / WRITE | Read/write projects | | DOCUMENTS_READ / WRITE | Read/write documents | | TEAMS_READ | Read teams | | MEMBERS_READ | Read members | | APPOINTMENTS_READ / WRITE | Read/write appointments |

Priority levels

NO_PRIORITY | URGENT | HIGH | MEDIUM | LOW