MCPcopy Create free account
hub / github.com/blacksky-algorithms/rsky

github.com/blacksky-algorithms/rsky @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
5,321 symbols 10,533 edges 375 files ⚖ Apache-2.0 293 documented · 6% ● updated 1d ago★ 72332 open issues

Browse by type

⨍ Functions 2,046◇ Types & classes 3,275
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<a href="https://blackskyweb.xyz">
<img src="https://github.com/user-attachments/assets/e702e2ed-5c97-4dad-94fe-237dbfbd20c9">
</a>

AT Protocol, implemented in Rust

Ceasefire Now dependency status Follow License GitHub code size in bytes GitHub Repo stars Backers on Open Collective Join Our Discord


rsky (/ˈrɪski/) is a full implementation of AT Protocol in Rust. Most of the code is general purpose. Some of it, like rsky-feedgen, is written for the needs of the Blacksky community.

We developed rsky so that any community on the network can run their own infrastructure, moderate on their own terms, and leave if they ever need to. A second implementation of the protocol is how that stays possible.

[!WARNING] This is a work in progress. Things change, things are incomplete, and things break. Until 1.0.0 we make no stability promises.

What's in here

Crates (published to crates.io, usable on their own):

Crate What it does Docs crates.io
rsky-common Shared code README Crate
rsky-crypto Signing and key serialization README Crate
rsky-identity DID and handle resolution README Crate
rsky-lexicon Lexicon schema types README Crate
rsky-oauth OAuth provider core. JOSE, JWK and DPoP for AT Protocol services README Crate
rsky-repo Repository storage, including the MST README Crate
rsky-syntax Parsers for handles, DIDs, NSIDs and other identifiers README Crate
rsky-space Permissioned-data primitives. LtHash commits, credentials and space repos for access controlled or private records that only members can read README Crate

Services (the things we deploy):

  • rsky-pds: Personal Data Server. It hosts accounts and their repos. Each account's data lives in its own SQLite store on disk, blobs go to local disk or an S3 bucket, and email goes out through Mailgun or any SMTP server.
  • rsky-pds-router: Stateless HTTP router that sits in front of two PDS implementations sharing one data directory. It pins each account to one writer, lets reads move to the second implementation one account at a time, and journals every write before forwarding it, so accounts can migrate between implementations while both stay live.
  • rsky-pdsadmin: Admin tooling for a running PDS.
  • rsky-relay: Crawls the network and emits one stream of everything it finds. The "big world" piece.
  • rsky-firehose: Firehose consumer.
  • rsky-jetstream-subscriber: Firehose consumer for Jetstream.
  • rsky-feedgen: Feed generator, built around the Blacksky community's feeds.
  • rsky-labeler: Firehose consumer that labels content for moderation.
  • rsky-wintermute: Indexer and backfiller for the app view.
  • rsky-space-host: Authority for a permissioned space. It issues space credentials, manages the space, and routes write notifications to members.
  • rsky-daemon: Syncer for permissioned data. It pulls each member's permissioned repo from their PDS, verifies it, and indexes it so a space can be read as one whole.
  • rsky-video: Video processing and serving.
  • rsky-satnav: "Structured Archive Traversal, Navigation & Verification." Explores DASL CAR files and AT Protocol repos.

Lexicons (/lexicons): Lexicon definitions for the parts of the protocol we extend, such as spaces.

About AT Protocol

The Authenticated Transfer Protocol (atproto) is a decentralized social protocol developed by Bluesky PBC. Start here:

Contributing

Issues and pull requests are welcome. Before you open one:

  • Read the Code of Conduct. We hold to it.
  • Follow the canonical TypeScript implementation closely. Where rsky differs on purpose, the difference is documented.
  • Check for an existing issue before filing a new one.
  • Open an issue and give it time for discussion before you send a PR.

PRs we will close without much discussion:

  • Large refactors
  • New features that were not discussed first
  • Changes to tooling or frameworks that were not discussed first
  • New dependencies we don't need

What to expect from us: we are a small team running production infrastructure. We will try to respond, and sometimes we won't. We may close an issue or PR with little feedback, lock a thread if it's eating our attention, and we don't provide support for build issues.

Backers

Become a backer and your avatar shows up here with a link to your site.

<a href="https://opencollective.co

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Class 3,140
Function 1,249
Method 797
Enum 128
Interface 7

Languages

Rust100%
Python1%

Modules by API surface

rsky-pds/src/lexicon/lexicons.rs2,507 symbols
rsky-wintermute/src/indexer/mod.rs97 symbols
rsky-repo/src/mst/mod.rs84 symbols
rsky-wintermute/src/storage.rs55 symbols
rsky-relay/src/validator/event.rs53 symbols
rsky-wintermute/src/ingester/tests.rs50 symbols
rsky-repo/src/types.rs49 symbols
rsky-syntax/src/aturi.rs45 symbols
rsky-pds/src/account_manager/mod.rs45 symbols
rsky-repo/src/repo.rs42 symbols
rsky-pds/src/auth_verifier.rs41 symbols
rsky-lexicon/src/app/bsky/actor.rs40 symbols

Datastores touched

postgresDatabase · 1 repos
bsky_testDatabase · 1 repos
appview_dbDatabase · 1 repos
bskyDatabase · 1 repos
localDatabase · 1 repos

For agents

$ claude mcp add rsky \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page