1.0.7 • Published 4 months ago

bluesky-cli v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

šŸš€ 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!

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago