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

bluesky-cli

v1.0.7

Published

![npm version](https://img.shields.io/npm/v/bluesky-cli) ![npm downloads](https://img.shields.io/npm/dm/bluesky-cli) ![license](https://img.shields.io/npm/l/bluesky-cli) ![GitHub stars](https://img.shields.io/github/stars/gauravfs-14/bluesky-cli) ![GitHub

Readme

🚀 Bluesky CLI

npm version npm downloads license GitHub stars GitHub issues

Bluesky CLI now offers two modes:

Features

Search Mode

  • Authenticate using your Bluesky handle and App Password.
  • Search posts by entering keyword(s) and number of posts to fetch.
  • Results are saved as JSON (posts.json) and CSV (posts.csv).

Firehose Mode

  • Stream live posts from the Bluesky Jetstream API.
  • Filter posts using comma-separated keywords.
    • New: If a keyword contains an underscore (e.g., bike_commute), underscores are replaced with spaces so that the tool filters for the exact phrase (i.e. "bike commute").
  • Captured posts are stored in an SQLite database (bluesky_posts.db).

⚙️ Prerequisites

  • Node.js & NPM installed.
  • Valid Bluesky account credentials.
  • SQLite support (automatically handled via dependencies).

📥 Installation

Install the CLI globally via NPM:

npm install -g bluesky-cli

🛠 Usage

Navigate to the folder you want to save the response to. And then open a terminal window there.

Search Mode

Run the CLI tool:

bluesky-cli search

📝 Step-by-Step Walkthrough

Once you run the command, the CLI will prompt you for: 1️⃣ Bluesky Handle & App Password (for authentication)
2️⃣ Search Terms (comma-separated keywords)
3️⃣ Number of Posts to Fetch
4️⃣ Date Range (Start & End date in YYYY-MM-DD format)
5️⃣ Sorting Order (latest or top)
6️⃣ File Name (for saving results)
7️⃣ Generate HTML Output? (Yes/No)

🔍 Example Usage

$ bluesky-cli search
✔ Enter your Bluesky handle: yourname.bsky.social
✔ Enter your Bluesky App Password:
✔ Enter search terms: AI, Machine Learning
✔ How many posts do you want to fetch? 10

📂 Output Files

  • bluesky_posts.json → JSON file containing search results.
  • bluesky_posts.csv → CSV file displaying posts (if selected).

Firehose Mode

Run the CLI tool:

bluesky-cli firehose

📝 Step-by-Step Walkthrough

Once you run the command, the CLI will prompt you for: 1️⃣ Bluesky Handle & App Password (for authentication)
2️⃣ Keywords (comma-separated keywords to filter posts)
3️⃣ Database File Name (for storing posts)

🔍 Example Usage

$ bluesky-cli firehose
✔ Enter keywords: AI, Machine_Learning

📂 Output Files

  • bluesky_firehose.db → SQLite database file containing captured posts.

⚠️ Notes

  • If authentication fails, ensure you use the correct handle and App Password.
  • Ensure the date format is correct (YYYY-MM-DD).
  • Sorting order options: latest (newest posts first) or top (most engaged posts).

🔄 Updating the Package

If you have installed bluesky-cli globally and a new version is released, update it using:

npm update -g bluesky-cli

📜 License

This project is licensed under the MIT License.


🤝 Contributing

We welcome contributions! If you'd like to contribute, feel free to submit issues or pull requests on the GitHub Repository. 🚀

💡 Suggestions? Create an issue or start a discussion!


⭐ Support & Feedback

If you like this project, don't forget to ⭐ star the repository on GitHub!