Skip to content

About

๐ŸŽฌ AI video script generator โ€” turn one idea into a ready-to-film script with a scroll-stopping hook, timestamped scenes, B-roll, CTA & SEO tags. Built for YouTube, TikTok, Reels & courses. Free, no sign-up, English & Arabic.

Topics

Resources

Stars

11 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

189 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ScriptForge AI โ€” Discover ideas. Forge scripts.

Live demo Free, no sign-up English and Arabic

React TypeScript Vite Tailwind CSS Supabase Last commit

Turn one idea into a platform-ready video script โ€” hook, timestamps, B-roll, CTA and SEO tags โ€” in seconds.

Try it live ยท Features ยท How it works ยท Run locally ยท ุจุงู„ุนุฑุจูŠ


ScriptForge demo: typing an idea, filtering the idea gallery, auto-filling the form, switching to dark mode and Arabic


๐Ÿ’ก Why ScriptForge

Blank page โ†’ filmable script. ScriptForge structures your idea the way short-form and long-form creators actually shoot: a scroll-stopping hook first, timed sections with visual direction, then a clear call to action.

  • Made for each platform โ€” pacing and length adapt to YouTube, TikTok, Reels, online courses and webinars.
  • Script to video โ€” turn the finished script into a detailed, scene-by-scene prompt for AI video tools.
  • Open to everyone โ€” no account, no paywall, full English & Arabic (RTL) support.

โœจ Features

๐ŸŽฌ Script generator

Title options, a typed hook, timestamped sections with dialogue, visual direction and B-roll, a CTA, SEO tags and retention notes.

๐ŸŽฅ Video prompt builder

Edit the hook and script, then build a production-ready prompt for text-to-video models โ€” copy it in one click.

๐Ÿงญ Idea gallery

Dribbble-style starter ideas with platform mockups. Filter by platform; one click fills the whole form.

๐Ÿ“Ž Bring your sources

Add a video link, paste an article or transcript, or upload an image to ground the script.

๐ŸŒ English ยท ุงู„ุนุฑุจูŠุฉ

Generate in English, Arabic or both. The interface switches to a native right-to-left layout.

๐ŸŒ— Light & dark

A clean white/ink/pink design system with semantic tokens, responsive down to small phones.

Controls you get: platform (YouTube ยท TikTok ยท Reels ยท Course ยท Webinar) ยท duration (30s โ†’ 15+ min) ยท tone (educational, entertaining, dramatic, casual, motivational) ยท target audience ยท key message.


๐Ÿง  How it works

flowchart LR
    A([๐Ÿ’ก Idea or<br/>gallery pick]) --> B[Script parameters<br/>platform ยท duration ยท tone<br/>audience ยท sources]
    B -->|Generate| C{{generate-script<br/>Edge Function}}
    C --> D[๐Ÿ“„ Script output<br/>hook ยท timed sections ยท CTA ยท SEO]
    D --> E[๐ŸŽฅ Video prompt builder]
    E -->|Build prompt| F{{enhance-prompt<br/>Edge Function}}
    F --> G([๐Ÿ“‹ Detailed video prompt])

    classDef pink fill:#EA4C89,stroke:#C2185B,color:#fff
    classDef ink fill:#0D0C22,stroke:#0D0C22,color:#fff
    class C,F pink
    class A,G ink
Loading
flowchart TB
    subgraph Browser["๐Ÿ–ฅ๏ธ Browser โ€” React 18 + Vite SPA"]
        UI[Hero ยท Idea gallery ยท Script form]
        OUT[Script output ยท Video prompt builder]
        SET[Theme + language settings<br/>localStorage]
    end
    subgraph Supabase["โšก Supabase"]
        GS[generate-script]
        EP[enhance-prompt]
    end
    AI[(๐Ÿค– Groq ยท OpenRouter ยท Lovable<br/>automatic fallback)]

    UI -- supabase.functions.invoke --> GS
    OUT -- supabase.functions.invoke --> EP
    GS --> AI
    EP --> AI
    GS -- structured JSON --> OUT
Loading

๐Ÿ“ธ Screenshots

Home page in light mode

Hero & search โ€” light

Idea gallery in dark mode

Idea gallery โ€” dark

Support dialog with USDT address

Support dialog

Mobile layout in Arabic

Mobile โ€” Arabic (RTL)


๐Ÿ› ๏ธ Tech stack

