Skip to content

3h0ll7/scriptforge-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

84 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ScriptForge AI TypeScript Supabase Bilingual

🎬 ScriptForge AI

Turn any idea into a scroll-stopping video script in seconds.
AI agent prompt optimized for YouTube, TikTok, Reels & educational content.
Supports English & Arabic.

🌐 Live Demo Β Β·Β  ✨ Features Β Β·Β  βš™οΈ Tech Stack Β Β·Β  πŸš€ Getting Started


πŸ” Overview

ScriptForge AI is an AI-powered video script generator that transforms raw ideas into production-ready scripts tailored for modern social media platforms. Whether you're creating YouTube long-form, TikTok hooks, Instagram Reels, or educational explainers β€” ScriptForge crafts engaging, platform-optimized scripts with the right tone, pacing, and structure.


✨ Features

πŸ€– AI Script Generation

  • Instant Script Creation β€” Describe your idea, get a polished video script in seconds
  • Platform-Specific Optimization β€” Scripts tailored for YouTube, TikTok, Instagram Reels & educational formats
  • Hook-First Writing β€” Every script opens with a scroll-stopping hook designed to capture attention
  • Viral Framework β€” Built-in patterns for engagement, retention, and call-to-action

🌍 Bilingual Support

  • English & Arabic β€” Full support for both languages
  • RTL Layout β€” Native right-to-left interface for Arabic content creators
  • Culturally Adapted β€” Scripts that resonate with regional audiences

πŸ’° Monetization & Auth

  • User Authentication β€” Secure sign-up and login via Supabase Auth
  • Subscription Plans β€” Built-in monetization with tiered access
  • Usage Tracking β€” Monitor script generation credits and usage

🎯 Content Types

  • πŸ“Ή YouTube long-form scripts with chapters & timestamps
  • πŸ“± TikTok / Reels short-form with hooks & transitions
  • πŸŽ“ Educational & explainer content with clear structure
  • πŸ“’ Marketing & promotional scripts with CTAs

βš™οΈ Tech Stack

Technology Purpose
TypeScript Type-safe application logic (96%)
React 18 Component-based UI framework
Vite Lightning-fast build tooling
Supabase Auth, database (PostgreSQL), and backend
shadcn/ui Accessible, customizable UI components
Tailwind CSS Utility-first CSS framework
PL/pgSQL Database functions & stored procedures
Lovable AI-powered development platform

πŸ“ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  Frontend                    β”‚
β”‚         React + TypeScript + Vite            β”‚
β”‚              shadcn/ui + Tailwind            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚   Auth Flow  β”‚      Script Engine           β”‚
β”‚  (Supabase)  β”‚   AI Prompt β†’ Script Output  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚              Supabase Backend                β”‚
β”‚   PostgreSQL  Β·  Auth  Β·  Edge Functions     β”‚
β”‚   Row-Level Security  Β·  Realtime            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Getting Started

Prerequisites

Environment Variables

Create a local .env file in the root directory by copying .env.example:

cp .env.example .env

Then replace every placeholder with values from your own Supabase project. Keep real credentials and deployment-specific values in your local environment or Supabase secrets, and never commit them to source control.

VITE_SUPABASE_PUBLISHABLE_KEY=replace-with-your-supabase-publishable-key
VITE_SUPABASE_URL=https://your-project-ref.supabase.co

Installation

# Clone the repository
git clone https://github.com/3h0ll7/scriptforge-ai.git

# Navigate to project directory
cd scriptforge-ai

# Install dependencies
npm install
# or
bun install

# Start development server
npm run dev
# or
bun dev

The app will be available at http://localhost:5173

Supabase Setup

# Link your Supabase project
npx supabase link --project-ref your-project-ref

# Apply database migrations
npx supabase db push

For the create-checkout edge function, set APP_BASE_URL in your Supabase project secrets (not in your local .env file) so payment success/cancel redirects return users to the correct deployed domain.

Build for Production

npm run build
# or
bun run build

πŸ“ Project Structure

scriptforge-ai/
β”œβ”€β”€ public/                # Static assets
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/        # Reusable UI components
β”‚   β”œβ”€β”€ pages/             # Route pages
β”‚   β”œβ”€β”€ hooks/             # Custom React hooks
β”‚   β”œβ”€β”€ lib/               # Utilities & Supabase client
β”‚   β”œβ”€β”€ services/          # AI script generation logic
β”‚   └── styles/            # Global styles
β”œβ”€β”€ supabase/
β”‚   β”œβ”€β”€ migrations/        # Database schema migrations
β”‚   └── functions/         # Edge functions
β”œβ”€β”€ .env.example           # Safe environment template
β”œβ”€β”€ .env                   # Local environment variables (gitignored)
β”œβ”€β”€ vite.config.ts         # Vite configuration
β”œβ”€β”€ tailwind.config.ts     # Tailwind configuration
└── tsconfig.json          # TypeScript configuration

🎯 Use Cases

Audience Use Case
πŸŽ₯ YouTubers Generate structured long-form scripts with hooks, chapters, and CTAs
πŸ“± TikTok Creators Craft viral short-form scripts with trending patterns
πŸŽ“ Educators Build clear, engaging explainer scripts for courses and tutorials
πŸ“ˆ Marketers Create promotional video scripts optimized for conversions
🌐 Arabic Creators Produce native Arabic scripts with culturally relevant tone

πŸ—ΊοΈ Roadmap

  • Core AI script generation engine
  • YouTube, TikTok & Reels templates
  • English & Arabic bilingual support
  • Supabase authentication & user accounts
  • Monetization & subscription tiers
  • Script history & favorites
  • Team collaboration & shared workspaces
  • API access for third-party integrations
  • Voice-over generation integration
  • Analytics dashboard for script performance

🀝 Contributing

Contributions are welcome! Here's how to get involved:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/new-template)
  3. Commit your changes (git commit -m 'feat: add new script template')
  4. Push to the branch (git push origin feature/new-template)
  5. Open a Pull Request

πŸ“Š Stats

Last Commit Commit Activity Repo Size


πŸ“œ License

This project is open source and available under the MIT License.


πŸ™ Acknowledgments


🎬 Stop staring at a blank page. Start forging scripts.

Try ScriptForge AI

About

🎬 Turn any idea into a scroll-stopping video script in seconds. AI agent prompt optimized for YouTube, TikTok, Reels & educational content. Supports English & Arabic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors