How madevi810/madevi-app works
Madevi is a web platform for knowledge articles, learning, community participation, online services, and administration. A representative user workflow is browsing an article in the web app, with API routes handling article requests and ArticleService implementing article operations. Other major product areas include exams, social features, shopping, and interactive tools. The graph reflects the supplied source excerpts and SOURCE INDEX; many feature directories are represented, but their internal calls were not sampled, so uncertain links are omitted.
Main entry points: article.ts Article service · pcb/route.ts Service ordering API · article-page-client.tsx Article reader · articles/route.ts Article API
Components 27
Knowledge and learning
- Article reader
src/components/article-page-client.tsx - Article API
src/app/api/v1/articles/route.ts - Article service
src/services/article.ts - Reading tools
src/components - Learning paths and exams
src/app/api/v1/learning-paths - Foundation records
src/app/api/v1/foundation
Community and participation
- Social and messaging
src/app/api/v1/social - Groups and discussion
src/app/api/v1/groups - Community activities
src/app/api/v1/line
Services and commerce
- Shopping and bundles
src/app/api/v1/ebelanja - Service ordering API
src/app/api/v1/jasa/pcb/route.ts - Service order logic
src/services/jasa.ts - Payments
src/services/payment.ts - Utilities and tools
src/app/api/v1/utilities - Circuit simulator
src/lib/emulator/circuit-model.ts
Administration and safety
- Moderation
src/services/moderation.ts - Security controls
src/services/security.ts - Owner administration
src/app/api/v1/owner
Platform runtime
- Account services
src/services/accounts.ts - Request authentication
src/auth/http.ts - Session management
src/auth/session.ts - Database client
src/db/client.ts - PostgreSQL
- API responses
src/api/response.ts - Server logging
src/server/logger.ts - Circuit solver worker
src/workers/circuit-solver.worker.ts
Other components
- Visitor or member
Connections 15
- Visitor or member → Article reader: browses
src/components/article-page-client.tsx - Article reader → Article API: submits corrections
src/components/article-page-client.tsx - Article API → Request authentication: authenticates requests
src/app/api/v1/articles/route.ts - Article API → Article service: calls article operations
src/app/api/v1/articles/route.ts - Article service → Moderation: uses moderation
src/services/article.ts - Article service → Article service: updates search projection
src/services/article.ts - Article reader → Reading tools: renders reading tools
src/components/article-page-client.tsx - Request authentication → Session management: authenticates sessions
src/auth/http.ts - Session management → Database client: gets database pool
src/auth/session.ts - Database client → PostgreSQL: opens pool connection
src/db/client.ts - API responses → Server logging: logs internal errors
src/api/response.ts - Service ordering API → Request authentication: checks authentication
src/app/api/v1/jasa/pcb/route.ts - Service ordering API → Service order logic: creates PCB orders
src/app/api/v1/jasa/pcb/route.ts - Service ordering API → Security controls: checks action limits
src/app/api/v1/jasa/pcb/route.ts - Circuit solver worker → Circuit simulator: uses circuit model
src/workers/circuit-solver.worker.ts