MCPcopy Index your code
hub / github.com/bluesky-social/statusphere-example-app

github.com/bluesky-social/statusphere-example-app @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
45 symbols 119 edges 22 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AT Protocol "Statusphere" Example App

An example application covering:

  • Signin via OAuth
  • Fetch information about users (profiles)
  • Listen to the network firehose for new data
  • Publish data on the user's account using a custom schema

See https://atproto.com/guides/applications for a guide through the codebase.

This project uses Next.js as a server framework and Tap for syncing data from the Atmosphere.

This is a revamp of the original Statusphere example app which can be found on the statusphere-og branch.

Getting Started

git clone https://github.com/bluesky-social/statusphere-example-app.git
cd statusphere-example-app
cp env.template .env.local
pnpm install
pnpm dev
# Navigate to http://127.0.0.1:3000

To read data from the network, you'll need an instance of Tap running. Find instructions for getting set up by checking out the Statusphere tutorial or the Tap repository.

Extension points exported contracts — how you extend this code

StatusPickerProps (Interface)
(no doc)
components/StatusPicker.tsx
DatabaseSchema (Interface)
(no doc)
lib/db/index.ts
AuthStateTable (Interface)
(no doc)
lib/db/index.ts
AuthSessionTable (Interface)
(no doc)
lib/db/index.ts
AccountTable (Interface)
(no doc)
lib/db/index.ts
StatusTable (Interface)
(no doc)
lib/db/index.ts

Core symbols most depended-on inside this repo

getDb
called by 16
lib/db/index.ts
getOAuthClient
called by 5
lib/auth/client.ts
getSession
called by 2
lib/auth/session.ts
insertStatus
called by 2
lib/db/queries.ts
setCurrStatus
called by 2
lib/db/queries.ts
handleSelect
called by 1
components/StatusPicker.tsx
getClientMetadata
called by 1
lib/auth/client.ts
getKeyset
called by 1
lib/auth/client.ts

Shape

Function 39
Interface 6

Languages

TypeScript100%

Modules by API surface

lib/db/queries.ts9 symbols
lib/db/index.ts6 symbols
lib/auth/client.ts6 symbols
lib/db/migrations.ts3 symbols
components/StatusPicker.tsx3 symbols
lib/auth/session.ts2 symbols
components/LogoutButton.tsx2 symbols
components/LoginForm.tsx2 symbols
app/page.tsx2 symbols
scripts/migrate.ts1 symbols
scripts/gen-key.ts1 symbols
lib/tap/index.ts1 symbols

For agents

$ claude mcp add statusphere-example-app \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact