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

@elizaos/plugin-bluesky-root

v2.0.0-alpha.1

Published

BlueSky plugin for elizaOS - A comprehensive AT Protocol client for social interactions on BlueSky.

Readme

@elizaos/plugin-bluesky

BlueSky plugin for elizaOS - A comprehensive AT Protocol client for social interactions on BlueSky.

Overview

This plugin provides BlueSky integration for elizaOS agents, enabling:

  • Posting: Create, delete, like, and repost posts
  • Direct Messaging: Send and receive direct messages
  • Notifications: Monitor and respond to mentions, follows, likes, and reposts
  • Profile Management: Access user profiles and timelines
  • Automated Posting: Schedule and automate post creation

Multi-Language Support

This plugin is implemented in three languages with feature parity:

| Language | Directory | Package Name | | ---------- | ------------- | ------------------------- | | TypeScript | typescript/ | @elizaos/plugin-bluesky | | Python | python/ | elizaos-plugin-bluesky | | Rust | rust/ | elizaos-plugin-bluesky |

Installation

TypeScript/JavaScript

npm install @elizaos/plugin-bluesky
# or
bun add @elizaos/plugin-bluesky

Python

pip install elizaos-plugin-bluesky

Rust

Add to your Cargo.toml:

[dependencies]
elizaos-plugin-bluesky = "1.0.0"

Configuration

Environment Variables

Required:

  • BLUESKY_HANDLE: Your BlueSky handle (e.g., user.bsky.social)
  • BLUESKY_PASSWORD: Your app password (generate at https://bsky.app/settings/app-passwords)

Optional: | Variable | Description | Default | |----------|-------------|---------| | BLUESKY_SERVICE | BlueSky service URL | https://bsky.social | | BLUESKY_DRY_RUN | Simulate operations without executing | false | | BLUESKY_POLL_INTERVAL | Notification polling interval (seconds) | 60 | | BLUESKY_ENABLE_POSTING | Enable automated posting | true | | BLUESKY_ENABLE_DMS | Enable direct messaging | true | | BLUESKY_POST_INTERVAL_MIN | Minimum post interval (seconds) | 1800 | | BLUESKY_POST_INTERVAL_MAX | Maximum post interval (seconds) | 3600 | | BLUESKY_ENABLE_ACTION_PROCESSING | Enable action processing | true | | BLUESKY_ACTION_INTERVAL | Action processing interval (seconds) | 120 | | BLUESKY_POST_IMMEDIATELY | Post immediately on startup | false | | BLUESKY_MAX_ACTIONS_PROCESSING | Max actions per batch | 5 |

Quick Start

TypeScript

import { blueSkyPlugin } from "@elizaos/plugin-bluesky";

// Add to your elizaOS agent
const agent = createAgent({
  plugins: [blueSkyPlugin],
});

// Or use the client directly
import { BlueSkyClient, validateBlueSkyConfig } from "@elizaos/plugin-bluesky";

const client = new BlueSkyClient({
  service: "https://bsky.social",
  handle: "your-handle.bsky.social",
  password: "your-app-password",
});

await client.authenticate();
const post = await client.sendPost({ content: { text: "Hello BlueSky!" } });

Python

from elizaos_plugin_bluesky import BlueSkyClient, BlueSkyConfig

config = BlueSkyConfig.from_env()
async with BlueSkyClient(config) as client:
    await client.authenticate()

    from elizaos_plugin_bluesky import CreatePostRequest, CreatePostContent
    request = CreatePostRequest(content=CreatePostContent(text="Hello from Python!"))
    post = await client.send_post(request)

Rust

use elizaos_plugin_bluesky::{BlueSkyClient, BlueSkyConfig, CreatePostRequest};

let config = BlueSkyConfig::from_env()?;
let client = BlueSkyClient::new(config)?;

client.authenticate().await?;
let post = client.send_post(CreatePostRequest::new("Hello from Rust!")).await?;

Features

Posting

// Create a post
const post = await client.sendPost({
  content: { text: "Hello BlueSky!" },
});

// Reply to a post
const reply = await client.sendPost({
  content: { text: "This is a reply!" },
  replyTo: { uri: post.uri, cid: post.cid },
});

// Like a post
await client.likePost(post.uri, post.cid);

// Repost
await client.repost(post.uri, post.cid);

// Delete a post
await client.deletePost(post.uri);

Direct Messages

// Get conversations
const { conversations } = await client.getConversations();

// Get messages from a conversation
const { messages } = await client.getMessages(convoId);

// Send a message
const message = await client.sendMessage({
  convoId: "conversation-id",
  message: { text: "Hello!" },
});

Notifications

// Get notifications
const { notifications } = await client.getNotifications(50);

// Mark as read
await client.updateSeenNotifications();

Timeline

// Get timeline
const timeline = await client.getTimeline({ limit: 50 });

for (const item of timeline.feed) {
  console.log(`@${item.post.author.handle}: ${item.post.record.text}`);
}

Profiles

// Get a profile
const profile = await client.getProfile("user.bsky.social");
console.log(`${profile.displayName} - ${profile.followersCount} followers`);

Events

The plugin emits the following events for elizaOS integration:

| Event | Description | | -------------------------- | ------------------------------- | | bluesky.mention_received | Agent was mentioned in a post | | bluesky.follow_received | Agent received a new follower | | bluesky.like_received | Agent's post was liked | | bluesky.repost_received | Agent's post was reposted | | bluesky.quote_received | Agent's post was quoted | | bluesky.should_respond | Trigger for response generation | | bluesky.create_post | Trigger for automated posting |

Development

TypeScript

cd typescript
bun install
bun run build
npx vitest

Python

cd python
pip install -e ".[dev]"
pytest
mypy elizaos_plugin_bluesky
ruff check .

Rust

cd rust
cargo build
cargo test
cargo clippy

Architecture

plugin-bluesky/
├── typescript/           # TypeScript implementation
│   ├── index.ts         # Main plugin export
│   ├── client.ts        # BlueSky API client
│   ├── types/           # Type definitions
│   ├── services/        # Service implementations
│   ├── managers/        # Agent manager
│   └── utils/           # Configuration utilities
├── python/              # Python implementation
│   ├── elizaos_plugin_bluesky/
│   │   ├── __init__.py  # Package exports
│   │   ├── client.py    # BlueSky API client
│   │   ├── config.py    # Configuration
│   │   ├── types.py     # Type definitions
│   │   └── errors.py    # Error types
│   └── tests/           # Test suite
├── rust/                # Rust implementation
│   ├── src/
│   │   ├── lib.rs       # Library root
│   │   ├── client.rs    # BlueSky API client
│   │   ├── config.rs    # Configuration
│   │   ├── types.rs     # Type definitions
│   │   └── error.rs     # Error types
│   └── tests/           # Integration tests
└── package.json         # Root package configuration

License

MIT License - see LICENSE for details.

Contributing

Contributions are welcome! Please ensure your changes maintain feature parity across all three language implementations.