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

@capixjs/cli

v1.0.0

Published

CLI for the Capix framework

Readme

@capixjs/cli

CLI tools for the Capix framework. Scaffold projects, inspect capabilities, generate docs, and call capabilities directly from the terminal.

Install

npm install -g @capixjs/cli
# or use without installing:
npx capix <command>

Commands

capix new [name]

Scaffold a new Capix project with TypeScript, a context builder, and example capabilities.

capix new my-api
cd my-api
pnpm install && pnpm dev

Generated structure:

my-api/
├── src/
│   ├── capabilities.ts   # capability definitions
│   ├── context.ts        # buildContext, error definitions
│   └── server.ts         # server entry point
├── tsconfig.json
├── package.json
└── .cursor/rules         # Capix rules for AI editors

capix list (alias: ls)

List all registered capabilities with their HTTP routes and guard count.

capix list
capix list --config src/capabilities/index.ts

Example output:

Capabilities (6)

  users.getUser     GET     /users/:id       1 guard
  users.listUsers   GET     /users           public
  users.createUser  POST    /users           2 guards
  auth.login        POST    /auth/login      public
  auth.register     POST    /auth/register   public
  auth.me           GET     /auth/me         1 guard

capix show <capability>

Show full details for a single capability: input schema, output schema, intent, route, and guards.

capix show users.getUser

capix call <capability> [input]

Invoke a capability directly without a running server. Uses a minimal context (no auth, no database).

capix call users.listUsers
capix call users.getUser '{"id":"1"}'

capix dev [entry]

Start a development server with file watching. Restarts automatically on changes.

capix dev
capix dev src/server.ts

capix check

Validate the server configuration: duplicate routes, naming conflicts, missing schemas.

capix check
capix check --config src/capabilities/index.ts

capix docs

Generate Markdown API documentation for all capabilities.

capix docs                           # print to stdout
capix docs --output docs/api.md      # write to file
capix docs --config src/caps/index.ts --output api.md

capix generate (alias: g)

Generate scaffolding for new capabilities or groups.

capix generate capability users getUser
capix generate group payments

capix client

Generate a typed fetch client from your capabilities.

capix client --output src/client.ts

capix diff <config-a> <config-b>

Compare capabilities between two config files. Useful for reviewing API changes between branches.

capix diff src/capabilities.ts src/capabilities.v2.ts

capix ai-context

Generate a machine-readable context document for AI assistants.

capix ai-context --output .capix-context.json

capix sync-ai-context

Refresh .capix-context.json in place (alias for ai-context).


Common options

All commands accept:

  • --config <path> — path to capabilities file (default: src/capabilities.ts)
  • --help — show help for that command

.cursor/rules

New projects get a .cursor/rules file automatically. This configures Cursor and other AI editors with Capix framework rules — pattern enforcement, naming conventions, guard usage, and error definitions. Edit it to match your project conventions.

License

MIT