How wanonewan/wanwan works
弯弯机 is a browser-based virtual phone and companion app: users enter through its home screen, open simulated apps, and create or manage local content. Major capabilities include AI-assisted chat and novel writing, interactive games, social and messaging apps, and lifestyle apps such as banking, shopping, and music. Data is primarily stored in the browser; settings also configure model APIs. The excerpts show selected storage and feature behavior, but not the page wiring across the full app, so those connections are omitted or marked unverified.
Main entry points: home.js Home screen · db.js Browser database · bookstore.js AI bookstore · music-page.js Music player
Components 25
Phone shell and core
- App entry
index.html - Home screen
js/home.js - Settings
js/settings.js
Chat and creative
- Character profiles
js/character.js - Chat and messaging
js/wechat.js - Offline meetups
js/miss-you.js - Lorebook
js/lorebook.js - AI bookstore
js/bookstore.js - Interactive games
js/avg.js - Werewolf game
js/werewolf-game.js
Social and lifestyle apps
- Social feeds
js/ig-page.js - Phone apps
js/phone-apps.js - Banking and finance
js/bank.js - Bookstore app
js/bookstore.js - YumYum delivery
js/yumyum.js - Music player
js/music-page.js - MCP tools
js/terminal.js
Storage and runtime
- Browser database
js/db.js - Browser local storage
- App utilities
js/main.js - Service worker
service.js
Other components
- Browser user
- Model API
- MCP servers
- Music API
Connections 30
- Browser user → App entry: opens app
README.md - App entry → Home screen: opens home
- Home screen → Settings: opens
- Home screen → Character profiles: opens
- Home screen → Chat and messaging: opens
- Home screen → Offline meetups: opens
- Home screen → Lorebook: opens
- Home screen → AI bookstore: opens
- Home screen → Interactive games: opens
- Home screen → Werewolf game: opens
- Home screen → Social feeds: opens
- Home screen → Phone apps: opens
- Home screen → Banking and finance: opens
- Home screen → Bookstore app: opens
- Home screen → YumYum delivery: opens
- Home screen → Music player: opens
- Home screen → MCP tools: opens
- Settings → Browser database: reads and writes
js/settings.js - App utilities → Browser database: reads and writes
js/main.js - App utilities → Browser local storage: bridges settings
js/main.js - Interactive games → Browser database: stores game config
js/avg.js - Banking and finance → Browser database: stores balances
js/bank.js - AI bookstore → Browser database: reads characters
js/bookstore.js - AI bookstore → Model API: requests writing
- Social feeds → Browser database: stores feed data
js/ig-page.js - YumYum delivery → Browser database: stores orders
js/yumyum.js - Music player → Browser database: stores profile
js/music-page.js - Music player → Music API: searches music
js/music-page.js - MCP tools → MCP servers: calls tools
- Service worker → Browser user: shows notifications
service.js