- TypeScript 65%
- Go 19%
- Swift 16%
- CSS <1%
- Python <1%
- 3 more languages <1%
The Social Wire #
A reader for the standard.site publishing ecosystem, built on ATProto.
Overview #
The Social Wire lets you read publications from people you follow on Bluesky and the broader ATProto network. Your reading preferences — folders, publication organisation — are stored on your own ATProto PDS, not on our servers.
Web Frontend (Next.js) iOS/iPadOS (SwiftUI)
│ │
└────── ATProto OAuth ────┘
│
User's PDS │ Go AppView (Vercel)
User-owned └────── OAuth/DPoP + Reader API
protocol records Turso + private encrypted Blob storage
Bounded RSS + leased scheduling
The source target is one Vercel Services project containing Web and six Go AppView services. AppView
retains the public XRPC and /v1/* compatibility contracts on the existing API
domains. See the standalone cutover runbook
for data import, key preservation, backups, and Development-first acceptance.
Tangled is the canonical source repository.
Web and Go verification runs on Tangled Spindle and gates direct Vercel CLI
deployments at the exact verified commit. GitHub remains available for historical
references and recovery; its disabled Vercel link is retained only for the
documented branch-binding compatibility path. Apple CI/CD is deferred to Xcode
Cloud. The retained project
uses main for Production and the dev branch Preview for Development.
Consolidation #354
(originally GitHub #992) and its runbook
track hosted acceptance; generic previews remain disabled until isolated resources are provisioned.
Serverless migration #351
(originally GitHub #963) records the hosted cutover and separate Railway infrastructure retirement.
Monorepo Structure #
the-social-wire/
apps/
web/ # Next.js Frontend; Vercel and portable Node runtime
apple/ # SwiftUI client; shared ReadStateCore in Packages/
services/
appview/ # Public Go API, Turso/SQLite, RSS and scheduling
packages/
lexicons/ # record schemas plus app.thesocialwire.* service XRPC lexicons
spec/ # OpenAPI 3.1 compatibility contract + endpoint manifest
read-state/ # Web read-state protocol implementation
docs/
architecture/
wiki/ # Canonical public wiki Markdown (manual Lichen publish)
Prerequisites #
| Tool | Version |
|---|---|
| Bun | Matches root package.json packageManager (currently 1.3.x) |
| Go | Matches AppView go.mod |
| Swift | Supplied by Xcode for the native client |
| Vercel CLI and Turso CLI | Hosted operations only; not needed for local development |
| Xcode | 16+ (for iOS) |
Quick Start #
Local development #
# 1. Install JS dependencies
bun install
# 2. Start the web app
cd apps/web
cp .env.example .env.local
# Optional: uncomment or set vars in .env.local (defaults work for local OAuth loopback)
bun run dev
Open http://localhost:3000.
Full-stack local dev (optional) #
Run the standalone Go backend with a disposable SQLite database. The Operations
store uses the dev environment for local development.
cd services/appview
APP_ENV=dev BACKEND_MODE=standalone \
SQLITE_DB_PATH="$(mktemp -d)/social-wire.sqlite" \
BIND_HOST=127.0.0.1 \
SCHEDULING_PUBLIC_ORIGIN=https://api.testing.thesocialwire.app \
SCHEDULING_STORAGE_KEY="$(openssl rand -base64 32)" \
PDS_ATTESTATION_RECEIPT_SECRET=local-development-attestation-receipt-secret \
go run ./cmd/appview --port 8081
Set NEXT_PUBLIC_SOCIALWIRE_API_URL=http://localhost:8081 in the local Web
environment before starting the Web app.
Running tests #
See docs/test-plans/README.md for per-surface plans and PR checklists.
(cd apps/web && bun test)
(cd services/appview && go test -vet=all -count=1 ./...)
node --test scripts/ci/*.test.mjs
bash scripts/ci/verify-runtime-images.sh appview
# iOS — Cmd+U in Xcode (see docs/test-plans/apple.md)
Architecture Principles #
- Protocol-first where data is portable: folders, publication preferences, subscriptions, and read-later records live on the user's own ATProto PDS
- AppView-owned read state: feed read/unread state is local-first in clients and synchronized to Social Wire AppView for counters and unread filtering
- Thin AppView read path: signed-in clients load bootstrap data, feeds, and entry detail through the public AppView; standard.site bodies remain authoritative on publisher PDSes, while RSS feed bodies may be retained in the derived index (see docs/architecture/appview.md)
- Server projections: AppView keeps reader projections, private drafts, analytics and caches in Turso, with SQLite available locally. The selected migration target is classic libSQL over the existing official pure-Go HTTP driver (
turso.tech/database/tursogo-serverless), withDATABASE_BACKEND=tursoand barelibsql:///turso:///https://URLs normalized to HTTPS. Source configuration does not establish hosted cutover; Development acceptance must precede Production. User-authored protocol records remain authoritative on the PDS. Private attachment ciphertext lives in private Blob storage. - Direct ATProto where it fits: discovery and repo reads use public XRPC; Bluesky App View (
public.api.bsky.app) for follows and profiles only - Interoperable by design: lexicons are public — any ATProto client can read a user's Social Wire folders
Deployment #
| Component | Where |
|---|---|
| Frontend | Retained Vercel project at repository root, Web service apps/web |
| AppView | Same project, six Go services rooted at services/appview |
| Data | Separate US Turso AppView/scheduling databases and private Blob storage per environment |
| Required CI | Tangled Spindle: Web, Go, source contracts and portable images; Apple CI/CD deferred to Xcode Cloud |
| Releases | dev branch Preview before main Production in the retained project |
Follow the runtime and cutover guide for explicit schema initialization, stable domains and recovery. Railway resource retirement requires a separate operator step; source cleanup does not delete infrastructure. The Dockerfiles remain available for local verification and recovery.
Docs #
- Test plans — verification commands and coverage inventory
- Contributing — PR workflow and test location conventions
- Historical GitHub Wiki — retained documentation history
- Lichen Wiki — public user and developer documentation; publish from
docs/wiki/ - Architecture overview
- Lexicons
- Discovery chain
- Thin AppView
- Replicated indexing services
- Redis cache and coordination
- Web app
- Apple app
- OpenAPI spec
- Lexicon reference
License #
This project is licensed under the MIT License — see LICENSE.