mirror of
https://github.com/tinyfish-io/tinyfish-cookbook.git
synced 2026-09-14 17:41:39 +08:00
153c60e449
Migrates BestBet from raw Mino SSE fetch to the official TinyFish SDK and fixes a security issue — the original code called the Mino API directly from the browser using NEXT_PUBLIC_TINYFISH_API_KEY, exposing the key to anyone who inspects network requests. The agent call is now server-side via /api/scrape using TINYFISH_API_KEY (no NEXT_PUBLIC_ prefix). webagent.ts deleted. --------- Co-authored-by: Krishna Agarwal <krishna.laptop3727@gmail.com> Co-authored-by: Simantak Dabhade <simantak@mac.local>
30 lines
627 B
JSON
30 lines
627 B
JSON
{
|
|
"name": "bestbet",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"engines": { "node": "22.x" },
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint"
|
|
},
|
|
"dependencies": {
|
|
"@tiny-fish/sdk": "latest",
|
|
"framer-motion": "^12.28.1",
|
|
"next": "16.1.4",
|
|
"react": "19.2.3",
|
|
"react-dom": "19.2.3"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.1.4",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
}
|
|
}
|