メインコンテンツまでスキップ

High scale open social
unlocked for every builder.

Billions of interactions across millions of accounts, streaming to you in realtime.
What will you build on the Atmosphere?

Bluesky Protocol Services, from Bluesky PBC

TSjetstream.ts
import { Jetstream, isCreate } from '@bsky/jetstream';
import { app } from '@bsky/sdk/lexicons';

const jetstream = new Jetstream('https://jetstream.us-east.bsky.network');
const collections = [app.bsky.graph.follow, app.bsky.feed.repost, app.bsky.feed.post];

for await (const event of jetstream.live({ collections })) {
  if (isCreate(event, app.bsky.graph.follow)) {
    console.log(`🌱  ${event.did}  follows  ${event.commit.record.subject}`);
  } else if (isCreate(event, app.bsky.feed.repost)) {
    console.log(`♻️  ${event.did}  reposts  ${event.commit.record.subject.uri}`);
  } else if (isCreate(event, app.bsky.feed.post) && event.commit.record.reply) {
    console.log(`💭  ${event.did}  replies  ${event.commit.record.reply.parent.uri}`);
  }
}
Our best success was not computing,but hooking people together.David Clark A Cloudy Crystal Ball: Visions of the Future, IETF 1992