WorkCivic Tech
BedBoard
Shelters text in their bed counts; the county hotline watches a live wallboard. Built beside Finding A Bed Tonight.
Built · Sep 2026 · Solo: built it from a written PRD, directing Claude Code; patched the upstream platform in my fork
- test functions
- 105
- languages
- 3
Try it
BedBoard’s own text parser, running in your browser. Send a count the way a shelter coordinator would and watch the board take it.
Text in the beds
Synthetic shelter
Sample Shelter, open beds
- Women
- 2
- Stale, 9 h ago
- Men
- 0
- Stale, 9 h ago
- Family
- 1
- Stale, 9 h ago
Press Send. The reply appears here.Sending a text needs JavaScript. A text like “W 3 M 1 F 0” updates all three counts.
Every count is nine hours old.
TL;DR
- A shelter’s open-bed count is only useful if it is fresh. BedBoard lets coordinators update it by text (“W 3 M 1 F 0”), nudges them when a count goes stale, and shows the county hotline a live wallboard.
- It is a sidecar, not a rewrite: it sits beside the open-source Finding A Bed Tonight (FABT) platform and talks to its real API.
- Along the way I found that FABT’s production profile quietly rate-limited API keys to 5 requests a minute, and fixed it in my fork.
The problem
Hotline staff placing someone in a shelter tonight need to know where beds are open now, not as of this morning. Coordinators are busy and often on a phone, not a laptop, so counts go stale and calls go to shelters that are already full.
What I built
A FastAPI service with four pieces: an SMS parser and webhook for bed updates, a freshness model (fresh, aging, stale) that drives scheduled nudges and escalation, a server-sent-events wallboard for the hotline, and translated messages in Spanish and Vietnamese. It runs against an in-memory mock of FABT by default, and a real HTTP client talks to an actual FABT backend.
Key decisions
- Decision: build a sidecar instead of forking the platform’s feature set. Why: FABT already does reservations, holds and the shelter registry; duplicating them would mean two sources of truth for a bed. Trade-off: every number BedBoard shows depends on FABT’s API behaving the way its code says.
- Decision: confirm counts back to the coordinator using the value FABT returns, not the one they texted. Why: beds on hold reduce what is actually available, and a coordinator should see the number placers will see. Trade-off: the confirmation sometimes shows a lower number than the one sent, which the message has to explain.
- Decision: domestic-violence shelters are excluded from every listing. Why: their locations must never leak through a wallboard or a text. Trade-off: those shelters need a separate, opaque referral path, which is only partly built.
The hard part
Fitting the spec to the real API. The PRD assumed a JWT and a single “beds available” number. FABT actually authenticates services with an X-API-Key header and stores total and occupied beds per population type. The client derives occupied counts from what coordinators text, refuses to invent one for a population type it has no total for, and treats FABT’s returned availability as the truth.
Testing against a locally built FABT then surfaced the rate limit: the production profile fell back to a default of 5 requests a minute per API key. The fix in my fork sets that profile’s limit to 1,000 a minute.
Results
- 105 test functions, run against the mock FABT.
- The full sidecar runs end to end: SMS update, stale-count nudge, escalation and the live wallboard.
- No deployment and no CI yet. The admin pages have no authentication, which the README states plainly.
What I’d do next
- Add authentication to the admin UI and a CI workflow before anything faces a network.
- Offer the rate-limit fix upstream as a pull request instead of keeping it in a fork.
Every number, with its source
The file, run or record each figure comes from.
| Metric | Value | Source |
|---|---|---|
| Test functions in the suite | 105 | mit37/bedboard/tests/ |
| Languages the SMS parser reads (English, Spanish, Vietnamese) | 3 | mit37/bedboard/app/sms/parser.py:1-40 |