Recipe-AI Web
This app takes a TikTok or Instagram share link, resolves it to a direct video, uploads the video to OpenAI, and asks the model to return only:
- Ingredients
- Prep steps
- Cooking steps
It uses environment variables for keys and optional RapidAPI resolvers.
requires ffmpeg on server
Getting Started
- Create your environment file:
cp .env.example .env.local
# set OPENAI_API_KEY, and optional RAPIDAPI_* values
- Run the development server:
npm run dev
Open http://localhost:3000/recipe to use the analyzer.
API
POST /api/analyzewith JSON body{ "url": "<share link>" }returns{ platform, analysis }whereanalysiscontainsingredients,prep_steps,cooking_steps.
Notes
- The app includes first-party scrapers for TikTok and Instagram (HTML parsing of embedded JSON/meta). No RapidAPI is required.
- Resolution of direct video URLs is still best-effort; platforms change often. RapidAPI is optional as a fallback.
- OpenAI costs apply for file uploads and analysis; keep videos short.
Description
Languages
TypeScript
88.2%
Python
10.3%
JavaScript
0.8%
CSS
0.7%