How dorpy-dotcom/chuxmart works
Chuxmart is a browser-based game exchange demo. Players enter a demo sign-in, manage a wishlist and unused-game inventory, donate matched games for points, and redeem points for generated Steam-style keys; they can also browse community profiles and donation history. The dashboard dispatches to these feature views, which share in-memory state persisted in localStorage. The sampled source supports these UI and state relationships; the community and shop data are demo-only, with no connected authentication or exchange service.
Main entry points: state.ts User & community state · dashboardView.ts Dashboard & tabs · main.ts App bootstrap · loginView.ts Demo sign-in
Components 10
Entry & Dashboard
- App bootstrap
src/main.ts - Demo sign-in
src/loginView.ts - Dashboard & tabs
src/dashboardView.ts
Exchange Features
- Wishlist & inventory
src/wishlistView.ts - Donation matching
src/matchView.ts - Community profiles
src/matchView.ts
Points & Shop
- Points shop
src/shopView.ts
Demo State
- User & community state
src/state.ts
Other components
- Player
- Browser localStorage
Connections 17
- Player → App bootstrap: opens
- App bootstrap → User & community state: reads session
src/main.ts - App bootstrap → Demo sign-in: renders signed out
src/main.ts - App bootstrap → Dashboard & tabs: renders signed in
src/main.ts - Player → Demo sign-in: submits credentials
src/loginView.ts - Demo sign-in → User & community state: updates profile
src/loginView.ts - Demo sign-in → App bootstrap: calls rerender
src/main.ts - Dashboard & tabs → User & community state: reads and updates
src/dashboardView.ts - Dashboard & tabs → Wishlist & inventory: dispatches tab
src/dashboardView.ts - Dashboard & tabs → Donation matching: dispatches tab
src/dashboardView.ts - Dashboard & tabs → Community profiles: dispatches tab
src/dashboardView.ts - Dashboard & tabs → Points shop: dispatches tab
src/dashboardView.ts - Wishlist & inventory → User & community state: edits lists
src/wishlistView.ts - Donation matching → User & community state: matches and donates
src/matchView.ts - Community profiles → User & community state: reads profiles
src/matchView.ts - Points shop → User & community state: redeems points
src/shopView.ts - User & community state → Browser localStorage: loads and saves
src/state.ts