Package Exports
- broadcast-social
- broadcast-social/dist/cli.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (broadcast-social) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🐝 bsocial (broadcast social)
A simple CLI tool to post to multiple social media platforms from a markdown file.
Features
- Post to Mastodon and Bluesky simultaneously
- Simple markdown file input
- Environment-based configuration
- Dry-run mode for testing
- Input validation and error handling
Installation
# Install globally
npm install -g broadcast-social
# Or use with npx
npx bsocial -f your-post.mdConfiguration
Copy
.env.exampleto.env:cp .env.example .envUpdate
.envwith your API credentials:# Mastodon Configuration MASTODON_ACCESS_TOKEN=your_mastodon_access_token MASTODON_API_URL=https://mastodon.social/api/v1 # Bluesky Configuration BLUESKY_IDENTIFIER=your_handle.bsky.social BLUESKY_PASSWORD=your_app_password
Usage
# Basic usage
bsocial -f path/to/your-post.md
# Dry run (validate without posting)
bsocial -f path/to/your-post.md --dry-run
# Show help
bsocial --helpPost Format
Create a markdown file with your post content:
# This is a test post
Hello world! This post will be published to both Mastodon and Bluesky.
#hashtag #testDevelopment
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build - Run tests:
npm test
License
MIT
Note
Agentic Development involved in produciton of this code.