Live: https://cookbook-anime-watch-hub.vercel.app/
Next.js app that discovers streaming-platform search URLs with OpenAI, then verifies availability in parallel using the @tiny-fish/sdk agent in SSE streaming mode (same event model as Run browser automation with SSE streaming).
Anime Watch Hub helps users find where a specific anime is available to stream. It uses AI-powered platform discovery and real-time browser automation to check Netflix, Crunchyroll, Hulu, Prime Video, and more—in parallel.
Screen.Recording.2026-01-23.123517.mp4
- User enters an anime title — e.g. "Attack on Titan"
- OpenAI discovers platform URLs — GPT-4o Mini returns search URLs for several streaming platforms
- TinyFish checks each platform in parallel — For each URL,
client.agent.stream({ url, goal })runs browser automation; the API route forwards SSE events to the client - Live UI —
STREAMING_URL(live preview iframe),PROGRESS, thenCOMPLETEwith the parsed result JSON
| Piece | Role |
|---|---|
app/api/discover-platforms |
OpenAI: returns { platforms: [{ id, name, searchUrl }] } |
app/api/check-platform |
Server: TinyFish + agent.stream, emits data: {...}\n\n SSE lines to the browser |
hooks/use-anime-search.ts |
Client: reads the stream and updates per-platform UI state |
app/dashboard |
Redirects to / (avoids 404 if something hits /dashboard) |
The production app does not call https://agent.tinyfish.ai/.../run-sse directly; it uses the SDK, which speaks the same SSE event types.
- Framework: Next.js 16 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS 4 + shadcn/ui
- APIs: OpenAI (gpt-4o-mini) for discovery; TinyFish SDK (
@tiny-fish/sdk) for browser automation - Deployment: Vercel
- Clone the repo and install dependencies:
cd anime-watch-hub
npm install- Copy the example environment file and fill in your API keys:
cp .env.example .env.local| Variable | Description |
|---|---|
OPENAI_API_KEY |
OpenAI API key for platform URL discovery (get one) |
TINYFISH_API_KEY |
TinyFish API key for browser automation (get one) |
- Start the dev server:
npm run devgraph TD
User((User)) -->|Search Title| FE[Next.js App]
FE -->|Stage 1: Platform Discovery| OpenAI[OpenAI GPT-4o Mini]
OpenAI -->|Returns Search URLs| FE
subgraph TinyFish_Agents [Stage 2: Verification]
FE -->|POST /api/check-platform| API[TinyFish via SDK]
API --> A1[Run: platform 1]
API --> A2[Run: platform 2]
API --> A3[Run: platform N]
end
A1 -.->|SSE events| FE
A2 -.->|SSE events| FE
A3 -.->|SSE events| FE
FE -->|Update UI| User
- TinyFish: Run browser automation with SSE streaming — event types (
STARTED,STREAMING_URL,PROGRESS,COMPLETE, etc.) - In-repo detail:
docs/tinyfish-api-integration.md