Tiny Detective is a premium Next.js 16 clone of the hackathon concept from the Lotushack2026 recording: a thin TinyFish investigation workspace for counterfeit discovery, seller-pattern analysis, and exportable marketplace or authority-ready reporting.
- Accepts one official product URL as the investigation seed.
- Streams a TinyFish-style investigation over
POST /api/investigate. - Ranks suspicious listings by counterfeit risk and seller-fraud risk.
- Builds a seller-centric dossier over
POST /api/case. - Generates both a marketplace packet and an authority packet over
POST /api/report. - Falls back to a realistic mock investigation when API keys are missing, so the full UI remains testable locally.
npm install
npm run devOpen http://localhost:3000.
Copy .env.example to .env.local and set whichever keys you have:
TINYFISH_API_KEY=
OPENAI_API_KEY=Behavior:
- No
TINYFISH_API_KEY: the app streams a mock investigation with Lazada-first sample results. TINYFISH_API_KEYpresent: the server attempts a live TinyFish run usinglitefirst, then retries blocked runs withstealth + proxy.- No
OPENAI_API_KEY: report narratives fall back to deterministic copy.
npm run dev
npm run lint
npm run typecheck
npm run build/investigation workspace/api/investigatestreaming investigation endpoint/api/casedossier generation endpoint/api/reportreport packet endpoint