Git Product home page Git Product logo

bsky-docs's Introduction

bsky-docs

This repository contains developer documentation for the Bluesky API (api.bsky.app), which is available to read at docs.bsky.app.

The atproto.com website, including the AT Protocol specifications, is versioned separately at https://github.com/bluesky-social/atproto-website.

Docs Development

This website is built using Docusaurus, a modern static website generator.

For live-reloading development:

  1. Clone this repo
  2. Run npm install
  3. Run the development server with npm start
  4. Open http://localhost:3000 with your browser.

To output a build:

  • run npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Generate OpenAPI to Docusaurus MDX

We use a forked version of atproto-open-api-types to generate an OpenAPI schema from atproto lexicons. We use the docusaurus-openapi-docs plugin.

To generate OpenAPI types from atproto lexicons:

  1. Run deno task run to generate a fresh OpenAPI spec to atproto-openapi-types/spec/api.json.
  2. Run npx docusaurus-mdx-checker to see MDX compatibility.
  3. Run npm run docusaurus gen-api-docs <id> to generate MDX docs from an OpenAPI spec. In this case, npm run docusaurus gen-api-docs bskyApi.

If you want to regenerate MDX docs from an updated api.json file, run npm run clear-and-gen-api-docs. This command clears the existing docs and replaces them with freshly generated docs.

The OpenAPI docs auto-update with the latest lexicon changes once a day.

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.

License

Documentation text is under Creative Commons Attribution (CC-BY).

Inline code examples, example data, and regular expressions are under Creative Commons Zero (CC-0, aka Public Domain) and copy/pasted without attribution.

Please see LICENSE.txt with reminders about derivative works, and LICENSE-CC-BY.txt for a copy of license legal text.

bsky-docs's People

Contributors

bnewbold avatar dholms avatar emilyliu7321 avatar estrattonbailey avatar marshalx avatar pfrazee avatar whyrusleeping avatar

Watchers

 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.