How rituuu001/samarthya works
Samarthya is a proof-of-work hiring platform: employers publish practical sprints, candidates discover and apply, complete tasks and submit work, and employers evaluate it before proof and later connection. The React app presents role-based portals and calls a FastAPI REST backend; backend routers expose domain operations and services enforce workflow rules over SQLAlchemy models and PostgreSQL. Assessment, anonymized application review, file evidence, payment progress, proof records, and identity-aware connection are distinct capabilities. Several backend routes and frontend screens were not sampled; their inclusion and workflow links rely on README descriptions, so unsampled implementation details are not inferred.
Main entry points: main.py FastAPI entry · applications.py Applications · App.tsx App shell · assessment_service.py Assessment grading
Components 26
Role-based experience
- App shell
frontend/src/App.tsx - Candidate portal
frontend/src/screens/candidate/CandidatePortal.tsx - Employer portal
frontend/src/screens/employer/EmployerPortal.tsx - Create sprint
frontend/src/screens/employer/CreateProofSprint.tsx - Submit work
frontend/src/screens/candidate/Submission.tsx - Review work
frontend/src/components/portal/SubmissionReview.tsx - API client
frontend/src/api/client.ts
Sprint workflow
- Sprint management
backend/app/routers/sprints.py - Sprint rules
backend/app/services/sprint_service.py - Applications
backend/app/routers/applications.py - Application rules
backend/app/services/application_service.py
Evaluation and proof
- Submission handling
backend/app/routers/submissions.py - Submission rules
backend/app/services/submission_service.py - Assessment API
backend/app/routers/assessments.py - Assessment grading
backend/app/services/assessment_service.py - Skill proof
backend/app/routers/proof_records.py
Platform services
- Authentication
backend/app/routers/auth.py - Identity and connection
backend/app/routers/connection_requests.py - File storage
backend/app/core/storage.py - Payment progress
backend/app/routers/payments.py - FastAPI entry
backend/app/main.py
Persistence
- Database sessions
backend/app/db/session.py - Domain records
backend/app/models/sprint.py
Other components
- Candidate
- Employer
- PostgreSQL
Connections 39
- Candidate → App shell: uses
README.md - Employer → App shell: uses
README.md - App shell → Candidate portal: renders
frontend/src/App.tsx - App shell → Employer portal: renders
frontend/src/App.tsx - Employer portal → Create sprint: creates
README.md - Candidate portal → Submit work: submits through
README.md - Employer portal → Review work: reviews through
README.md - App shell → API client: calls
frontend/src/App.tsx - API client → FastAPI entry: sends REST requests
README.md - FastAPI entry → Authentication: registers
backend/app/main.py - FastAPI entry → Sprint management: registers
backend/app/main.py - FastAPI entry → Applications: registers
backend/app/main.py - FastAPI entry → Submission handling: registers
backend/app/main.py - FastAPI entry → Assessment API: registers
backend/app/main.py - FastAPI entry → Skill proof: registers
backend/app/main.py - FastAPI entry → Identity and connection: registers
backend/app/main.py - FastAPI entry → File storage: registers
backend/app/main.py - FastAPI entry → Payment progress: registers
backend/app/main.py - Sprint management → Sprint rules: delegates to
- Applications → Application rules: calls
backend/app/routers/applications.py - Submission handling → Submission rules: delegates to
- Assessment API → Assessment grading: delegates to
- Application rules → Assessment grading: uses assessment rules
backend/app/services/application_service.py - Candidate → Sprint management: discovers sprints
README.md - Candidate → Applications: applies
backend/app/routers/applications.py - Employer → Sprint management: publishes sprint
README.md - Employer → Applications: reviews applicants
backend/app/routers/applications.py - Candidate → Submission handling: submits task
README.md - Employer → Assessment API: evaluates work
README.md - Assessment grading → Skill proof: creates verified proof
README.md - Applications → Identity and connection: supports later connection
README.md - Submission rules → File storage: uses evidence files
backend/app/services/submission_service.py - Application rules → Domain records: reads and writes
backend/app/services/application_service.py - Assessment grading → Domain records: reads and writes
backend/app/services/assessment_service.py - Sprint rules → Domain records: reads and writes
backend/app/services/sprint_service.py - Database sessions → PostgreSQL: opens sessions
backend/app/db/session.py - FastAPI entry → Database sessions: provides database dependency
backend/app/main.py - Applications → Database sessions: requests session
backend/app/routers/applications.py - Sprint rules → Payment progress: tracks payment progress
README.md