Accessibility screening for commercial buildings. Unstuck pulls the property record (CoStar), the view from above (Vexcel) and the 3D scan (Matterport) for one building, runs tested numeric checks from the 2010 ADA Standards, and shows the evidence behind each result so an owner knows what to check first.
Screening, not certification. Unstuck is not a certified ADA inspection or a legal compliance determination, and does not replace a California CASp, a Texas RAS, a qualified accessibility consultant or field measurements. It never calls an unmeasured guess a violation.
Live: https://tryunstuck.us
Built at HackPrinceton Fall 2026 (Business & Enterprise track; CoStar "Inside and Out" sponsor track).
A commercial landlord or property manager who wants to know where accessibility barriers might be before a renovation, complaint or paid inspection. It is for screening buildings you own or are authorized to audit, not for finding other people's.
- Pick a property. Search 541 non-residential buildings in Houston and Los Angeles that have both a CoStar record and a Matterport scan.
- Gather evidence. A LangChain Deep Agent plans the audit and delegates to three subagents. The property investigator looks up the CoStar record (use type, year built, parking counts). The exterior inspector fetches a Vexcel orthophoto of the site. The interior inspector compares the linked Matterport scans, loads one and measures its doorway openings from the floor plan. The orchestrator then checks that the scan sits where CoStar says the building is.
- Screen. A pure-Python rule engine compares structured measurements against the standards. No language model does any arithmetic.
- Ask a person for what it cannot know. You mark accessible stalls directly on the aerial image, or let Gemini suggest them and accept or reject each one. For interior doors you can enter a width measured on site, draw a line with the ruler in the 3D tour and have its length saved without typing (where the Matterport SDK key is registered), or take the scan's own width after saying whether the opening has a door in it. The checks re-run immediately.
- Report. A printable action plan groups results into act on, measure next, and meets threshold, with a JSON export and a full audit trail.
- Measure on site. A one-page field checklist lists what still needs a tape measure, in a visitor's order from the lot to the door and inside, narrowest scan doorways first. Print it, or scan its QR code and enter readings on a phone; each reading re-runs the check.
- Triage a portfolio. For every CoStar building, or one owner's, a sortable list shows the Table 208.2 stall minimum for the recorded lot, year built and scan coverage, ordered by what most needs measuring. No AI calls.
- Open a finished screening. The landing page can show two or three finished screenings that open instantly, as a free copy you can edit.
Every result is labelled measured, suspected or review needed, with its source, method and reviewer.
| Check | Rule | Standard |
|---|---|---|
| Accessible parking count | Table 208.2 by lot size; hospital outpatient 10%, rehab 20% | §208.2 |
| Van-accessible spaces | 1 per 6 accessible spaces or fraction | §208.2.4 |
| Door clear opening | 32 in; 36 in when the opening is deeper than 24 in | §404.2.3 |
| Doorway opening from a scan | Floor-plan opening under 31 in: suspected below 32 in. Wider: needs measurement, sorted into "measure first", "could go either way" and "likely wide enough". Never a pass on its own | §404.2.3 |
| Scan width accepted by a person | A person looks at the doorway and takes the scan's width: as drawn if there is no door, less 2.25 in for a single hinged door. Screened like any width and labelled "estimated, not measured" | §404.2.3 |
| Accessible route width | 36 in; 32 in allowed for at most 24 in (engine only, not yet in the UI) | §403.5.1 |
Missing or unverified inputs return "needs field measurement". Nothing is defaulted, and a non-field measurement within half an inch of a threshold is sent back for a tape measure.
| Piece | State |
|---|---|
| CoStar property record and Matterport crosswalk | Real, from the hackathon data extract |
| Vexcel orthophoto | Real, fetched live through the API (key stays server-side). The hackathon key is geofenced to Los Angeles, Houston, Northern California, the Florida Panhandle and the Princeton campus; outside those the app does not call Vexcel and uses the public USGS image, labelled as such |
| Matterport model identity, rooms, tour embed | Real, fetched live |
| Accessible stall counts | Counted by a person. Gemini can suggest stalls on the aerial image, but a suggestion only counts once a person accepts it. Low-confidence guesses are dropped |
| AI on sponsor imagery | Vexcel imagery is sent to Gemini only when the server sets VEXCEL_ALLOW_AI_PROCESSING=1. It is off by default and was switched on for the live site after Vexcel approved it at the event. Public USGS imagery can always be analysed |
| Doorway openings | Real, read live from the Matterport floor plan (floors.edges.openings, type doorway) when the scan has one. A survey of the first scan of all 541 properties found doorways in 216 of them (2,413 doorways). An opening is the frame gap, so it can flag a narrow doorway but never pass one. Where the scan has a 3D mesh, the gap at each doorway is also measured from the mesh (providers/scanmesh.py); a smaller gap means a door leaf or object was in the opening during the scan. In the survey the mesh confirmed 846 openings, typically within 0.8 in of the floor plan. The mesh is too coarse to show a door leaf, so it confirms the opening, not the clear width |
| Doorway numbers | Scan doorways are numbered in walking order (each followed by its nearest neighbour on the floor plan), and the plan shows the numbers, so the list can be matched to the building. The order is nearest-neighbour, not a planned route |
| Door clear width | Entered by a person (tape on site, or a line drawn with the tour's ruler). Replaces the scan opening for that door |
| Accepted scan widths | A person can take the scan's width for a doorway without measuring, after stating whether it has a door, or accept in one step the doorways the mesh shows clearly wide. These are recorded under the person's name as scan estimates, shown as "estimated, not measured" and counted apart from verified measurements. Anything within half an inch of the minimum still goes to a tape measure |
| Click-to-measure in the tour | Works where the Matterport SDK key's domain is registered, which today is localhost. On the live site Matterport refuses the key, so the tour is a plain embed and its ruler reading is typed in |
| Total parking | CoStar's property-wide surface count, flagged because §208.2 applies per lot |
| Agent | LangChain Deep Agent (deepagents on LangGraph) with Claude (claude-opus-5-5) as the model through langchain-anthropic, when ANTHROPIC_API_KEY is set. An orchestrator writes the plan and delegates with the task tool to three subagents: property investigator, exterior inspector and interior inspector. The interior inspector compares linked scans, prefers one with a floor plan and public areas, and measures its doorways. The agents cannot create findings, and the summary is rejected if it uses legal words like "compliant" or "violation". Without a key, or if the Deep Agent fails mid-audit, a fixed scripted pipeline (no AI) runs the same steps |
| AI token usage | Recorded per audit (requests, input, cached, output tokens, list-price estimate), shown on the audit page and totalled at GET /api/usage. A typical audit is about 8 requests, 50k input tokens (mostly cached) and 1.5k output tokens, about $0.09 on claude-opus-5-5 |
| Demo property | A clearly labelled synthetic fixture, for trying the flow without sponsor data |
| Cost estimates, tax savings | Not shown. No sourced assumptions exist |
| Vexcel capture date | Vexcel's own estimate (metadata.ortho-date-estimate from property/extract), with the layer and collection. The image is then fetched from that same layer so the date applies to it. Shown as unknown when Vexcel has no parcel at the site |
| "Built before the ADA" | A labelled context note when CoStar's year built is before 1992. Background only: it never creates a finding or changes a result |
| Portfolio owners | Grouped by CoStar's true-owner company ID (recorded owner as a fallback). The extract has no owner names, so owners show as IDs |
| Portfolio order | A measuring order from the record and coverage alone, with each point explained. Not a risk score and never a finding. Stall minimums assume the recorded surface spaces are one lot |
| Featured screenings | Real finished audits chosen by the operator (UNSTUCK_FEATURED_AUDITS). The originals are read-only; opening one copies its stored results with no provider or AI call |
Requires Python 3.12 (via uv) and Node 20+.
cd services/api && uv sync && uv run pytest -qcd services/api && uv run uvicorn app.main:app --port 8000cd apps/web && npm install && npm run devOpen http://localhost:3000. Without any keys the synthetic demo and public USGS imagery still work, and sponsor sources show as unavailable.
Copy .env.example to services/api/.env and fill in the values from /costar-keys in the track Discord:
MATTERPORT_API_KEY,MATTERPORT_API_TOKENVEXCEL_API_KEYCOSTAR_KIT_DIR: path to the unzipped CoStar kit (the folder containingdata/commercial-property.jsonl)MATTERPORT_SDK_KEY(optional): click-to-measure inside the 3D tour. Without it the plain tour is shownANTHROPIC_API_KEY(optional): turns on the Deep Agent.UNSTUCK_MODELoverrides the model;UNSTUCK_AGENT=offforces the scripted pipelineGOOGLE_API_KEY(optional): turns on Gemini stall suggestions.UNSTUCK_GEMINI=offdisables themVEXCEL_ALLOW_AI_PROCESSING=1(optional): lets Vexcel imagery be sent to Gemini. Set it only with Vexcel's permissionWEB_ORIGINS(optional): comma-separated origins allowed to call the API; defaults to localhost:3000
.env and data/ are gitignored. Sponsor data is for hackathon use only and is never committed.
The live site runs on one Vultr server: Caddy (automatic HTTPS) in front of the Next.js app on port 3000 and the API on port 8000, both as systemd services. The configs are in deploy/. To ship the latest main:
ssh root@<server> 'bash /opt/unstuck/deploy/update.sh'Deploy only through git. Copying files onto the server by hand blocks the next pull.
apps/web Next.js 16 + Tailwind: property picker, live audit view, evidence, checks, report
services/api FastAPI
app/rules ada2010.py: deterministic checks, each with a citation
app/providers costar, vexcel (with geofence), matterport, scanmesh (doorway gaps from the mesh), usgs (public fallback), fixture (synthetic)
app/agents orchestrator.py: LangChain Deep Agent (deepagents) with three subagents over the same steps
app/vision gemini.py: stall suggestions on aerial imagery, for a person to accept
app/pipeline runner.py (shared steps, scripted fallback, event log), evaluate.py (measurements -> findings)
app/routes audits, events (SSE), measurements, image marks, review, export, featured + copy, portfolio
app/portfolio.py portfolio triage: Table 208.2 minimums and the measuring order, no provider calls
tests 153 tests: every threshold boundary, missing-data behaviour, API contracts, the Deep Agent graph with a scripted model, doorway screening and triage, the mesh gap measurement, walking-order numbering, accepted scan widths, token accounting, featured copies, portfolio triage
deploy Caddyfile, systemd units, update.sh
docs/HANDOFF.md Full product and engineering brief
The agent and the scripted pipeline call the same step functions and emit the same events (PLANNED, FETCH_STARTED, RULE_EVALUATED, REVIEW_REQUESTED, AGENT_NOTE, ...), so the UI doesn't depend on which one ran. Tests never call the real model.
An accessibility tool should pass its own audit. Checked on 15 Nov 2026 against the landing page, a real audit (The Granada Buildings, CoStar 120125) and its action plan:
- axe-core 4.10 (WCAG 2.0, 2.1 and 2.2 A/AA plus best practices): no violations. Checked on every stage layer (aerial, 3D interior, record), every inspector tab and the integrations panel, at 1440, 390 and 320 px wide.
- Lighthouse 12.2: accessibility 100 and best practices 100 on all three pages, on both desktop and mobile.
- Keyboard only. A tested path runs through the whole inspection:
- The view and inspector tabs follow the ARIA tab pattern (arrow keys, Home and End).
- Left and right arrows step through checks.
- A zoomed image pans with the arrow keys.
- Stall marks can be placed without a mouse: focus the image, move the crosshair with the arrows and press Enter.
- Focus rings stay visible on the dark stage.
- Reflow. Below 900 px the inspector stacks under the image, with no horizontal scrolling at 320 px.
Fixed along the way:
- the check arrows were 7 px wide
- headings skipped levels
- some landmarks were nested
- the log and record panels scrolled but couldn't be reached by keyboard
- hidden landing pins stayed in the tab order
- the inspector covered the whole stage on a phone
Automated tools catch only part of WCAG, and no screen-reader user has tested the app yet. So this is a screen, not a conformance claim, the same standard Unstuck applies to buildings.
- Whether a rule applies to a given building (construction date, alterations, exceptions, readily-achievable barrier removal) is not evaluated. California Title 24 and Texas TAS are not covered.
- Aerial imagery supports counting and locating stalls. It does not support stall widths, aisle widths or slopes.
- Many scans in the dataset are individual suites, some classified by Matterport as living space. Pick the scan that shows the public entrance or common areas.
- Many scans have no floor plan, so no doorway can be measured from them. Doorways in a scan are not matched to the main entrance; the entrance check still needs a person.
- A passing check covers one dimension, not overall accessibility.
- Slope and route checks from elevation data
- City-specific permit guidance for each fix
- Vexcel oblique views and object detection
- Owner names in the portfolio view, from a source that has them
- Turn the 3D tour to face the doorway selected in the list
- Tell from the scan photos whether an opening has a door in it, so fewer doorways need a person to look
The repository's history starts on 14 Nov 2026, during HackPrinceton Fall 2026.
- Rule engine (
services/api/app/rules/ada2010.py): the 2010 ADA numeric checks, the scan-doorway screening and triage bands, the borderline and provenance rules, and the tests for every threshold. - Provider adapters (
app/providers/): the CoStar extract loader and crosswalk, the Vexcel client with its geofence check, the Matterport Model API queries, the USGS fallback and the synthetic fixture. - Scan mesh measurement (
app/providers/scanmesh.py): our own geometry code. It clips the scan's triangles to a box at each doorway and finds the widest free gap. Pure Python, no geometry library. - Pipeline and audit trail (
app/pipeline/): the shared steps, the event log, the scripted fallback and the mapping from measurements to findings. - Agent design (
app/agents/): the prompts, tools, subagent roles and guardrails. The agent framework itself is LangChain's (see below). - Human-in-the-loop flows: stall marking and AI suggestions that only count once accepted, door measurements, accepted scan widths, review and sign-off.
- Web app (
apps/web/): every page and component, including the landing scene, the inspection workspace, the trip replay, the action plan, the field checklist and the portfolio view. - Deploy configs (
deploy/).
- Frameworks and libraries we call but did not write:
- Backend: FastAPI, Uvicorn, Pydantic, httpx, Pillow, SQLite, pytest, uv
- AI: LangChain
deepagentson LangGraph,langchain-anthropic,langchain-google-genai, the Anthropic SDK with Claude Opus 5.5, Google Gemini throughgoogle-genai - Frontend: Next.js 16, React 19, TypeScript, Tailwind CSS 4, Motion, Three.js with React Three Fiber, uqr for QR codes, Barlow fonts via Fontsource
- Checked with: axe-core and Lighthouse
- Data and services: the CoStar hackathon extract, the Vexcel imagery API, the Matterport Model API, Showcase embed and SDK (including the tour's own ruler), and USGS NAIP imagery.
- The standard: the thresholds are from the 2010 ADA Standards. We implemented them; we did not write them.
- Hosting: Vultr, Caddy, Let's Encrypt.
We used AI coding assistants to write code during the event, working from our direction. Commits made through Claude Code carry a Co-Authored-By: Claude trailer in the git history. The product decisions were ours: which checks to implement, that a scan can never pass a door by itself, that every result carries its source and method, and that AI suggestions count only once a person accepts them.
- 2010 ADA Standards: https://www.ada.gov/law-and-regs/design-standards/2010-stds/
- Matterport Model API: https://matterport.github.io/developer-docs/api/
- USGS NAIP imagery: https://imagery.nationalmap.gov/arcgis/rest/services/USGSNAIPImagery/ImageServer