Architecture Map
Start with the shape before touching code.
Top-Level Tree
./.env.example ./AGENTS.md ./README.md ./SECURITY.md ./api/_lib/bookingStore.js ./api/_lib/firebaseAdmin.js ./api/_lib/sheetsGateway.js ./api/booking/availability.js ./api/booking/cancel.js ./api/booking/create.js ./api/booking/lookup.js ./api/claude.js ./api/payments/checkout.js ./api/payments/webhook.js ./apps/mobile/app.json ./apps/mobile/index.js ./apps/mobile/package-lock.json ./apps/mobile/package.json ./docs/mobile-vercel-rollout.md ./index.html ./mobile/App.js ./mobile/app.json ./mobile/assets/android-icon-background.png ./mobile/assets/android-icon-foreground.png ./mobile/assets/android-icon-monochrome.png ./mobile/assets/favicon.png ./mobile/assets/icon.png ./mobile/assets/splash-icon.png ./mobile/babel.config.js ./mobile/components/RippleButton.js ./mobile/components/StrokeAnalysis.js ./mobile/components/SwimIn.js ./mobile/components/WaterReveal.js ./mobile/components/WaveBackground.js ./mobile/data.js ./mobile/index.js ./mobile/package-lock.json ./mobile/package.json ./mobile/screens/AboutScreen.js ./mobile/screens/ArticleScreen.js ./mobile/screens/ContactScreen.js ./mobile/screens/HomeScreen.js ./mobile/screens/MoreScreen.js ./mobile/screens/NewsListScreen.js ./mobile/screens/PaymentScreen.js ./mobile/screens/PlacementsScreen.js ./mobile/screens/RecordsScreen.js ./mobile/screens/ServicesScreen.js ./mobile/theme.js ./package-lock.json ./package.json ./packages/shared-booking/package.json ./public/CNAME ./public/athletes/chloe-kim.webp ./public/athletes/chris-chang.webp ./public/athletes/collin-lee.jpg ./public/athletes/eric-lee.webp ./public/athletes/grace-lee.webp ./public/athletes/kathleen-bendoraitis.webp ./public/athletes/kayla-rodriguez.jpg ./public/athletes/matt-bendoraitis.webp ./public/athletes/michael-granin.webp ./public/athletes/rebekah-jung.webp ./public/athletes/richard-poplawski.webp ./public/athletes/steven-bendoraitis.webp ./public/fonts/Copperplate-Gothic-Std-29-BC.ttf ./public/hero-video.mp4 ./public/icons/icon-1024.png ./public/icons/icon-192.png ./public/icons/icon-192.svg ./public/icons/icon-512.png ./public/icons/icon-512.svg ./public/logos/boston-university.png ./public/logos/bowdoin.jpg ./public/logos/bryant.jpg ./public/logos/carnegie-mellon.jpg ./public/logos/columbia.jpg ./public/logos/harvard.png ./public/logos/holy-cross.png ./public/logos/lafayette.png ./public/logos/lehigh.png ./public/logos/maine.png ./public/logos/nyu.png ./public/logos/princeton.png ./public/logos/providence.webp ./public/logos/rochester.png ./public/logos/tcnj.webp ./public/logos/ucsd.jpg ./public/logos/williams.png ./public/offline.html ./public/photos/chase-cut-poster.jpg ./public/photos/chloe-kim-v3.jpg ./public/photos/chloe-pool.jpg ./public/photos/eric-lee-ot.jpg ./public/photos/eric-lee.jpg ./public/photos/ethan-800-record.jpg ./public/photos/ethan-reines-state-record.jpg ./public/photos/harrison-lee-sectionals.jpg ./public/photos/jacob-kim-roster.jpg ./public/photos/jacob-kim-ucsd.jpg ./public/photos/jessie-wolf-roster.jpg ./public/photos/joshua-reines-sectionals.jpg ./public/photos/junior-nationals-2026.jpg ./public/photos/kate-diving.jpg ./public/photos/kate-hurst-national-team.jpg ./public/photos/kate-hurst-womens-roster.jpg ./public/photos/kate-olympic-trials.jpg ./public/photos/kate-usa.jpg ./public/photos/matthew-jun-nj-gold-2026.jpg ./public/photos/olivia-de-los-reyes-providence.jpg ./public/photos/richard-action.jpg ./public/photos/richard-hometown-hero.jpg ./public/photos/roy-dafinoiu.jpg ./public/photos/speedo-sectionals-westmont-2026.jpg ./public/photos/team-trials.jfif ./public/photos/team-trials.jpg ./public/photos/timothy-lee-roster.jpg ./public/photos/tyr-pro-series-logo.jpg ./public/photos/tyr-pro-series-logo.png ./public/photos/ymca-futures-relay-2026.jpg
Agent Reading Order
These files are the first tour stops.
packages/shared-booking/src/index.js
Core execution surface likely to coordinate the main behavior.
20 linessrc/lib/config.js
Configuration loading surface. Changes here can affect every environment.
5 linesapps/mobile/index.js
Core execution surface likely to coordinate the main behavior.
5 linesmobile/index.js
Core execution surface likely to coordinate the main behavior.
9 linesserver/index.js
Core execution surface likely to coordinate the main behavior.
55 linesAGENTS.md
Agent instructions. This should constrain future automation.
25 linesREADME.md
Human-facing overview. Read this before touching code.
22 linespackage.json
Node scripts, package metadata, and workflow clues.
30 lines.env.example
Configuration contract. Shows required secrets without exposing real values.
19 linespackages/shared-booking/package.json
Implementation surface likely to contain core behavior.
8 linessrc/App.jsx
Implementation surface likely to contain core behavior.
144 linesdocs/mobile-vercel-rollout.md
Potentially important repo file.
21 linesRunnable Commands
npm run devvite --port 8421npm run buildvite buildnpm run build:vercelVITE_BASE_PATH=/ vite buildnpm run build:ghpagesVITE_BASE_PATH=/peakaquatics1/ vite buildnpm run previewvite previewnpm run deployVITE_BASE_PATH=/ vite build && npx gh-pages -d distnpm run deploy:ghpagesVITE_BASE_PATH=/ vite build && npx gh-pages -d distGuardrails
Where an agent should slow down.
Risk Areas
Auth, token, or credential code needs tighter review.
scripts/setup-google-auth.js
Cookie, session, and environment config paths can expose or mishandle account access.
.env.examplescripts/.env.example
Package scripts include deployment or publishing commands.
package.json#deploypackage.json#deploy:ghpages
Safe First Tasks
- Read README and agent instruction files before editing.
- Run the cheapest available verification command before and after changes.
- Start with docs, examples, or tests before touching core implementation.
- Run `npm run build` after structural or UI changes.
- Improve or cross-link docs when behavior is unclear.
Exact Code, Plain English
Use real snippets as the trust anchor.
export const SESSION_TYPES = [
{ id: 'intro', label: 'Intro Call', duration: '15 min' },
{ id: 'video', label: 'Video Review', duration: '20 min' },
{ id: 'private', label: 'Private Session', duration: '1 hr' },
{ id: 'semi', label: 'Semi-Group', duration: '1.5 hr' },
{ id: 'group', label: 'Group Session', duration: '1.5 hr' },
{ id: 'dryland', label: 'Dryland', duration: '1 hr' },
]
export const TIME_SLOTS = [
'9:00 AM', '9:30 AM', '10:00 AM', '10:30 AM', '11:00 AM', '11:30 AM',
'12:00 PM', '12:30 PM', '1:00 PM', '1:30 PM', '2:00 PM', '2:30 PM',
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
export const API_BASE =
import.meta.env.VITE_API_BASE?.replace(/\/$/, '') || '/api'
export const APP_NAME = 'Peak Aquatic Sports'
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
import { registerRootComponent } from 'expo'
import App from './src/App'
registerRootComponent(App)
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
import { registerRootComponent } from 'expo';
import App from './App';
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
const app = express()
const port = process.env.PORT || 3001
const allowedOrigin = process.env.CLAUDE_ALLOWED_ORIGIN || '*'
if (!process.env.ANTHROPIC_API_KEY) {
console.warn('ANTHROPIC_API_KEY is not set. Claude API calls will fail.')
}
const anthropic = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY })
app.use(cors({ origin: allowedOrigin }))
app.use(express.json({ limit: '1mb' }))
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.