How karkinnovation/damak-ai-job-hunter works
Awasar is a Nepal-focused job marketplace connecting job seekers and employers. The seeker workflow runs from vacancy discovery and profile creation through compatibility-ranked matches, applications, and status tracking; employers maintain business and job listings and review applicants or anonymous talent. Supporting capabilities include AI match explanations, application insights, and location-aware search. The map autocomplete path is documented in the README; other connections below rely only on the supplied excerpts and SOURCE INDEX, so unsampled relationships are omitted.
Main entry points: auth.ts Auth guards · server.ts Supabase access · matching.ts Compatibility scoring · page.tsx Role dashboard
Components 29
Job Discovery
- Home vacancies
app/page.tsx - Job search
app/jobs/page.tsx - Job detail
app/jobs/[id]/page.tsx
Seeker Journey
- Seeker profile
app/seeker/profile/page.tsx - Role dashboard
app/dashboard/page.tsx - Match browser
app/seeker/hunt/page.tsx - Compatibility scoring
lib/matching.ts - Job application
app/jobs/[id]/apply/page.tsx - Application tracking
app/seeker/applications/page.tsx - Application insights
lib/applicationInsights.ts
Employer Hiring
- Business profile
app/employer/profile/page.tsx - Job management
app/employer/jobs/page.tsx - Create vacancy
app/employer/jobs/new/page.tsx - Applicant review
app/employer/jobs/[id]/applicants/page.tsx - Talent browsing
app/employer/talent/page.tsx - Market insights
app/insights/page.tsx
Shared Services
- Authentication
app/auth/page.tsx - Auth form
components/AuthForm.tsx - Auth guards
lib/auth.ts - Supabase access
lib/supabase/server.ts - AI explanation API
app/api/ai/explain/route.ts - AI explanation
lib/ai.ts
Location Search
- Interactive location map
components/LeafletMap.tsx - Place autocomplete
components/PlaceSearch.tsx - Geocode API
app/api/geocode/route.ts - Photon OSM
- Reverse geocoding
app/api/reverse-geocode/route.ts
Other components
- Job seeker
- Employer
Connections 43
- Job seeker → Home vacancies: browses
app/page.tsx - Job seeker → Job search: searches
app/jobs/page.tsx - Home vacancies → Supabase access: queries vacancies
app/page.tsx - Job search → Supabase access: queries vacancies
app/jobs/page.tsx - Job search → Job detail: opens vacancy
app/jobs/page.tsx - Job seeker → Authentication: signs in
app/auth/page.tsx - Authentication → Auth form: renders
app/auth/page.tsx - Auth form → Supabase access: authenticates
components/AuthForm.tsx - Auth guards → Supabase access: checks claims
lib/auth.ts - Job seeker → Seeker profile: maintains profile
app/seeker/profile/page.tsx - Seeker profile → Auth guards: requires role
app/seeker/profile/page.tsx - Employer → Business profile: maintains business
app/employer/profile/page.tsx - Business profile → Auth guards: requires role
app/employer/profile/page.tsx - Job seeker → Role dashboard: views progress
app/dashboard/page.tsx - Role dashboard → Auth guards: requires user
app/dashboard/page.tsx - Role dashboard → Compatibility scoring: scores vacancies
app/dashboard/page.tsx - Role dashboard → Application insights: gets nudge copy
app/dashboard/page.tsx - Job seeker → Match browser: explores matches
app/seeker/hunt/page.tsx - Match browser → Auth guards: requires user
app/seeker/hunt/page.tsx - Match browser → Compatibility scoring: ranks matches
app/seeker/hunt/page.tsx - Job seeker → Job application: applies
app/jobs/[id]/apply/page.tsx - Job application → Auth guards: requires user
app/jobs/[id]/apply/page.tsx - Job application → Compatibility scoring: checks fit
app/jobs/[id]/apply/page.tsx - Job application → Application insights: uses insights
app/jobs/[id]/apply/page.tsx - Job seeker → Application tracking: tracks applications
app/seeker/applications/page.tsx - Application tracking → Auth guards: requires user
app/seeker/applications/page.tsx - Application tracking → Compatibility scoring: scores fit
app/seeker/applications/page.tsx - Employer → Job management: manages vacancies
- Employer → Create vacancy: posts vacancy
- Employer → Applicant review: reviews applicants
- Employer → Talent browsing: browses talent
- Employer → Market insights: views insights
- Job detail → Supabase access: loads vacancy
app/jobs/[id]/page.tsx - AI explanation API → Supabase access: loads match data
app/api/ai/explain/route.ts - AI explanation API → Compatibility scoring: calculates score
app/api/ai/explain/route.ts - AI explanation API → AI explanation: requests explanation
app/api/ai/explain/route.ts - Seeker profile → Interactive location map: uses map
app/seeker/profile/page.tsx - Business profile → Interactive location map: uses map
app/employer/profile/page.tsx - Interactive location map → Place autocomplete: renders autocomplete
components/LeafletMap.tsx - Place autocomplete → Geocode API: requests suggestions
- Geocode API → Supabase access: searches businesses
app/api/geocode/route.ts - Geocode API → Photon OSM: searches places
app/api/geocode/route.ts - Interactive location map → Reverse geocoding: resolves location