0.2.1 • Published 3 years ago

atproto-event-streams v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years 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

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago