0.2.1 • Published 10 months ago

atproto-event-streams v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

AT Protocol Event Streams Client

A library for subscribing AT Protocol event streams and a CLI for streaming from Bluesky Social's firehose.

Note: This package is intended to be used with Node.js. Currently, it does not work in the *browser.

Installation

npm install atproto-event-streams

or

yarn add atproto-event-streams

or

pnpm add atproto-event-streams

Usage example

import { subscribeRepos, SubscribeReposMessage } from 'atproto-event-streams'

const client = subscribeRepos(`wss://bsky.social`, { decodeRepoOps: true })
client.on('message', (m: SubscribeReposMessage) => {
  console.log('Message:', message)
})

Firehose CLI

This project also provides a CLI tool for streaming from Bluesky Social's firehose.

npx atproto-event-streams bsky.social

List posts:

npx atproto-event-streams bsky.social -p app.bsky.feed.post

List likes:

npx atproto-event-streams bsky.social -p app.bsky.feed.like

List follows:

npx atproto-event-streams bsky.social -p app.bsky.graph.follow

List profile changes:

npx atproto-event-streams bsky.social -p app.bsky.actor.profile

License

MIT

0.2.1

10 months ago

0.2.0

10 months ago

0.1.9

10 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago