Inspiration
Every day, claims travel further than their sources: a scholarship announcement becomes a viral summary with a bigger amount and the GPA requirement quietly dropped; a recruiter's pitch inflates the salary in the posting; a reimbursement note grows a larger total than the receipt. Fact-checkers check claims against the world. BuktiKu checks a claim against the one document it claims to come from — the source you paste — which is the check people actually need at the moment they are about to forward, sign, or pay.
What it does
Paste a claim and its source. BuktiKu returns a verdict — Consistent, Partly off, or Contradicted — broken into checkable points, each with its source evidence, the engine that decided it, and that engine's latency. A visible routing log records every routing decision: which layer ran, which was skipped, and exactly why. Fallbacks are stated, never hidden, and no AI verdict is ever simulated.
How I built it — the hybrid routing is the product
- Deterministic engine (always, offline, instant). Numbers, dates, names and dropped source conditions are extracted and compared by plain, unit-tested code. Code's verdict on numbers and dates always wins over any model's — the models propose; the engine decides.
- Gemini Nano on-device (Chrome Prompt API). When available, Nano extracts checkable points locally: the texts never leave the device for this stage, which is the privacy point of the design.
- Cloud Gemini via Firebase AI Logic (gemini-3.8-flash, GoogleAIBackend, App Check-protected). The deep semantic check — rephrased deadlines, softened requirements — runs only through Firebase AI Logic, imported and called at runtime; there is no standalone Gemini API key anywhere in the app. Calls are bounded (45 s per attempt, ≤3 attempts, quota/auth errors never retried), so a stalled or exhausted cloud degrades honestly to the local verdict.
Saved checks live in Cloud Firestore under users/{uid}/checks behind Firebase Anonymous Authentication and a per-user security rule (a user can read/write only their own subcollection). Reopening a saved check re-renders its stored verdict without re-running any engine — zero quota, works from the loaded page.
The UI is a dark, MotionSites-style interface (drifting blue→purple glows, glass cards, flowing gradient wordmark, scroll-reveal, reduced-motion support) with a hand-built SVG logo. The server is a dependency-free Node static server; the test suite is 30 node:test tests (30/30 passing, re-verified 2026-11-19), and a headless driver (scripts/verify-store.cjs) proves the Firestore path live, end to end. The cloud path is exercised by scripts/verify-cloud.cjs and, whenever it cannot run, degrades honestly in the routing log — exactly as the demo video shows.
Challenges
- The model named in early docs (gemini-2.5-flash) turned out to be retired for new users; the API's own 404 named its successor.
- The free tier allows only 20 cloud requests/day for the whole project — the app is designed to stay fully useful when the deep check is quota-skipped, and says so in the routing log.
- App Check debug tokens + a persistent browser profile were needed to verify the real cloud path headlessly without faking any part of it.
What's next
- reCAPTCHA v3 App Check for production (debug tokens are dev-only).
- A shareable verdict link per saved check.
- More extractors (percentages vs absolutes, currency conversion traps).
Built with
Firebase AI Logic, Firebase App Check, Cloud Firestore, Firebase Anonymous Authentication, Gemini Nano (Chrome Prompt API), Node.js, vanilla JS/CSS. No runtime dependencies.
Built With
- ai
- anonymous
- app
- authentication
- check
- cloud
- css
- firebase
- firestore
- gemini
- javascript
- logic
- nano
- node.js
