OpporCheck — Hackathon Submission
Inspiration
Every year, migrant workers sign overseas contracts they don't fully understand. A recruiter's chat promises one thing; the paper says another; fees appear from nowhere. I built OpporCheck for job seekers weighing offers far from home — not to call things scams, but to show what was promised, what the paper actually says, and what to ask before signing anything or paying any fee.
What it does
OpporCheck is a decision-support workspace with three superpowers: Promise-to-Paper compares job ads, recruiter messages, offer letters, and contracts term-by-term (consistent, discrepancy, not addressed, needs clarification), each with exact quotes and page numbers; Opportunity Review analyzes a single posting for concerns, missing info, and follow-up questions; and Evidence Check compares claims against official government sources across 9 migration corridors. A mandatory Privacy Check scans every page for personal data on-device before any AI sees it, and the full UI is bilingual (English + Bahasa Indonesia).
How I built it
The frontend is Next.js 16 + React 19 + TypeScript + Tailwind, running entirely on Firebase's free Spark plan. All AI runs in the browser through Firebase AI Logic: on-device first via Gemini Nano, with cloud fallback to Gemini Flash only on explicit consent — and every run honestly reports where it actually processed. A stateless FastAPI backend (Python) handles PDF text extraction with per-page PaddleOCR fallback for scans, plus allowlisted official-source retrieval; it stores nothing and calls no AI models. Reports persist in Firestore under strict owner-scoped security rules.
Challenges I ran into
Trust was the hardest problem, three times over: making AI quotes verifiable (every excerpt is validated word-for-word against the source, and anything invented is dropped and counted on screen); making document reading believable (native PDF text first, OCR only for scans, with per-page outcomes and confidence warnings — failures are never silent); and making privacy real rather than a checkbox (approvals are cryptographically bound to the exact cleaned text, so any edit invalidates them and forces a fresh check).
Accomplishments that I'm proud of
The honesty system: the app tells you where AI ran (on-device vs cloud), which pages were read how, what was excluded, and what it dropped — no black boxes. The privacy gate holds across every AI entry point and every save. Everything runs with zero paid services. And the whole flow works end-to-end in Bahasa Indonesia for the workers who need it most (drafts pending native-speaker review, which I disclose in-app).
What I learned
Hybrid AI is a design discipline, not just an SDK call: one response schema serves both on-device and cloud paths, and the UX must treat "the cloud said no" and "the device said no" as completely different outcomes. I learned that attribution-checking beats prompt-praying for killing hallucinations, and that privacy-by-design means enforcing it at every call site — a gate consulted in only one place is decoration.
What's next for OpporCheck
Native-speaker review of all Indonesian copy; more migration corridors and source catalogs; record expiry and retention controls; bulk export of user records; an independent privacy assessment; and deeper origin-country coverage so workers get protection guidance before departure, not just dispute channels after arrival.
Built With
- cloud-firestore
- docker
- eslint
- fastapi
- firebase-ai-logic
- firebase-app-check
- firebase-auth
- firebase-emulators
- firebase-web-sdk
- gemini
- gemini-nano
- motion
- next.js
- node-.js
- paddleocr
- pydantic
- pymupdf
- pypdf
- python
- railway
- react
- tailwind-css
- typescript
- uvicorn