Juno ✦ #
A colourful events app for the Atmosphere. Events and RSVPs are standard
community.lexicon.calendar.event /
.rsvp records in people's own repos, so they
interoperate with atmo.rsvp, Smoke Signal, OpenMeet and every other calendar app on atproto.
apps/
ios/ SwiftUI app (iOS 26), xcodegen project
server/ OAuth BFF: atproto OAuth (confidential client), writes to users' PDSes → juno.mozzius.dev
appview/ Indexer + read API: Jetstream + relay backfill → SQLite, dev.mozzius.juno.* XRPC
lexicons/ community.lexicon.calendar.* schemas, for reference
.railway/ Railway infrastructure-as-code
How it fits together #
- iOS → server. The app signs in through
ASWebAuthenticationSession→server/oauth/login. The server runs the atproto OAuth flow, keeps the DPoP-bound tokens, and hands the app an opaque session token (juno://auth?token=…). All API calls go through the server. - server → PDS. Writes (
putRecord,uploadBlob) go straight to the user's PDS with scopesrepo:community.lexicon.calendar.event repo:community.lexicon.calendar.rsvp blob:image/*. Records getcreatedWith: "https://juno.mozzius.dev", and events get an optionaljuno: { palette, emoji }extension (the host's chosen vibe; other apps ignore it). - server → appview. Reads come from the appview over Railway's private network. After every
write the server calls
dev.mozzius.juno.notifyOfUpdate, so the appview re-reads the record from the PDS and the user sees it straight away. - appview. Subscribes to Jetstream for both collections and backfills history once via the
relay's
com.atproto.sync.listReposByCollectionplus each PDS'slistRecords. Profiles are hydrated from Bluesky's public appview and cached.notifyOfUpdateis trustless: it only ever believes the author's PDS.
Every event gets its own animated mesh-gradient world: either the palette the host picked, or one derived deterministically from the event URI, so events from other apps look unique too.
Develop #
pnpm install
pnpm dev # server on :3000 (loopback OAuth client) + appview on :3001
pnpm ios:gen # generate apps/ios/Juno.xcodeproj
Debug builds of the app talk to http://127.0.0.1:3000; Release builds talk to https://juno.mozzius.dev.
Locally the appview backfills into apps/appview/data/ on first run (it takes a couple of minutes);
SKIP_BACKFILL=1 skips that.
Deploy (Railway) #
Infra lives in .railway/railway.ts:
railway config plan && railway config apply # infra changes
railway up -s appview # deploy code (run from repo root)
railway up -s server
PRIVATE_KEY_JWK is a secret and stays preserve() in the IaC file. To rotate it:
pnpm --filter @juno/server gen-key | railway variable set PRIVATE_KEY_JWK --stdin -s server
DNS for juno.mozzius.dev is a CNAME in Vercel (team samuel-newmans-projects).
https://juno.mozzius.dev/health/deep checks the server, the appview hop and indexer status.