Layer Tools
UI React 18, TypeScript, Vite, Tailwind CSS, shadcn/ui (Radix), Framer Motion, Lucide icons
Backend Supabase Edge Functions (Deno): generate-script, enhance-prompt
AI Open-weight models via Groq (openai/gpt-oss-120b, free tier) โ†’ OpenRouter free models โ†’ Lovable AI Gateway, with automatic fallback
Quality ESLint, Vitest, Testing Library, Playwright
Hosting Lovable

๐Ÿš€ Run it locally

Requirements: Node.js 18+ and npm (or Bun), plus a Supabase project for the edge functions.

git clone https://github.com/3h0ll7/scriptforge-ai.git
cd scriptforge-ai
cp .env.example .env      # fill in your Supabase URL + publishable key
npm install
npm run dev               # http://localhost:8080
VITE_SUPABASE_URL=https://your-project-ref.supabase.co
VITE_SUPABASE_PUBLISHABLE_KEY=replace-with-your-supabase-publishable-key
Deploying the edge functions
npx supabase link --project-ref your-project-ref
npx supabase db push
npx supabase functions deploy generate-script
npx supabase functions deploy enhance-prompt

Both functions share supabase/functions/_shared/ai.ts, which tries each configured provider in order and moves on when one is out of credits, rate-limited or has retired a model. Set at least one key as a Supabase secret โ€” never in .env or in git:

Secret Provider Default models (strongest first)
GROQ_API_KEY Groq โ€” free tier openai/gpt-oss-120b, openai/gpt-oss-20b; images: qwen/qwen3.8-27b โ†’ llama-4-scout
OPENROUTER_API_KEY OpenRouter โ€” free models openai/gpt-oss-120b:free, deepseek/deepseek-chat-v3.1:free
LOVABLE_API_KEY Lovable AI Gateway (paid credits) google/gemini-3-flash-preview

Override any model list with comma-separated GROQ_MODELS, GROQ_VISION_MODELS, OPENROUTER_MODELS or OPENROUTER_VISION_MODELS.

npx supabase secrets set GROQ_API_KEY=your-groq-key
Command What it does
npm run dev Start the dev server on port 8080
npm run build Production build into dist/
npm run preview Serve the production build
npm run lint ESLint
npm test Vitest

๐Ÿ“ Project structure

scriptforge-ai/
โ”œโ”€โ”€ docs/                       # README banner, demo GIF, screenshots
โ”œโ”€โ”€ public/                     # Static assets
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ IdeaGallery.tsx     # Filterable starter ideas
โ”‚   โ”‚   โ”œโ”€โ”€ IdeaShot.tsx        # Platform mockup thumbnails
โ”‚   โ”‚   โ”œโ”€โ”€ ScriptForm.tsx      # Script parameters (accepts presets)
โ”‚   โ”‚   โ”œโ”€โ”€ ScriptOutput.tsx    # Generated script view
โ”‚   โ”‚   โ”œโ”€โ”€ VideoPromptBuilder.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ SupportDialog.tsx   # USDT donation dialog
โ”‚   โ”‚   โ””โ”€โ”€ ui/                 # shadcn/ui primitives
โ”‚   โ”œโ”€โ”€ hooks/useAppSettings.tsx # Theme, language, EN/AR strings
โ”‚   โ”œโ”€โ”€ lib/                    # generateScript, idea templates, donation config
โ”‚   โ”œโ”€โ”€ pages/Index.tsx         # Hero ยท gallery ยท workspace
โ”‚   โ””โ”€โ”€ index.css               # Design tokens (light/dark)
โ”œโ”€โ”€ supabase/
โ”‚   โ”œโ”€โ”€ functions/              # Edge functions
โ”‚   โ””โ”€โ”€ migrations/
โ””โ”€โ”€ AGENTS.md                   # Architecture rules for contributors & agents

๐Ÿ—บ๏ธ Roadmap

  • Script generation for YouTube, TikTok, Reels, courses & webinars
  • Video prompt builder
  • English & Arabic with RTL
  • Dribbble-inspired redesign, idea gallery, dark mode
  • Free public access, optional donations
  • Save & export scripts (PDF / Markdown)
  • More idea templates and niches
  • Shareable script links
  • Voice-over generation

โค๏ธ Support the project

ScriptForge is free. If it saves you time, you can send a tip in USDT on BNB Smart Chain (BEP20):

0x03d28429e4c9a0ae0d6fcc750ac4b1cf0bd41850

