---
title: "Pubky Nexus"
---

[Pubky Nexus](https://github.com/pubky/pubky-nexus) indexes public social data from [Homeservers](https://pubky.org/homeserver.md) using the [pubky-app-specs](https://pubky.org/pubky-app-specs.md) data model and serves it through an API for [pubky.app](https://pubky.org/pubky-app.md) and compatible clients. It is an application service, not a requirement for every Pubky app.

## 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](https://pubky.org/semantic-social-graph.md) 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](https://pubky.org/pubky-app.md#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

For implementation and operation, see:

- [Nexus README](https://github.com/pubky/pubky-nexus): architecture, setup, configuration, migrations, and testing.
- [Swagger UI](https://nexus.pubky.app/swagger-ui/) and [OpenAPI specification (JSON)](https://nexus.pubky.app/api-docs/v0/openapi.json): endpoints and response schemas for the public instance.
- [Indexing coverage and Homeserver configuration](https://github.com/pubky/pubky-nexus/blob/main/docs/decentralization.md): how an instance selects Homeservers and users to index.

## Exploring the graph with Nexus Scout

[Nexus Scout](https://nexus-scout.pubky.app/) 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](https://nexus-scout.pubky.app/llms.txt) for schema discovery, query examples, and limits.
