Welcome friends!
This repository contains Bluesky's reference implementation of AT Protocol.
The Authenticated Transfer Protocol ("ATP" or "atproto") is a decentralized social media protocol, developed by Bluesky Social PBC. Third-party software can be as seamless as first-party: custom feeds, federated services, and alternative clients are all built against the same APIs, so developers are never locked out of the ecosystems they help build. Learn more at:
- Overview and Guides 👈 Best starting point
- Github Discussions 👈 Great place to ask questions
- Protocol Specifications
The Bluesky Social application encompasses a set of schemas and APIs built in the overall AT Protocol framework. The namespace for these "Lexicons" is app.bsky.*.
Lexicons: for the com.atproto.* and tools.ozone.* namespaces are currently maintained in this repo under the ./lexicons/ directory. These are JSON files in the Lexicon schema definition language, similar to JSON Schema or OpenAPI. Lexicons for the app.bsky.* and chat.bsky.* namespaces are now maintained in the bluesky-social/bsky git repository, and the copies here may be out of date.
TypeScript Packages: everything under ./packages/ is published to npm under the @atproto/* scope (except for the shared utilities in ./packages/internal/, which use the @atproto-labs/* scope). Each package has its own README; packages/README.md lists them all. The short version, if you're new here:
- Building an app or bot? Start with
@atproto/lex— the type-safe SDK that generates TypeScript from Lexicon schemas and gives you an HTTP (XRPC) client. The rest of./packages/lex/contains its building blocks (data model, JSON/CBOR encoding, schema validation, server routing), which you rarely need to install directly. The older@atproto/apiclient still exists and is still used in parts of this repo, but new code should prefer@atproto/lex. - Adding "Sign in with Atmosphere Account"?