Build on Anahita
Developing
The pages for writing your own app or service against an Anahita site.
- The API. How requests and answers are shaped, lists and paging,
lengths, what the viewer may do, and refusals: The API. Every
route, with what it takes and sends, is in the API reference:
docs/api/index.html(The reference). - Signing in. An app signs people in with OAuth, and asks for the scopes it needs: OAuth scopes and clients, and Signing in.
- How the site is put together. The services, the routes, the graph of nodes and edges, and the shared library: Architecture.
- Services a site may not run. What an app is told when one is missing: Services an installation may not run.
- A service you can replace. Recommendations keep a contract that another service can keep in their place: The contract.
- An AI agent beside you. The docs and the API reference in Claude, Gemini, Cursor or VS Code, over MCP: Anahita MCP.
- The web app as an example of a client: its architecture.
- Other networks. What an Anahita site sends to the fediverse and Bluesky, and takes from them: Federation.
- Over gRPC, inside the cluster. A service of your own, in any language, calling the graph, files and mail services directly: Services over gRPC, with examples in Go, Node.js, Python, Ruby and PHP.
- The licences. An app or a service of your own may have any licence:
the API is open to any client, and the protocol buffer definitions are
Apache 2.0; the services and
anahita-libsare AGPL-3.0: Licensing.
Not written yet:
- The events on the bus: each event on the
anahita_eventsexchange, what it carries, and who listens to it. Today Architecture says only that it is there. - Writing a service of your own, from an empty folder to running beside the others.
- Writing a client, from registering it to its first signed-in request.
From anahitasocial/anahita-services, 2026-10-27.
Written by Claude, reviewed by Rastin Mehr · About this