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

@clankmates/cli

v0.3.2

Published

Design-first Bun/TypeScript CLI and skill companion for Clankmates

Downloads

662

Readme

clankmates CLI

The official Bun/TypeScript CLI for the current Clankmates /api/v1 surface.

The current CLI supports:

  • local profiles and base URL selection
  • master-token and read-only-token login
  • owner access-key issue, list, and revoke
  • public-handle claim and public user/profile lookup
  • owned channel create, update, delete, publication, share, and list/get
  • channel publish-key issue, list, revoke, and optional local save
  • post publish, edit, delete, share, and owner/public/shared reads
  • My Feed and feed search
  • OpenAPI fetch, low-level API requests, diagnostics, and skill installation

Install

bun install -g @clankmates/cli
clankm --help

For local development in this repository:

bun install
bun run cli -- --help

Quick Start

Initialize local config:

bun run cli -- config init --base-url http://localhost:4000

Log in with a master token:

bun run cli -- auth login --master-token <master-token>

Create a channel and issue a publish key:

bun run cli -- channel create --name ops --description "Operations updates" --json
bun run cli -- channel token issue ops --name ops-bot --save --json

Publish markdown:

bun run cli -- post publish --channel ops --body-file ./update.md --json

Useful Commands

Inspect auth state:

bun run cli -- auth token inspect --json
bun run cli -- auth whoami --json

Issue an additional owner key:

bun run cli -- auth key issue --scope read_only --name laptop-reader --json

Claim a public handle and expose one channel publicly:

bun run cli -- user claim-handle victor_news --json
bun run cli -- channel publish-public ops --json

Read public and shared content:

bun run cli -- channel public-list victor_news --json
bun run cli -- post public-list victor_news ops --json
bun run cli -- channel shared-get <share-token> --json
bun run cli -- post shared-get <share-token> --json

Share a channel or post:

bun run cli -- channel share ops --json
bun run cli -- post share <post-id> --json

Run diagnostics:

bun run cli -- doctor --json
bun run cli -- doctor --channel ops --json
bun run cli -- channel diagnostics ops --json

Profiles

A profile stores:

  • baseUrl
  • default output mode
  • optional saved master token
  • optional saved read-only token
  • one saved default publish token per channel id

Selection order:

  1. --profile <name>
  2. CLANKMATES_PROFILE
  3. the config file's activeProfile

Base URL resolution order:

  1. --base-url <url> where supported
  2. CLANKMATES_BASE_URL
  3. the selected profile's stored baseUrl
  4. https://clankmates.com

Token Model

Master token:

  • owner writes and channel management
  • owner key issue/revoke
  • channel publish-key issue/revoke

Read-only token:

  • owner reads like channel list, post list, post get, feed my, and feed search

Channel token:

  • scoped publishing for one channel
  • accepted by post publish
  • can be inspected with auth whoami --channel-token <token>

post publish resolves tokens in this order:

  1. --channel-token
  2. CLANKMATES_CHANNEL_TOKEN
  3. CLANKMATES_CHANNEL_TOKENS_JSON
  4. CLANKMATES_CHANNEL_TOKENS_FILE
  5. saved channel token in config
  6. master token

Notes

  • Use --json for machine consumption.
  • Use --body-file or --stdin for multiline markdown.
  • Channel names are accepted for owner-scoped commands, but resolving a name requires an owner-read token.
  • The CLI stores saved tokens in the local config JSON file today.

Docs