Coder Social home page Coder Social logo

cleardry / atproto Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bluesky-social/atproto

0.0 0.0 0.0 31.86 MB

Social networking technology created by Bluesky

License: Other

Shell 0.05% JavaScript 0.45% TypeScript 97.38% Makefile 0.03% Handlebars 1.95% Dockerfile 0.13%

atproto's Introduction

AT Protocol Reference Implementation (TypeScript)

Welcome friends!

This repository contains Bluesky's reference implementation of AT Protocol, and of the app.bsky microblogging application service backend.

What is in here?

TypeScript Packages:

Package Docs NPM
@atproto/api: client library README NPM
@atproto/common-web: shared code and helpers which can run in web browsers README NPM
@atproto/common: shared code and helpers which doesn't work in web browsers README NPM
@atproto/crypto: cryptographic signing and key serialization README NPM
@atproto/identity: DID and handle resolution README NPM
@atproto/lexicon: schema definition language README NPM
@atproto/repo: data storage structure, including MST README NPM
@atproto/syntax: string parsers for identifiers README NPM
@atproto/xrpc: client-side HTTP API helpers README NPM
@atproto/xrpc-server: server-side HTTP API helpers README NPM

TypeScript Services:

  • pds: "Personal Data Server", hosting repo content for atproto accounts. Most implementation code in packages/pds, with runtime wrapper in services/pds. See bluesky-social/pds for directions on self-hosting in the federation sandbox network.
  • bsky: AppView implementation of the app.bsky.* API endpoints. Running on main network at api.bsky.app. Most implementation code in packages/bsky, with runtime wrapper in services/bsky.

Lexicons: for both the com.atproto.* and app.bsky.* are canonically versioned in this repo, for now, under ./lexicons/. These are JSON files in the Lexicon schema definition language, similar to JSON Schema or OpenAPI.

Interoperability Test Data: the language-neutral test files in ./interop-test-files/ may be useful for other protocol implementations to ensure that they follow the specification correctly

The source code for the Bluesky Social client app (for web and mobile) can be found at bluesky-social/social-app.

Go programming language source code is in bluesky-social/indigo, including the BGS implementation.

Developer Quickstart

We recommend nvm for managing Node.js installs. This project requires Node.js version 18. pnpm is used to manage the workspace of multiple packages. You can install it with npm install --global pnpm.

There is a Makefile which can help with basic development tasks:

# use existing nvm to install node 18 and pnpm
make nvm-setup

# pull dependencies and build all local packages
make deps
make build

# run the tests, using Docker services as needed
make test

# run a local PDS and AppView with fake test accounts and data
# (this requires a global installation of `jq` and `docker`)
make run-dev-env

# show all other commands
make help

About AT Protocol

The Authenticated Transfer Protocol ("ATP" or "atproto") is a decentralized social media protocol, developed by Bluesky PBC. Learn more at:

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.*.

Contributions

While we do accept contributions, we prioritize high quality issues and pull requests. Adhering to the below guidelines will ensure a more timely review.

Rules:

  • We may not respond to your issue or PR.
  • We may close an issue or PR without much feedback.
  • We may lock discussions or contributions if our attention is getting DDOSed.
  • We do not provide support for build issues.

Guidelines:

  • Check for existing issues before filing a new one, please.
  • Open an issue and give some time for discussion before submitting a PR.
  • If submitting a PR that includes a lexicon change, please get sign off on the lexicon change before doing the implementation.
  • Issues are for bugs & feature requests related to the TypeScript implementation of atproto and related services.
  • Stay away from PRs that:
    • Refactor large parts of the codebase
    • Add entirely new features without prior discussion
    • Change the tooling or frameworks used without prior discussion
    • Introduce new unnecessary dependencies

Remember, we serve a wide community of users. Our day-to-day involves us constantly asking "which top priority is our top priority." If you submit well-written PRs that solve problems concisely, that's an awesome contribution. Otherwise, as much as we'd love to accept your ideas and contributions, we really don't have the bandwidth.

Are you a developer interested in building on atproto?

Bluesky is an open social network built on the AT Protocol, a flexible technology that will never lock developers out of the ecosystems that they help build. With atproto, third-party can be as seamless as first-party through custom feeds, federated services, clients, and more.

If you're a developer interested in building on atproto, we'd love to email you a Bluesky invite code. Simply share your GitHub (or similar) profile with us via this form.

Security disclosures

If you discover any security issues, please send an email to [email protected]. The email is automatically CCed to the entire team, and we'll respond promptly. See SECURITY.md for more info.

License

This project is dual-licensed under MIT and Apache 2.0 terms:

Downstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.

atproto's People

Contributors

dholms avatar devinivy avatar pfrazee avatar estrattonbailey avatar bnewbold avatar foysalit avatar github-actions[bot] avatar matrix89 avatar whyrusleeping avatar jacob2161 avatar gaearon avatar matthieusieben avatar snarfed avatar ansh avatar davidbuchanan314 avatar marshalx avatar myconsciousness avatar jimmylee avatar roj1512 avatar mileszim avatar thinkverse avatar harlantwood avatar emilyliu7321 avatar evalprime avatar rex4539 avatar christiandeange avatar akiomik avatar mgibowski avatar yafesdot avatar p-linnane avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.