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

@whilst/cli

v1.1.0

Published

CLI tool for managing Whilst documents and folders

Readme

@whilst/cli

Command-line interface for Whilst — manage documents, folders, and search your knowledge base.

Quick Start

npm install -g @whilst/cli

Or run directly with npx:

npx @whilst/cli

Set your API key:

export WHILST_API_KEY=whl_live_your_key_here

Get your API key from your Whilst workspace settings under "API Keys".

Verify the connection:

whilst status

Commands

| Command | Description | |---------|-------------| | whilst docs list | List documents | | whilst docs get <id> | Get a document | | whilst docs create | Create a document | | whilst docs update <id> | Update a document | | whilst docs delete <id> --yes | Delete a document | | whilst docs move <id> | Move a document to a folder | | whilst folders list | List folders | | whilst folders get <id> | Get folder details | | whilst folders create <name> | Create a folder | | whilst folders tree | View folder hierarchy | | whilst search <query> | Search documents | | whilst web-search <query> | Search the web | | whilst bulk move | Move multiple documents | | whilst status | Check connection |

Run whilst --help for full usage details.

Output Formats

whilst docs list              # JSON (default)
whilst docs list -t           # Human-readable table
whilst docs list -q           # Quiet (IDs only)
whilst docs list --fields id,title  # Specific fields

Piping & Scripting

# Create a document from a file
cat report.md | whilst docs create --folder "Reports"

# Chain commands
FOLDER_ID=$(whilst folders create "Notes" -q)
whilst docs create --content "# Hello" --folder "$FOLDER_ID"

# JSON input mode
echo '{"content":"# Doc","folder":"Eng"}' | whilst docs create --json

Environment Variables

| Variable | Description | |----------|-------------| | WHILST_API_KEY | Your API key (required) | | WHILST_ENDPOINT | Custom API endpoint (optional) | | WHILST_CONFIRM | Set to true to skip --yes on deletions | | WHILST_VERBOSE | Set to 1 for verbose logging |

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success | | 2 | Usage error | | 3 | Authentication error | | 4 | Not found | | 5 | Permission denied | | 6 | Validation error | | 7 | Network error |

License

MIT