AI-powered campus assistant with indoor navigation (Android), AR treasure hunt, and financial wellness tracking
Fine-tuned exclusively for Nottingham Trent University
mazebox is a smart campus navigation system built exclusively for NTU students. It combines:
- ๐ฑ Indoor Navigation (Android only) - Turn-by-turn directions inside NTU buildings
- ๐บ๏ธ 3D Outdoor Maps - Mapbox visualization for navigating between buildings
- ๐ค AI Assistant - 8 intelligent tools fine-tuned for NTU (rooms, timetables, shuttles, gym, events, charging stations)
- ๐ฎ Gamification - AR treasure hunt, daily quests, leaderboards, financial tracking
- ๐ฐ Financial Wellness - Track money saved through smart student choices
- Node.js 18+
- Mapbox API token (free): https://account.mapbox.com/
- Google Maps API key (optional): https://console.cloud.google.com/
# Install dependencies
npm install
# Create environment file
cp env.example .env
# Add your API keys to .env (optional for basic testing)
# GOOGLE_MAPS_API_KEY=your_key_hereView more documentation on Lua AI here
# Navigate to frontend
cd frontend
# Install dependencies
npm install
# Create environment file
echo "NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=your_mapbox_token" > .env.local
# Run dev server
npm run devOpen http://localhost:3000 ๐
Pre-built APK: frontend/public/apk/map.apk
Install on Android device to access indoor navigation feature.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ANDROID APP (Indoor Navigation) โ
โ โข Turn-by-turn indoor directions โ
โ โข Floor-by-floor pathfinding โ
โ โข Offline mode with downloadable maps โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ WEB APP (Next.js 16) โ
โ โข 3D outdoor maps (Mapbox GL) โ
โ โข AI chat interface โ
โ โข AR treasure hunt โ
โ โข Quest system & leaderboard โ
โ โข Game stats (Zustand + localStorage) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI AGENT (Lua AI) โ
โ โข 8 NTU-specific tools: โ
โ 1. Find available rooms โ
โ 2. Get student timetable โ
โ 3. Check gym equipment โ
โ 4. Shuttle status โ
โ 5. Find events โ
โ 6. Weather suggestions โ
โ 7. Directions to buildings โ
โ 8. Find charging stations โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Indoor (Android): MAE, ABK, ARK, BON buildings with floor plans
- Outdoor (Web): 3D Mapbox maps with routing (walking/cycling/driving)
- Seamless transition between outdoor and indoor navigation
- Room finder with proximity sorting
- Student timetable with auto-routing
- Gym equipment availability tracker
- NCTX shuttle real-time arrivals
- Campus events discovery
- Weather-aware suggestions
- Building directions (supports abbreviations: MAE, ARK, BON, etc.)
- Charging station locator
- 8 AR Treasures (Common โ Legendary rarity, 50-200 pts)
- 15+ Daily Quests (Exploration, Navigation, Financial)
- Financial Tracking (Monitor money saved, ยฃ150+/month potential)
- Leaderboard & daily streaks
- QR Code System for treasure collection
Frontend:
- Next.js 16.0, React 18.3, TypeScript 5.4
- Mapbox GL 3.1, react-map-gl 7.1
- Zustand 5.0, Framer Motion 11.18
- Tailwind CSS 3.4, Lucide React 0.400
- @google/model-viewer 4.1, QRCode 1.5
Backend:
- Lua CLI 3.0.2, TypeScript 5.9, Zod 3.24
- Node.js 20+, tsx 4.7
- Axios 1.6
APIs:
- Google Geocoding (building locations)
- Mapbox Directions (routing)
/- Main map + AI chat/hunt- AR treasure hunt/quests- Daily quest management/leaderboard- Student rankings/qr-generator- Generate QR markers for treasures
- โ First campus app with true indoor navigation (Android)
- โ Fine-tuned exclusively for NTU (knows all building codes, locations, services)
- โ Gamification meets utility (fun + practical)
- โ Financial wellness tracking (teaches responsible spending)
- โ Multi-platform (Web + Android, iOS support coming)
lua-navigator/ (mazebox)
โโโ src/ # AI Agent (Lua)
โ โโโ index.ts
โ โโโ skills/
โ โ โโโ campus-navigator.skill.ts
โ โโโ services/ # Google Geocoding, Mapbox
โ โโโ data/ # NTU rooms, shuttles, gym, events
โ
โโโ frontend/ # Next.js Web App
โ โโโ app/ # Pages
โ โโโ components/ # React components
โ โโโ context/ # Zustand game state
โ โโโ data/ # Buildings, treasures, quests
โ โโโ public/
โ โโโ models/ # 3D GLB models
โ โโโ apk/ # Android build
โ
โโโ package.json
โโโ lua.skill.yaml
โโโ README.md
- iOS app with indoor navigation
- Real-time API integrations (NTU Timetable, EWS, NCTX)
- Voice interface
- Multi-language support
- White-label for other universities