โš ๏ธ Send only USDT on BEP20. Other coins or networks (TRC20, ERC20โ€ฆ) will be lost.


๐Ÿ‡ฎ๐Ÿ‡ถ ุจุงู„ุนุฑุจูŠ

ุงุถุบุท ู„ุนุฑุถ ุงู„ูˆุตู ุจุงู„ุนุฑุจูŠ

ScriptForge AI

ุญูˆู‘ู„ ููƒุฑุฉ ูˆุงุญุฏุฉ ุฅู„ู‰ ุณูƒุฑุจุช ููŠุฏูŠูˆ ุฌุงู‡ุฒ ู„ู„ุชุตูˆูŠุฑ ุฎู„ุงู„ ุซูˆุงู†ู: ุฎุทู‘ุงู (Hook) ูŠูˆู‚ู ุงู„ุชู…ุฑูŠุฑุŒ ุฃู‚ุณุงู… ุจุชูˆู‚ูŠุช ุฒู…ู†ูŠ ู…ุน ุชูˆุฌูŠู‡ ุจุตุฑูŠ ูˆู„ู‚ุทุงุช B-rollุŒ ุฏุนูˆุฉ ู„ู„ุนู…ู„ุŒ ูˆูˆุณูˆู… SEO.

ุงู„ู…ู…ูŠุฒุงุช

  • ุณูƒุฑุจุชุงุช ู…ุฎุตู‘ุตุฉ ู„ู€ YouTube ูˆ TikTok ูˆ Reels ูˆุงู„ุฏูˆุฑุงุช ูˆุงู„ู†ุฏูˆุงุช.
  • ู…ูู†ุดุฆ ุจุฑูˆู…ุจุช ููŠุฏูŠูˆ ู…ูุตู‘ู„ ู…ุดู‡ุฏุงู‹ ุจู…ุดู‡ุฏ ู„ุฃุฏูˆุงุช ุชูˆู„ูŠุฏ ุงู„ููŠุฏูŠูˆ ุจุงู„ุฐูƒุงุก ุงู„ุงุตุทู†ุงุนูŠ.
  • ู…ุนุฑุถ ุฃููƒุงุฑ ุฌุงู‡ุฒุฉ ูŠู…ู„ุฃ ุงู„ู†ู…ูˆุฐุฌ ุจุถุบุทุฉ ูˆุงุญุฏุฉ.
  • ุฅุฑูุงู‚ ุฑุงุจุท ููŠุฏูŠูˆ ุฃูˆ ู†ุต ุฃูˆ ุตูˆุฑุฉ ูƒู…ุตุฏุฑ.
  • ูˆุงุฌู‡ุฉ ุนุฑุจูŠุฉ ูƒุงู…ู„ุฉ ู…ู† ุงู„ูŠู…ูŠู† ู„ู„ูŠุณุงุฑุŒ ูˆูˆุถุน ูุงุชุญ ูˆุฏุงูƒู†.
  • ู…ุฌุงู†ูŠ ุจุงู„ูƒุงู…ู„ ูˆุจุฏูˆู† ุชุณุฌูŠู„ ุฏุฎูˆู„.

ุงู„ุชุดุบูŠู„ ู…ุญู„ูŠุงู‹

git clone https://github.com/3h0ll7/scriptforge-ai.git
cd scriptforge-ai && cp .env.example .env && npm install && npm run dev

ุงุฏุนู… ุงู„ู…ุดุฑูˆุน: USDT ุนู„ู‰ ุดุจูƒุฉ BEP20 ูู‚ุท โ€” ุงู„ุนู†ูˆุงู† ู…ูˆุฌูˆุฏ ููŠ ู‚ุณู… Support the project ุฃุนู„ุงู‡.


๐Ÿค Contributing

Issues and pull requests are welcome. Please read AGENTS.md for the architecture rules, keep changes small, and run npm run lint && npm test && npm run build before opening a PR.

๐Ÿ“œ License

No license file has been added yet, so all rights are reserved by the author by default.


Built by Hassan Salman with Lovable, Supabase and shadcn/ui.

Start forging scripts

About

๐ŸŽฌ AI video script generator โ€” turn one idea into a ready-to-film script with a scroll-stopping hook, timestamped scenes, B-roll, CTA & SEO tags. Built for YouTube, TikTok, Reels & courses. Free, no sign-up, English & Arabic.

Topics

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages