How apexstudying-cmd/prepza works
Prepza is a student learning platform with document-based AI study materials, subscriptions, organisation services, and encrypted communications. Its principal workflow is a student using the web app to import study material and request generated learning content; the excerpts show document extraction and AI generation capabilities, but not the complete upload-to-generation route wiring. The graph also preserves billing, administration, and communications as major product areas. Several backend links are supported only by the SOURCE INDEX; unsampled subsystems are represented without guessed call chains.
Main entry points: app.py Flask application · main.tsx Application entry · ai_reusable_generation.py Reusable artifacts · App.tsx Web application
Components 22
Student app
- Web application
frontend/src/App.tsx - Application entry
frontend/src/main.tsx - Document import
frontend/src/ExternalDocumentImport.tsx - Generation screens
frontend/src/generation/GenerationScreens.tsx
Study generation
- Document extraction
document_pipeline.py - AI generation
ai_service.py - Reusable artifacts
ai_reusable_generation.py - Generation storage
ai_generation_store.py - Object storage
object_storage.py
Plans and payments
- AI entitlements
ai_economics.py - Usage billing
usage_billing.py - Student subscriptions
student_subscription_billing.py - Discovery billing
discovery_billing.py - Organisation portal
b2b_organisation_portal.py - Campaign payments
b2b_campaign_payments.py
Administration
- Admin operations
admin_reconciled_core_a.py - Organisation admin
admin_reconciled_organisation.py
Secure communications
- Chat routes
chat_group_routes.py - Encrypted chat API
e2ee_chat_routes.py - Encrypted chat client
frontend/src/crypto/e2eeFetchBridge.ts
Other components
- Student
- Flask application
app.py
Connections 24
- Student → Application entry: uses
- Application entry → Web application: mounts
frontend/src/main.tsx - Application entry → Encrypted chat client: installs bridge
frontend/src/main.tsx - Document import → Web application: opens within
- Generation screens → Web application: appears within
- Flask application → Document extraction: imports
app.py - Document extraction → Flask application: reads document; updates status
document_pipeline.py - Flask application → AI generation: imports
app.py - Flask application → AI entitlements: imports
app.py - Flask application → Usage billing: imports
app.py - Flask application → Student subscriptions: imports
app.py - Flask application → Discovery billing: imports
app.py - Flask application → Organisation portal: imports
app.py - Flask application → Campaign payments: imports
app.py - Flask application → Admin operations: imports
app.py - Flask application → Organisation admin: imports
app.py - Flask application → Chat routes: imports
chat_group_routes.py - Reusable artifacts → AI generation: uses generators
ai_reusable_generation.py - Reusable artifacts → AI entitlements: checks entitlements
ai_reusable_generation.py - Flask application → Reusable artifacts: imports
app.py - Flask application → Object storage: imports
app.py - Organisation portal → Object storage: uses storage
b2b_organisation_portal.py - Encrypted chat client → Encrypted chat API: calls API
- Flask application → Encrypted chat API: registers routes
app.py