How admin-mcua/ydutsnu works
Unstudy is an AI-assisted study web app: students upload notes or PDFs, generate editable flashcards and quizzes, then study and share them; accounts retain sets and quizzes. The map also preserves its documented profiles, administration, social features, and multiplayer quiz rooms. Server routes in src/index.tsx orchestrate learning operations, while browser modules provide their interfaces. Source excerpts confirm selected calls; README capabilities and the source index identify important unsampled areas, whose internal links are omitted where evidence is unavailable.
Main entry points: index.tsx API routes · common.js Browser helpers · app.js Study workspace · social.ts Social services
Components 22
Student experience
- Sign-in UI
public/static/auth.js - Browser helpers
public/static/common.js - Study workspace
public/static/app.js - Quiz player
public/static/quiz.js - Shared cards UI
public/static/share-flashcards.js - Game interface
public/static/game.js - Admin dashboard
public/static/admin.js
Application services
- API routes
src/index.tsx - Session helpers
src/lib/auth.ts - Device capture
src/lib/device.ts - Page shells
src/pages.tsx
Study content
- AI generation
src/lib/gemini.ts - Sets and quizzes
migrations/0001_initial_schema.sql
Social and play
- Social workspace
public/static/app.js - Social services
src/social.ts - Web push
src/lib/push.ts - Game rooms
src/game.ts - Room and player data
migrations/0006_game_rooms.sql
Other components
- Student
- Google Gemini
- Email delivery
- Push endpoints
Connections 31
- Student → Sign-in UI: signs in
README.md - Student → Study workspace: studies
README.md - Sign-in UI → Browser helpers: uses helpers
public/static/auth.js - Study workspace → Browser helpers: uses helpers
public/static/app.js - Quiz player → Browser helpers: uses helpers
public/static/quiz.js - Shared cards UI → Browser helpers: uses helpers
public/static/share-flashcards.js - Game interface → Browser helpers: uses helpers
public/static/game.js - Admin dashboard → Browser helpers: uses helpers
public/static/admin.js - Sign-in UI → API routes: calls API
public/static/auth.js - Study workspace → API routes: calls API
public/static/app.js - API routes → Session helpers: uses sessions
src/index.tsx - API routes → Page shells: renders shells
src/index.tsx - API routes → AI generation: generates content
src/index.tsx - AI generation → Google Gemini: requests generation
src/lib/gemini.ts - API routes → Sets and quizzes: saves sets
src/index.tsx - Study workspace → Social services: calls API
public/static/app.js - Social workspace → Social services: calls API
public/static/app.js - API routes → Device capture: captures signup device
src/index.tsx - API routes → Email delivery: sends reset codes
src/index.tsx - API routes → Social services: registers social routes
src/index.tsx - Social services → Session helpers: checks sessions
src/social.ts - Social services → Web push: queues notifications
src/social.ts - Web push → Push endpoints: sends pushes
src/lib/push.ts - Study workspace → Game rooms: calls room API
public/static/app.js - Game interface → Game rooms: calls room API
- Game rooms → Session helpers: checks sessions
src/game.ts - Game rooms → Room and player data: reads and writes
src/game.ts - Student → Quiz player: takes quizzes
README.md - Student → Shared cards UI: reviews shared cards
README.md - Student → Game interface: plays room quiz
- Admin dashboard → API routes: calls API