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

bluebubbles-cli

v0.1.6

Published

Curated BlueBubbles CLI organized around terminal-friendly resources

Readme

bluebubbles-cli

bluebubbles-cli is a Bun-first BlueBubbles CLI with a curated, resource-oriented command tree for terminal use.

It is not positioned as a full endpoint browser. The CLI keeps the common resource flows prominent, removes low-value surface area like fcm, mac, and web-only commands, and shows the API endpoint mapping in command help and docs.

Install

npm install -g bluebubbles-cli

From source:

bun install
bun run build
bun link

Development

bun run check
bun test
bun run test:commands
bun run build

Run from source:

bun run dev -- --help

Output controls:

bluebubbles contacts list
bluebubbles chats list -o wide
bluebubbles messages list --chat 'iMessage;+;chat123' -o wide
bluebubbles chats list -o json

Human-readable output (columnify) is the default:

NAME            PHONE             EMAIL
Alex Rivera     +1-555-0100       [email protected]
Taylor Kim      +1-555-0199       [email protected]

messages list uses the same default table style:

GUID                        FROM       TEXT                          AGE   CHAT
4b2f...e91                  me         hello from bluebubbles        2m    iMessage;+;chat123
9aa1...77c                  +1555...   sounds good, see you soon     8m    iMessage;+;chat123

messages list -o wide includes extra columns:

GUID                        FROM       TEXT                          AGE   CHAT                     FROM_ME   ATTACHMENTS   CREATED_AT              CHAT_NAME
4b2f...e91                  me         hello from bluebubbles        2m    iMessage;+;chat123      yes       0             2026-04-12 21:08:14     Weekend Plans
9aa1...77c                  +1555...   sounds good, see you soon     8m    iMessage;+;chat123      no        1             2026-04-12 21:02:07     Weekend Plans

JSON output is available with -o json or --json:

{
  "ok": true,
  "data": [
    {
      "displayName": "Alex Rivera",
      "phoneNumbers": [{ "address": "+1-555-0100" }],
      "emails": [{ "address": "[email protected]" }]
    }
  ]
}

For messages:

bluebubbles messages list --chat 'iMessage;+;chat123'
bluebubbles messages list --chat 'iMessage;+;chat123' -o wide
bluebubbles messages list --chat 'iMessage;+;chat123' --json

-o wide affects table output only. JSON output remains the full payload (-o json / --json).

Pagination defaults are conservative for message-heavy commands:

  • bluebubbles messages list defaults to --limit 50
  • bluebubbles chats messages <guid> defaults to --limit 50

Query and filter examples

Get all messages for one conversation in pages:

bluebubbles messages list --chat 'iMessage;+;chat123' --limit 50 --offset 0 --json
bluebubbles messages list --chat 'iMessage;+;chat123' --limit 50 --offset 50 --json
bluebubbles messages list --chat 'iMessage;+;chat123' --limit 50 --offset 100 --json

Filter by date window (epoch seconds):

bluebubbles messages list --chat 'iMessage;+;chat123' --after 1710000000 --before 1710086400 --json

Common filters:

bluebubbles messages list --chat 'iMessage;+;chat123' --text 'invoice' --limit 50 --json
bluebubbles messages list --chat 'iMessage;+;chat123' --from '+15551234567' --not-from-me --json
bluebubbles messages list --chat 'iMessage;+;chat123' --from-me --has-attachments --json

Common filters are applied client-side to the returned page. Use --where for raw server-side filtering.

Advanced filtering via raw API where clauses:

bluebubbles messages list \
  --where '[{"statement":"message.text LIKE :q","args":{"q":"%hello%"}}]' \
  --limit 50 \
  --json

Conversation endpoint alternative:

bluebubbles chats messages 'iMessage;+;chat123' --limit 50 --offset 0 --json
bluebubbles chats messages 'iMessage;+;chat123' --after 1710000000 --before 1710086400 --json

Command shape

bluebubbles ping
bluebubbles server info
bluebubbles server open
bluebubbles server status
bluebubbles server logs
bluebubbles server logs --source api
bluebubbles chats list
bluebubbles messages send --chat <guid> --message "hello"
bluebubbles messages schedule list
bluebubbles handle availability <address>
bluebubbles attachment download <guid>
bluebubbles contact query --address [email protected]
bluebubbles icloud account

Verbose diagnostics:

bluebubbles messages list --chat 'iMessage;+;chat123' --verbose

--verbose prints request/response diagnostics to stderr. You can also set BLUEBUBBLES_VERBOSE=1.

Request timeout defaults to 10000ms and can be overridden with BLUEBUBBLES_REQUEST_TIMEOUT_MS.

Configuration

Persist config:

bluebubbles config set baseUrl http://localhost:1234
bluebubbles config set password your-server-password

Or use environment variables:

export BLUEBUBBLES_BASE_URL=http://localhost:1234
export BLUEBUBBLES_PASSWORD=your-server-password

If your password contains shell-special characters (for example #), quote it:

export BLUEBUBBLES_PASSWORD='your#server#password'

Docs

Docs are served via Scalar and deployed to GitHub Pages.

bun run docs:dev
bun run docs:validate

GitHub Pages workflow publishes scalar/index.html at:

https://anmho.github.io/bluebubbles-cli/

test:commands is local-only by design. It exercises all registered CLI commands and can skip unavailable API/local prerequisites in tolerant mode. It uses the same auth sources as normal CLI runs (BLUEBUBBLES_* env vars or persisted bluebubbles config values).

The API Reference tab renders from docs/openapi.yaml, which is a pinned copy of the official BlueBubbles OpenAPI source:

https://raw.githubusercontent.com/Jish2/bluebubbles-sdk/main/openapi.yaml