How nikhil3235/snapclass-nikhil-mali works
SnapClass is a Streamlit attendance product for teachers and students. The main workflow routes a user into a portal, manages subjects and enrollment, identifies attendance from classroom photos or audio, lets teachers review and export results, and records confirmed logs in Supabase. Students also enroll with face/optional voice profiles and review attendance analytics. The graph includes the indexed screens, dialogs, pipelines, and storage modules; several links to unsampled dialog implementations are supported only by documented capabilities or module references.
Main entry points: teacher_screen.py Teacher portal · student_screen.py Student portal · db.py Attendance data access · app.py App router
Components 22
User portals
- App router
app.py - Home portal
src/screens/home_screen.py - Teacher portal
src/screens/teacher_screen.py - Student portal
src/screens/student_screen.py - Create subject
src/components/dialog_create_subject.py - Share subject
src/components/dialog_share_subject.py - Subject enrollment
src/components/dialog_enroll.py - Code enrollment
src/components/dialog_auto_enroll.py - Subject cards
src/components/subject_card.py
Attendance methods
- Face recognition
src/pipelines/face_pipeline.py - Photo attendance
src/components/dialog_add_photo.py - Voice analysis
src/pipelines/voice_pipeline.py - Voice attendance
src/components/dialog_voice_attendance.py - Review and export
src/components/dialog_attendance_results.py
Records and analytics
- Attendance analytics
src/components/dialog_attendance_results.py - Attendance data access
src/database/db.py - Supabase store
Shared foundation
- Supabase client config
src/database/config.py - Page styling
src/ui/base_layout.py - Brand header
src/components/header.py - Brand footer
src/components/footer.py
Other components
- Teacher or student
Connections 33
- Teacher or student → App router: opens
README.md - App router → Home portal: routes to
app.py - App router → Teacher portal: routes to
app.py - App router → Student portal: routes to
app.py - App router → Code enrollment: opens code
app.py - Teacher portal → Create subject: opens
src/screens/teacher_screen.py - Teacher portal → Share subject: opens
src/screens/teacher_screen.py - Teacher portal → Photo attendance: starts photo flow
src/screens/teacher_screen.py - Teacher portal → Face recognition: requests recognition
src/screens/teacher_screen.py - Teacher portal → Review and export: shows results
src/screens/teacher_screen.py - Teacher portal → Attendance analytics: requests analytics
src/screens/teacher_screen.py - Student portal → Subject enrollment: opens
src/screens/student_screen.py - Student portal → Face recognition: gets embeddings
src/screens/student_screen.py - Student portal → Voice analysis: gets embeddings
src/screens/student_screen.py - Student portal → Attendance data access: reads and updates
src/screens/student_screen.py - Teacher portal → Attendance data access: reads records
src/screens/teacher_screen.py - Teacher portal → Subject cards: renders
src/screens/teacher_screen.py - Student portal → Subject cards: renders
src/screens/student_screen.py - Voice attendance → Voice analysis: processes audio
src/components/dialog_voice_attendance.py - Voice attendance → Review and export: shows results
src/components/dialog_voice_attendance.py - Review and export → Attendance data access: saves logs
src/components/dialog_attendance_results.py - Attendance data access → Supabase client config: uses client
src/database/db.py - Supabase client config → Supabase store: connects
src/database/config.py - Face recognition → Attendance data access: loads students
src/pipelines/face_pipeline.py - Attendance data access → Supabase store: reads and writes
src/database/db.py - Teacher portal → Page styling: styles page
src/screens/teacher_screen.py - Student portal → Page styling: styles page
src/screens/student_screen.py - Home portal → Brand header: renders
src/screens/home_screen.py - Home portal → Brand footer: renders
src/screens/home_screen.py - Teacher portal → Brand header: renders
src/screens/teacher_screen.py - Teacher portal → Brand footer: renders
src/screens/teacher_screen.py - Student portal → Brand header: renders
src/screens/student_screen.py - Student portal → Brand footer: renders
src/screens/student_screen.py