How ephemerallycaden/hacksheffield-26 works
Off the Grid is a mobile pixel-art AR exploration game backed by a Next.js server. Players explore real streets on a hex map, spot objects with an on-device detector, and submit finds that the server resolves into collectible Locals, tiers, rewards, and progression. The app also supports offline find queuing, collections and profiles, leaderboards, and district cosmetic shops. The README documents the major product branches; sampled source confirms app routing, find handling, player authentication, database setup, and profile/shop behavior. Some mobile-to-server links are documented rather than shown in sampled client code.
Main entry points: finds.ts Find Resolution · route.ts Find API Route · index.ts Game Database · ArScreen.tsx AR Detection
Components 19
Mobile Game
- App Shell
mobile/src/App.tsx - Hex Exploration
mobile/src/map - AR Detection
mobile/src/screens/ArScreen.tsx - Offline Find Queue
mobile/src/queue
Finds and Progression
- Shared Game Contracts
contracts - Find API Route
src/app/api/finds/route.ts - Find Resolution
src/server/finds.ts - Local Catalogue
src/server/catalogue.ts - Hex Rarity and Place
src/server/hexes.ts - Loot and Progression
src/server/loot.ts
Player and Social
- Collection and Profile
mobile/src/screens/CollectionScreen.tsx - Profile Service
src/server/profile.ts - Leaderboard
src/server/leaderboard.ts
Cosmetic Shops
- District Shop
mobile/src/screens/ShopScreen.tsx - Shop and Equipping
src/server/shop.ts
Server Platform
- Device Authentication
src/server/player.ts - Game Database
src/server/db/index.ts - Map API Route
src/app/api/map/route.ts
Other components
- Explorer
Connections 27
- Explorer → App Shell: plays
README.md - App Shell → Hex Exploration: routes to
mobile/src/App.tsx - App Shell → AR Detection: routes to
mobile/src/App.tsx - Explorer → Hex Exploration: explores
README.md - Hex Exploration → Map API Route: requests hints
README.md - Explorer → AR Detection: spots and interacts
README.md - AR Detection → Offline Find Queue: queues offline finds
README.md - Offline Find Queue → Find API Route: submits when online
README.md - AR Detection → Find API Route: submits snapshot
README.md - Find API Route → Device Authentication: authenticates
src/app/api/finds/route.ts - Find API Route → Game Database: opens
src/app/api/finds/route.ts - Find API Route → Local Catalogue: loads
src/app/api/finds/route.ts - Find API Route → Find Resolution: dispatches
src/app/api/finds/route.ts - Find Resolution → Local Catalogue: resolves Local
src/server/finds.ts - Find Resolution → Hex Rarity and Place: gets hex info
src/server/finds.ts - Find Resolution → Loot and Progression: rolls rewards
src/server/finds.ts - Find Resolution → Game Database: records finds
src/server/finds.ts - Find Resolution → Shared Game Contracts: validates find data
src/server/finds.ts - Explorer → Collection and Profile: views collection
README.md - Collection and Profile → Profile Service: loads profile
README.md - Profile Service → Game Database: reads player history
src/server/profile.ts - Explorer → Leaderboard: views rankings
README.md - Leaderboard → Game Database: reads rankings
src/server/leaderboard.ts - Explorer → District Shop: browses cosmetics
README.md - District Shop → Shop and Equipping: requests shop
README.md - Shop and Equipping → Game Database: reads and writes
src/server/shop.ts - Shop and Equipping → Device Authentication: authenticates
src/server/shop.ts