Migrates all three external dependencies to TinyFish SDK + Groq. The
GitHub API and StackExchange API are replaced entirely by
client.search.query() with site:github.com and site:stackoverflow.com
filters — no more GITHUB_TOKEN, STACKEXCHANGE_KEY, rate limit retries,
or sequential delays. OpenRouter is replaced by groq-sdk directly. Mino
raw SSE fetch is replaced by client.agent.stream with typed events and
result validation. Promise.allSettled for parallel agents.
mino-client.ts, openrouter.ts, and the original search.ts are all
deleted.
Co-authored-by: Krishna Agarwal <krishna.laptop3727@gmail.com>
## Summary
- Upgrade OpenRouter model from `google/gemini-2.0-flash-001` to
`google/gemini-3.1-flash-lite-preview`
- 2.5x faster time-to-first-token, 45% faster output, and ~2x cheaper
## Test plan
- [ ] Run the code-reference-finder app and verify code analysis still
works correctly with the new model
Co-authored-by: Simantak Dabhade <simantak@mac.local>
# Code Reference Finder
**Live:**
[https://code-reference-finder.vercel.app](https://code-reference-finder.vercel.app)
Code Reference Finder helps you understand unfamiliar code by finding
real-world usage examples from GitHub repositories and Stack Overflow.
Paste a code snippet, and it uses AI to analyze the libraries and APIs
used, then dispatches web agents to search GitHub and Stack Overflow,
extract relevant examples, and display them side-by-side with relevance
scores.
## How it uses TinyFish
- Dispatches 10 parallel Mino browser agents (5 for GitHub repos, 5 for
Stack Overflow posts) via SSE streaming
- GitHub agents navigate the repo, read the README, and extract relevant
code examples
- Stack Overflow agents reason over post metadata (title, tags, score,
excerpt) to score relevance
- Live browser previews are embedded as iframes during agent execution
- Results render incrementally as each agent finishes, sorted by
relevance score
## Tech Stack
Next.js 16 + React 19 + TypeScript + Tailwind CSS v4 + Framer Motion +
Chrome Extension (MV3)
Deployed on Vercel
## Demo
https://github.com/user-attachments/assets/73feb7c2-60dd-492b-b440-165d0170a4aa