A self-hosted RSS reader with ATProto-based federation: instances can link user identities and share activity (followers, reposts, feed subscriptions) through a relay, while articles and profiles stay on your own server.
sunred/
├── go/ # Go (API server, relay, SDK, CLI/TUI)
│ ├── go.work # Go workspace — links all modules
│ ├── api/ # API server (huma, PostgreSQL)
│ ├── relay/ # federation relay (ATProto firehose, PostgreSQL)
│ ├── sdk/ # Go client generated from OpenAPI (oapi-codegen)
│ └── cli/ # CLI + TUI (cobra, bubbletea)
├── ts/ # TypeScript (web, docs, website, shared packages)
│ ├── apps/
│ │ ├── web/ # Next.js frontend
│ │ ├── website/ # Astro marketing site (one-pager, blog)
│ │ └── docs/ # Fumadocs documentation site
│ └── packages/
│ ├── api-client/ # TS client generated from OpenAPI (openapi-ts)
│ ├── ui/ # Shared UI components
│ ├── eslint-config/
│ └── typescript-config/
├── Makefile # Root orchestration (make gen, make dev, ...)
└── .github/workflows/ # CI
- Go 1.25+
- Node.js 20+ with pnpm 10+
- PostgreSQL 16+ (or Docker for local dev)
cd go/api
make db-up # start PostgreSQL via docker compose
make migrate # run database migrations
make run # start the API server on :8080cd go/cli
make build
./sunred config set base_url http://localhost:8080
./sunred config set token <your-api-token>
./sunred feeds list
./sunred-tui # interactive TUIThe relay federates activity across independent instances by subscribing to announced users' PDS repo streams and fanning events back out over WebSocket:
cd go/relay
make db-up # start PostgreSQL on :5433 via docker compose
make migrate # run relay database migrations
make run # start the relaycd ts
pnpm install
pnpm devThe frontend ships a first-run onboarding tour, one-click subscribe from any article to its source feed, and optional Umami telemetry.
Both the Go SDK and TS client are generated from the OpenAPI spec:
make gen # from repo root — regenerates spec + both clients