النموذج بيكتب
السكريبت والستوري بورد بأسلوبك اللي محطوط في ملف المرجع.
برومت بناء Reel Studio من الصفر: أداة مجانية على جهازك تحوّل أي موضوع لريل عربي كامل بسكريبت وفويس أوفر وكابشنز وموشن جرافيكس، وتنشره على يوتيوب لوحدها.
البرومت اللي تحت هو V1. النسخة الكاملة (النشر التلقائي على يوتيوب، وصوت مجاني من غير مفتاح، وشكل الأداة الجديد، وملف أسلوب السكريبت) والبرومتات التانية وكل الأكواد والدعم على تليجرام في الكورس.
انسخه كله والصقه في Claude Code أو Codex أو Cursor جوه فولدر فاضي. محتاج على جهازك Node.js 18 أو أحدث، وffmpeg في الـ PATH، ونت. والمفاتيح المجانية: FreeLLMAPI (بتشغّلها على جهازك)، وElevenLabs، وDeepgram.
Build "Reel Studio v1": a local web app that turns a TOPIC into a finished vertical
(1080×1920) faceless Arabic (Egyptian dialect) science-explainer reel. It runs on my
own machine with no servers other than the APIs below. Work autonomously, test every
stage, and finish with a 10-second test video.
STACK
- Node 18+, ES modules, no framework. A plain `node:http` server on 127.0.0.1:4301 (bind localhost only).
- Frontend: static HTML/CSS/JS, RTL Arabic UI.
- Render: Playwright headless Chromium plus ffmpeg. `npm run setup` = npm install + `npx playwright install chromium`
(fall back to the system Chrome channel if the download fails).
- Font: IBM Plex Sans Arabic (OFL, from Google Fonts), bundled in assets/fonts with its OFL.txt. Add a setting
"font folder" so a user can point to another Arabic font.
APIS (keys editable in a Settings screen, saved to data/settings.json; also read from .env;
the browser only ever sees keys masked to the last 4 characters)
1. LLM: FreeLLMAPI (https://github.com/tashfeenahmed/freellmapi), self-hosted and OpenAI-compatible.
Base URL http://127.0.0.1:31415/v1, model "auto". Stream /chat/completions (SSE) and strip <think> blocks.
Any other OpenAI-compatible base URL must also work.
2. Voice: ElevenLabs /v1/text-to-speech/{voice}/with-timestamps (returns per-character timings);
a "load voices" button.
Get a key at https://elevenlabs.io/app/developers/
3. Word timing for uploaded audio: Deepgram /v1/listen (nova-3, language ar, punctuate).
Get a key at https://console.deepgram.com/
4. Option: upload my own voice-over file instead of TTS.
PIPELINE (5 stages: script → voice → timing → storyboard → render)
- Each stage has a status (idle / running / review / done / error) and a live log. Show progress over SSE:
state events, streamed LLM text, render progress, and a live preview frame.
- Approvals: for each stage, "auto-continue" or "wait for my approval". Stages can be re-run, edited and cancelled.
- The user chooses the video length (10 / 20 / 30 / 45 / 60 s).
- script: the LLM writes an Egyptian-Arabic script in the series style. Write the style guide to
references/script-style.md. The style:
- a hook sentence
- the series question «عارف ليه؟»
- one simple analogy, short lines, then a recap
- keep English science loanwords in English
- output TITLE / SCRIPT / SOURCES
- target about 2.6 words per second
- voice: ElevenLabs → voice.mp3, plus character timings → words.
- timing: align the timed words onto the script's own tokens with character-level LCS, so captions use the
script's spelling. Flag weak words.
- storyboard: the LLM returns JSON {scenes:[{type, at:wordIndex, ...}], accents:[[wordIndex, tone]]}.
- Validate and repair it: valid indices, sorted, first scene = intro at 0, no template three times in a row.
- Scene types:
- intro, question, concept, process, compare, stat, recap
- templates: body (an organ inside a body outline), zoom (macro → micro), flow (A → B → C),
cycle, timeline, chart, layers, cards, meter
- Icons are requested by simple English nouns. Resolve them against a local icon library:
a hand-drawn set, plus Health Icons (CC0) and Tabler Icons (MIT), stored as one JSON with their licences.
Send the renderer only the icons a project uses.
- Do a second "self-review" LLM pass that improves weak scene choices.
- render: render.html draws frame t with window.drawFrame(t) on a 720×1280 design canvas, scaled ×1.5.
- Screenshot every frame (30 fps), encode with ffmpeg (H.264, yuv420p).
- Mix the voice with soft synthesized whoosh/tick SFX on scene cuts, normalized to −14 LUFS.
LOOK (dark technical illustration, deterministic: everything depends only on t)
- Palette:
- bg #0C1014, card #161C22, elevated #202830
- text #F4F3EE, secondary #9AA5AE
- accent #27B8C7, second accent #5978FF
- success #36C98F, warning-only #F28A30
- Faint grid, a rounded "film" card with the illustration, and a series tag.
- Captions under the card, built from word chunks. A word lights up exactly at its spoken onset;
accent tones and underlines come from the storyboard.
- Smooth eased motion, camera push-ins, lines that draw on, icons that pop with overshoot, and no empty frames
(layouts appear faintly before their word).
TESTS AND TOOLS
- tools/mock-apis.mjs: fake FreeLLMAPI, ElevenLabs and Deepgram endpoints on :4399, so the whole flow runs
offline. Every base URL is overridable by env.
- tools/e2e.mjs: create a project, approve the script, wait for the render, check every stage.
- Make one test project per template and inspect contact sheets of frames before calling it done.
- A start .bat for Windows that runs setup on first launch and opens the browser.
DONE = a 10-second reel renders end to end from a topic, and the captions are in sync with the voice.
Write a short Arabic README.
Work autonomouslyBuild "Reel Studio v1": a local web app that turns a TOPIC into a finished vertical
(1080×1920) faceless Arabic (Egyptian dialect) science-explainer reel. It runs on my
own machine with no servers other than the APIs below. Work autonomously, test every
stage, and finish with a 10-second test video.
STACK
- Node 18+, ES modules, no framework. A plain `node:http` server on 127.0.0.1:4301 (bind localhost only).
- Frontend: static HTML/CSS/JS, RTL Arabic UI.
- Render: Playwright headless Chromium plus ffmpeg. `npm run setup` = npm install + `npx playwright install chromium`
(fall back to the system Chrome channel if the download fails).
- Font: IBM Plex Sans Arabic (OFL, from Google Fonts), bundled in assets/fonts with its OFL.txt. Add a setting
"font folder" so a user can point to another Arabic font.
APIS (keys editable in a Settings screen, saved to data/settings.json; also read from .env;
the browser only ever sees keys masked to the last 4 characters)
1. LLM: FreeLLMAPI (https://github.com/tashfeenahmed/freellmapi), self-hosted and OpenAI-compatible.
Base URL http://127.0.0.1:31415/v1, model "auto". Stream /chat/completions (SSE) and strip <think> blocks.
Any other OpenAI-compatible base URL must also work.
2. Voice: ElevenLabs /v1/text-to-speech/{voice}/with-timestamps (returns per-character timings);
a "load voices" button.
Get a key at https://elevenlabs.io/app/developers/
3. Word timing for uploaded audio: Deepgram /v1/listen (nova-3, language ar, punctuate).
Get a key at https://console.deepgram.com/
4. Option: upload my own voice-over file instead of TTS.
PIPELINE (5 stages: script → voice → timing → storyboard → render)
- Each stage has a status (idle / running / review / done / error) and a live log. Show progress over SSE:
state events, streamed LLM text, render progress, and a live preview frame.
- Approvals: for each stage, "auto-continue" or "wait for my approval". Stages can be re-run, edited and cancelled.
- The user chooses the video length (10 / 20 / 30 / 45 / 60 s).
- script: the LLM writes an Egyptian-Arabic script in the series style. Write the style guide to
references/script-style.md. The style:
- a hook sentence
- the series question «عارف ليه؟»
- one simple analogy, short lines, then a recap
- keep English science loanwords in English
- output TITLE / SCRIPT / SOURCES
- target about 2.6 words per second
- voice: ElevenLabs → voice.mp3, plus character timings → words.
- timing: align the timed words onto the script's own tokens with character-level LCS, so captions use the
script's spelling. Flag weak words.
- storyboard: the LLM returns JSON {scenes:[{type, at:wordIndex, ...}], accents:[[wordIndex, tone]]}.
- Validate and repair it: valid indices, sorted, first scene = intro at 0, no template three times in a row.
- Scene types:
- intro, question, concept, process, compare, stat, recap
- templates: body (an organ inside a body outline), zoom (macro → micro), flow (A → B → C),
cycle, timeline, chart, layers, cards, meter
- Icons are requested by simple English nouns. Resolve them against a local icon library:
a hand-drawn set, plus Health Icons (CC0) and Tabler Icons (MIT), stored as one JSON with their licences.
Send the renderer only the icons a project uses.
- Do a second "self-review" LLM pass that improves weak scene choices.
- render: render.html draws frame t with window.drawFrame(t) on a 720×1280 design canvas, scaled ×1.5.
- Screenshot every frame (30 fps), encode with ffmpeg (H.264, yuv420p).
- Mix the voice with soft synthesized whoosh/tick SFX on scene cuts, normalized to −14 LUFS.
LOOK (dark technical illustration, deterministic: everything depends only on t)
- Palette:
- bg #0C1014, card #161C22, elevated #202830
- text #F4F3EE, secondary #9AA5AE
- accent #27B8C7, second accent #5978FF
- success #36C98F, warning-only #F28A30
- Faint grid, a rounded "film" card with the illustration, and a series tag.
- Captions under the card, built from word chunks. A word lights up exactly at its spoken onset;
accent tones and underlines come from the storyboard.
- Smooth eased motion, camera push-ins, lines that draw on, icons that pop with overshoot, and no empty frames
(layouts appear faintly before their word).
TESTS AND TOOLS
- tools/mock-apis.mjs: fake FreeLLMAPI, ElevenLabs and Deepgram endpoints on :4399, so the whole flow runs
offline. Every base URL is overridable by env.
- tools/e2e.mjs: create a project, approve the script, wait for the render, check every stage.
- Make one test project per template and inspect contact sheets of frames before calling it done.
- A start .bat for Windows that runs setup on first launch and opens the browser.
DONE = a 10-second reel renders end to end from a topic, and the captions are in sync with the voice.
Write a short Arabic README.
Work autonomouslyمن تفكيك صفحة «طب ازاي؟» لحد ما الأداة تعمل الفيديو وتنشره على يوتيوب لوحدها.
لما تفهم الأدوات اللي ورا الفيديو، تقدر تبني أداة تعمل نفس الشغل بخدمات مجانية:
السكريبت والستوري بورد بأسلوبك اللي محطوط في ملف المرجع.
فويس أوفر بصوت ذكاء اصطناعي أو صوتك المنسوخ أو تسجيلك.
Speech-to-Text بيدي توقيت كل كلمة، فالكلمة تنور لحظة ما تتقال.
صفحة ويب بتتحرك بالكود، وبتتسجل فريم فريم وتتجمع بـ ffmpeg.
لازم يكون متثبت على جهازك عشان الأداة تشتغل.
تحميل Node.jsالأداة اللي بتجمع الفريمات والصوت في فيديو. لازم تكون في الـ PATH.
تحميل ffmpegبتشغّلها على جهازك عشان تجمع نماذج مجانية كتير تكتب السكريبت والستوري بورد.
فتح GitHubالمفتاح المجاني اللي بتضيفه جوه FreeLLMAPI في خانة Keys.
إنشاء المفتاحللفويس أوفر. من Developers ← API Keys ← Create key.
إنشاء المفتاحلتوقيت كل كلمة في الصوت. بعد التسجيل اختار Skip and create API key.
إنشاء المفتاحربط المفاتيح بيتعمل مرة واحدة بس. بعد كده تكتب الموضوع وتضغط ابدأ كل مرة.