Pubky Nexus
Pubky Nexus indexes public social data from Homeservers using the pubky-app-specs data model and serves it through an API for pubky.app and compatible clients. It is an application service, not a requirement for every Pubky app.
When Nexus is useful
Section titled “When Nexus is useful”Use Nexus when your app needs views across social records, such as feeds, search results, replies, or tags and follow relationships. It lets the client request an indexed result instead of locating and combining each record itself. The semantic social graph explains how these relationships support contextual views.
Applications publish changes to users’ Homeservers. Nexus watches Homeserver event feeds, fetches relevant public records, and updates its indexes. Clients then query those indexes. The pubky.app reference architecture shows how this works alongside a browser’s local cache.
Nexus does not write a user’s posts on their behalf, and its index does not replace Homeserver storage. A missing API result can mean that the instance has not indexed the record; it does not by itself mean the original record is absent. Instance coverage and indexing delay matter when building a client.
Using or running Nexus
Section titled “Using or running Nexus”For implementation and operation, see:
- Nexus README: architecture, setup, configuration, migrations, and testing.
- Swagger UI and OpenAPI specification (JSON): endpoints and response schemas for the public instance.
- Indexing coverage and Homeserver configuration: how an instance selects Homeservers and users to index.
Exploring the graph with Nexus Scout
Section titled “Exploring the graph with Nexus Scout”Nexus Scout lets AI agents and developers run read-only Cypher queries over the Pubky social graph and receive JSON results. The public instance uses a periodically refreshed replica, so results can lag behind the Nexus API. See the agent guide for schema discovery, query examples, and limits.