# tinyfish-io/tinyfish-cookbook — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `skills`
- Overall score: `3.6/5`
- Implementation check: `verified`
- Maturity: `active`
- Audited commit: `8f5650b737de` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T05:51:29Z
- Repository: https://github.com/tinyfish-io/tinyfish-cookbook
- Radar entry: https://radar.alplab.co/#repo/tinyfish-io/tinyfish-cookbook
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `tinyfish`, `web-scraping`, `browser-automation`, `agent-skills`, `sse-streaming`, `reference-apps`

## Summary

Official TinyFish cookbook: ~40 standalone Next.js/CLI demo apps, 20+ agent SKILL.md files, a Claude Code plugin backed by TinyFish's hosted MCP server, and importable n8n workflows, all wired to TinyFish's search/fetch/agent/browser APIs via @tiny-fish/sdk.

## Implementation Check

README-advertised recipes and skills are genuinely implemented — e.g. viet-bike-scout/src/app/api/search/route.ts POST runs parallel TinyFish agent.stream calls over SSE exactly as described, and skills/use-tinyfish/SKILL.md documents the advertised search→fetch→agent→browser escalation — with only stale docs like tutor-finder/README.md's 'Live Demo: _add URL after deploy_' placeholder lagging the root README.

## When to Use

Use it to install the use-tinyfish skill or tinyfish plugin into a coding agent, or to copy a working reference pattern for parallel TinyFish scraping (SSE + Promise.allSettled, agent.queue + polling); not as production product code — recipes are as-is community demos requiring a TinyFish API key, and only district-rent-shark ships a test suite.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 3.5/5 |
| usability | 4.0/5 |
| reliability | 2.5/5 |
| security | 3.5/5 |
| integration | 4.5/5 |

## Code Evidence

viet-bike-scout/src/app/api/search/route.ts: runAgentForSite uses client.agent.stream with EventType.STREAMING_URL/COMPLETE and Promise.allSettled across 4 cities' hardcoded shop lists; openbox-deals/src/app/api/search/live/route.ts: validateQuery sanitizes input then fans out 8 agent.stream calls with browser_profile/proxy_config and a 5s SSE heartbeat; AABW_Vietnam_Hackathon_Samples/fareguard/lib/agents.ts: callTinyFish uses agent.queue + pollUntilDone, fetchSkyscannerFares uses client.fetch.getContents with Groq extraction, and an explicitly labeled simulated fallback when TINYFISH_API_KEY is absent; competitor-scout-cli/cli/scout.mjs: complete research CLI with checkRateLimit file-backed rate limiting, OpenAI planning, and runs.get/runs.cancel; research-sentry/lib/tinyfish.ts: runTinyFishAutomation wraps agent.stream with TinyFishError codes and AbortController timeout; plugins/tinyfish/.mcp.json registers hosted MCP at https://agent.tinyfish.ai/mcp and plugins/tinyfish/skills/{search,fetch,agent,doctor,feedback}/SKILL.md implement them; scripts/validate-skills.mjs gates frontmatter validity, generator drift via git status, and marketplace.json version skew (citing regression #241); .github/workflows/secrets-scanner.yml runs a digest-pinned TruffleHog scan (sha256:2ec535...) with verified/unverified finding triage; district-rent-shark/src/__tests__/ contains real vitest suites (normalize.test.ts, trust-scoring.test.ts, api-route.test.ts).

## Issues Found

tinyskills/app/page.tsx:433 and tinyskills/components/skillforge/skill-preview.tsx:51 inject LLM-generated/scraped-derived HTML via dangerouslySetInnerHTML with no sanitization (XSS if that app is deployed publicly); .github/workflows/validate-skills.yml uses tag-pinned rather than SHA-pinned actions, contradicting the repo's own secrets-scanner.yml pinning discipline; no CI covers the recipe apps, so the bulk of the repo's code is untested and unbuilt; tutor-finder/README.md still reads 'Live Demo: _add URL after deploy_' while README.md's featured table lists a live demo URL.

## Key Risks

Everything runtime depends on a TinyFish account and TINYFISH_API_KEY (Search/Fetch free, Agent/Browser metered), so no recipe can run standalone; recipe behavior was only verified statically — CI (validate-skills.yml) validates skills/plugins but never builds or tests the ~40 apps, and only district-rent-shark has tests; no releases/tags exist; unpinned GitHub Actions in .github/workflows/validate-skills.yml (actions/checkout@v4, setup-node@v4) and the AABW sample workflows, unlike the SHA-pinned secrets-scanner.yml; live-demo URLs cited in the root README could not be verified statically; recipe quality is heterogeneous (hackathon samples, bounty winners, vendor-featured apps).

## Reviewed Files

- `README.md`
- `CONTRIBUTING.md`
- `Makefile`
- `.claude-plugin/marketplace.json`
- `.github/workflows/validate-skills.yml`
- `.github/workflows/secrets-scanner.yml`
- `scripts/validate-skills.mjs`
- `skills/use-tinyfish/SKILL.md`
- `skills/tinyfish-social-listening/scripts/social_listening_sweep.py`
- `plugins/tinyfish/README.md`
- `plugins/tinyfish/.mcp.json`
- `plugins/tinyfish/skills/doctor/SKILL.md`
- `viet-bike-scout/README.md`
- `viet-bike-scout/src/app/api/search/route.ts`
- `tutor-finder/README.md`
- `openbox-deals/README.md`
- `openbox-deals/src/app/api/search/live/route.ts`
- `competitor-scout-cli/lib/tinyfish.ts`
- `competitor-scout-cli/lib/env.ts`
- `competitor-scout-cli/cli/scout.mjs`
- `research-sentry/lib/tinyfish.ts`
- `AABW_Vietnam_Hackathon_Samples/fareguard/lib/agents.ts`
- `N8N_WorkFlows/Competitor Scout CLI/README.md`
