انتقل إلى المحتوى

جربت أبني أداة مجانية بتعمل فيديوهات زي Claude.. وبتنشرها لوحدها

برومت بناء Reel Studio من الصفر: أداة مجانية على جهازك تحوّل أي موضوع لريل عربي كامل بسكريبت وفويس أوفر وكابشنز وموشن جرافيكس، وتنشره على يوتيوب لوحدها.

كورس صناعة المحتوى بالذكاء الاصطناعي

البرومت اللي تحت هو V1. النسخة الكاملة (النشر التلقائي على يوتيوب، وصوت مجاني من غير مفتاح، وشكل الأداة الجديد، وملف أسلوب السكريبت) والبرومتات التانية وكل الأكواد والدعم على تليجرام في الكورس.

اشترك في الكورس

برومت بناء Reel Studio V1 من الصفر

انسخه كله والصقه في Claude Code أو Codex أو Cursor جوه فولدر فاضي. محتاج على جهازك Node.js 18 أو أحدث، وffmpeg في الـ PATH، ونت. والمفاتيح المجانية: FreeLLMAPI (بتشغّلها على جهازك)، وElevenLabs، وDeepgram.

reel-studio-v1.prompt.md

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 autonomously
عرض البرومت كاملاً
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 autonomously

التجربة كاملة بالفيديو

من تفكيك صفحة «طب ازاي؟» لحد ما الأداة تعمل الفيديو وتنشره على يوتيوب لوحدها.

افتح على يوتيوب

Claude مش هو اللي بيمنتج، هو بيستخدم سيستم

لما تفهم الأدوات اللي ورا الفيديو، تقدر تبني أداة تعمل نفس الشغل بخدمات مجانية:

النموذج بيكتب

السكريبت والستوري بورد بأسلوبك اللي محطوط في ملف المرجع.

الصوت

فويس أوفر بصوت ذكاء اصطناعي أو صوتك المنسوخ أو تسجيلك.

الكابشنز

Speech-to-Text بيدي توقيت كل كلمة، فالكلمة تنور لحظة ما تتقال.

الموشن

صفحة ويب بتتحرك بالكود، وبتتسجل فريم فريم وتتجمع بـ ffmpeg.

اللي محتاجه على جهازك والمفاتيح المجانية

إزاي تبني الأداة

  1. 1اعمل فولدر فاضي على جهازك وسمّيه أي اسم، زي reels-factory.
  2. 2افتح الفولدر في الـ AI Coding Agent بتاعك. في Claude Desktop: Choose environment ← This computer ← Choose a folder to work in ← اختار الفولدر ← Trust.
  3. 3انسخ البرومت اللي تحت كله والصقه، وسيبه يشتغل لحد ما يقولك إن الفيديو التجريبي اتعمل.
  4. 4افتح الأداة من الرابط اللي هيديهولك (http://127.0.0.1:4301)، وادخل على الإعدادات.
  5. 5ضيف المفتاح الموحد من FreeLLMAPI (Unified API key ← Show ← Copy)، واضغط اختبار الاتصال.
  6. 6ضيف مفتاح ElevenLabs واضغط «حمّل الأصوات» واختار صوت، وبعدها مفتاح Deepgram واختبره، واضغط حفظ.
  7. 7اكتب موضوع الفيديو واختار المدة، واضغط ابدأ. وافق على السكريبت أو عدّله، والأداة تكمل الباقي.

ربط المفاتيح بيتعمل مرة واحدة بس. بعد كده تكتب الموضوع وتضغط ابدأ كل مرة.

أسئلة سريعة

هل الأداة مجانية فعلًا؟
أيوه. السكريبت بيتكتب بنماذج مجانية عن طريق FreeLLMAPI ومفتاح Google AI Studio، وElevenLabs فيه رصيد مجاني للصوت، وDeepgram بيديك حوالي 200 دولار رصيد مجاني لتوقيت الكلام. والريندر كله على جهازك.
لازم أعرف برمجة؟
لا. بتلصق البرومت في أي AI Coding Agent زي Claude Code أو Codex أو Cursor أو OpenCode، وهو اللي بيكتب الكود ويختبره. إنت بس بتضيف المفاتيح من شاشة الإعدادات.
ينفع أستخدم صوتي بدل صوت الذكاء الاصطناعي؟
أيوه. تقدر ترفع فويس أوفر مسجله بصوتك، والأداة بتستخدم Deepgram عشان تعرف توقيت كل كلمة وتظبط عليها الكابشنز. وتقدر كمان تنسخ صوتك على ElevenLabs وتختاره من قائمة الأصوات.
فين النشر التلقائي على يوتيوب والشكل الجديد اللي في الفيديو؟
البرومت ده هو V1. النسخة الكاملة اللي فيها النشر التلقائي على يوتيوب، وصوت مجاني من غير مفتاح، وشكل الأداة الجديد، وملف أسلوب السكريبت، والبرومتات التانية موجودة في كورس صناعة المحتوى بالذكاء الاصطناعي.