so you like birds birds.place
Files
README.md

birds.place #

log a bird. it lives on your PDS.

Species, count, notes, where you were, and whatever you captured — a photo, a video, or a recording of the call — written as a place.birds.sighting record and blobs in your own AT Protocol repository.

If birds.place disappears tomorrow, everything you noticed is still yours.

live at birds.place

run it #

Agent instructions live in AGENTS.md. Shared skills live in .agents/skills/, with .claude/skills symlinked there for Claude Code.

bun install
bun run dev

Then open http://127.0.0.1:5173. That is vite alone, so /api/sightings, /u/<id> and signing in are not served — use just serve for the real thing.

command does
bun run dev local dev server
bun run check everything that gates a deploy: types (app, worker, scripts, phone), lint on both, tests, drift, text encoding
bun run lint eslint, type-aware
bun test the shared display rules, the review queue's SQL, the cache-header contract
bun run deploy build and ship to Cloudflare
bun run sightings print every sighting on the network
just test-bird write one fully-populated sighting from a test account, then wait for the app to index it; --clean removes them
just takedown <subject> <reason> hide a did or an at:// uri for everyone, index included
bun run build:taxonomy rebuild the species list, after eBird's October update

just --list has the rest, including the phone app.

how it works #

Signing in is atproto OAuth, and birds.place itself is the client: the worker holds the tokens and your browser or phone holds an opaque session. The scope is exactly what the app does — write, edit and delete your own sightings, choose a picture per species, block someone, and upload media. We never see a password.

Making an account is the same round trip with one parameter. atproto has no signup of its own — an account lives on a PDS — so prompt=create sends you to a host's own sign-up page and you come back already signed in. Which hosts are offered is src/data/hosts.ts; what is built but not yet shown is FEATURES in wrangler.jsonc, named and explained in src/data/features.ts.

Logging a bird uploads each attachment with uploadBlob, then writes one createRecord. Your own log reads back with listRecords against your own repository — authoritative, with no index in between.

A photo or video already knows when and roughly where it was taken, so that fills in by default and can be undone. Video gets a still automatically; a slider changes which frame.

the parts #

  • src/ — the app. data/ talks to atproto and never imports ui/, features/ is one file per thing you can do, ui/ is presentation. data/schema.ts is where anything off the network gets checked. src/mod.ts is a second vite entry: the progressive enhancement for /mod.
  • src/data/view.ts — what to show, for every client. The website, the phone app and the worker all ask it; scripts/check-drift.ts fails the build if one starts deciding for itself.
  • worker/ — the only server-side code: it server-renders the home page and every shared page (link crawlers do not run JS, and a page should have its birds in it before any JavaScript arrives), is the OAuth client, and holds sign-in state, moderation and the sightings index in D1. It also serves /mod, the moderators' species-review queue (worker/review.ts; who gets in is MODERATOR_DIDS in wrangler.jsonc; JSON twins at /api/mod/*). worker/watcher.ts is a Durable Object on the jetstream; worker/index-store.ts owns everything that talks to the network about sightings and everything that reads the index back.
  • mobile/ — the Expo app for iOS and Android.
  • lexicons/ — the record schemas, published to the @birds.place account.
  • scripts/ — build-time data and one-off tools, not part of the app.

public pages #

Sightings are world-readable on their observer's PDS, so anyone can read them with no account:

  • /explore — everyone's birds, one tile per species, most-seen first
  • /u/<handle-or-did> — someone's birds, one tile per species with a count
  • /u/<handle-or-did>/<rkey> — one sighting, media and all
  • /api/species — one page of the grid: tiles already ranked and counted
  • /api/sightings — one page of sightings, newest first, ?species= to narrow
  • /api/content/<name> — the prose of /about, /privacy, /terms as data, for a client that cannot render the worker's page chrome

Both /api list endpoints are keyset-paginated: hand back the cursor from the last page to get the next one.

The DID is the durable address; a handle is display and can change hands.

where the data comes from #

Your own log is read from your own repository, with no index in between. For everyone's birds there is an index, and it exists because the grid ranks species by how often each was seen — you cannot answer "the first 24 tiles" without having counted all of them, and a Worker may have only six connections waiting for response headers at once, so walking the network per request does not scale.

So the walk is maintenance rather than a read: lightrail for who has written a sighting, slingshot for where they live, then each observer's own PDS. A Durable Object holding a jetstream socket writes what it sees; an hourly cron repairs what a socket can miss; a read that finds the index empty fills it. Nothing in the index is authoritative — every row is a copy of a record in somebody else's repository, and those tables can be rebuilt from scratch at any time. The one exception is review, moderators' species verdicts: those exist only here. See docs/the-index.md and docs/moderation.md.

Species names and codes come from the eBird/Clements taxonomy, ordered by GBIF occurrence counts so the birds people actually see come first.

Every picture on birds.place was taken by somebody here. A species nobody has photographed shows as its name — there is no stock image, because a tile is a claim about what somebody saw.

next #

Enough sightings to help tell whether the bird you saw is the bird you thought.

This is not a scoreboard. There are no totals, no rankings, no competition — it's a place to notice birds and share what you noticed.