Work 04
ODA, Open Decks Atlas
Web and iOS application
Jul–Nov 2026
Open Decks Atlas is a free, public directory of open-deck nights and practice spaces for DJs, built as a Next.js web application over Supabase Postgres and PostGIS, with a separate React Native client. Visibility is enforced in the database rather than in the pages above it.
01 Overview
Open Decks Atlas lists open-deck nights, jams and bookable practice spaces. Each listing carries the equipment actually in the booth, a skill vibe (beginner-friendly, mixed or advanced), the event type, how a set is signed up for, where the information came from, how many DJs vouch for it, and when a person last confirmed it. Anyone can browse without an account.
The web application is deployed on Cloudflare Workers through OpenNext and is publicly reachable. Sign-in is by emailed link and is invite-only during the beta. The repository README describes the data as seeded by hand in one city, San Diego. A separate iOS client, built with Expo and React Native, reads the same backend.
02 Context and motivation
The site’s own About page states the problem it addresses: "Showing up to a ‘beginner night’ to find a locked-off booth and a three-hour headliner set is a bad evening." It says each listing therefore tries to answer the practical questions up front: gear, vibe, source and freshness. It also states the intended audience, beginners looking for a low-pressure room and travellers who want to find equipment in a new city.
The same page says San Diego is seeded by hand first "to learn whether DJs elsewhere ask to be added", and offers a city-request form for that purpose.
03 Architecture
The web application is a single Next.js application (App Router, React 19, TypeScript) at the repository root. Persistence is Supabase: PostgreSQL with PostGIS for locations, Supabase Auth for sign-in, and row-level security policies as the authority on what each role can read or write. The repository holds 58 ordered SQL migrations, a seed file of demo data, and read-only SQL verifiers for checking a database against the expected schema and grants.
The map is MapLibre GL JS over OpenFreeMap tiles with no access token. The map and the list render the same filtered result, and the listing directory remains usable with JavaScript off for the list itself. Request validation uses Zod.
Roles are administrator, moderator and contributor. Public reads of listings and venues require a live city and an active venue, and the API roles read cities, venues and events through column grants that exclude internal fields. A shared beta contract document defines roles, state machines, kill switches, error codes and idempotency rules for the web, mobile and admin surfaces, and is checked by tests.
04 Implementation
Submissions do not reach the public map directly. A submission enters a review queue, and a moderator or administrator promotes it through a database function that creates the approved listing; the approving function keeps the submitted age restriction, and a reviewer cannot review their own submission. Corrections, claim requests, city requests and an audit log of administrative actions each have their own tables with their own policies. Abuse guardrails cover per-listing and per-user limits, and database-level switches can place intake in maintenance mode.
Discovery covers city, vibe, type, genre, equipment, verified-only and age filters, a directory search, and geographic discovery (near me, radius, distance) backed by PostGIS. Events carry a city timezone, with recurring and one-off occurrences and a "tonight" and "next 7 days" view. A signup feature for event participation exists in the schema and web application.
The iOS client is an Expo SDK 57 / React Native application. It vendors the web repository as a pinned git submodule and reaches it only through an allowlisted bridge of portable TypeScript, and it talks to Supabase directly with the publishable key, so the database policies remain the authority. Its session is stored encrypted, with the key in the device keychain through SecureStore. Explore is map-first with a list path for VoiceOver users.
05 Testing and evaluation
The web repository’s GitHub Actions runs on the head commit of 30 November 2026 all passed: 3,169 unit tests in 167 files; 1,261 database integration tests in 50 files, run against a schema rebuilt from migration 0001; and an end-to-end Playwright suite of 477 tests, run against a database rebuilt from zero and a production build, plus a 14-test WebKit smoke run with accessibility checks.
The database suite includes raw requests to the Data API with the anonymous key and with a self-signed-up user, to check what is actually exposed. The release record for the first release gate (ODA-RELEASE-01) lists these probes, the clean-from-zero migration, a dependency audit and a regression test for an open-redirect defect found and fixed during that work.
The mobile repository’s CI on its head commit of 29 November 2026 passed 1,219 unit tests (19 skipped) and 172 integration tests against a local Supabase stack. A build was accepted for a controlled internal TestFlight beta on 22 October 2026 after tests on a physical iPhone, including VoiceOver.
06 Limitations and open work
The repository holds migrations 0001 to 0058, but the hosted production database is recorded as verified at 0051; migrations 0052 to 0058 have not been applied and each needs its own authorised roll. The release checklist lists several production items as still open, including a real production sign-in test, auth email delivery limits and domain authentication, and the encrypted-backup export.
Sign-up is disabled, so contributors need an invitation. Self-service account deletion is contained and deletion requests are handled by email. Only San Diego is seeded. The mobile app has not been released outside internal TestFlight.