npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

automated-video-generator

v1.0.0

Published

Free and open-source self-hosted AI text-to-video generator built with Remotion, Edge-TTS, stock media fetching, batch rendering, a local web portal, and MCP integration.

Readme

Automated Video Generator

Automated Video Generator is a self-hosted text-to-video pipeline for developers, creators, and AI agents. Give it a script and it can fetch visuals, generate voiceovers, render scenes with Remotion, and export a ready-to-share video.

If you are searching for a free video generator, open-source AI video generator, Remotion video generator, YouTube Shorts generator, TikTok video generator, or self-hosted text-to-video tool, this repo is built for that workflow.

This is not a fake "free trial" generator. The project itself is completely free and MIT-licensed. There is no paid plan, no subscription, and no watermark added by this codebase. Optional third-party services such as Pexels or Pixabay may still have their own quotas or terms.

Why this repo gets attention

  • Free and open source under the MIT license
  • Self-hosted video generation you control locally
  • Text-to-video pipeline with Remotion and React
  • Edge-TTS voiceovers with multiple neural voice options
  • Stock media fetching from Pexels and Pixabay
  • Local asset support for your own images and videos
  • Batch generation for multiple videos in one run
  • Local web portal for generating, previewing, and sharing videos
  • Built-in MCP server for Claude Desktop, Claude Code, and other MCP clients

Best use cases

  • YouTube Shorts automation
  • TikTok and Reels content pipelines
  • Faceless YouTube channels
  • Marketing videos and product promos
  • Explainer videos and tutorials
  • Programmatic content generation for AI agents

Core features

  • Script-driven video generation from plain text or JSON
  • Director mode with [Visual: ...] tags for exact visual control
  • Automatic scene parsing and timeline generation
  • Neural voice generation using edge-tts
  • Portrait and landscape video output
  • Resumable segmented rendering with Remotion
  • Render thumbnails for completed videos
  • Browser portal for generation, status tracking, playback, and downloads
  • MCP tool interface for agentic workflows

Quick start

Prerequisites

  • Node.js 18+
  • npm
  • Python 3.8+
  • FFmpeg available on your PATH

Install

git clone https://github.com/itsPremkumar/Automated-Video-Generator.git
cd Automated-Video-Generator
npm install
pip install -r requirements.txt

Configure environment variables

Copy .env.example to .env and add your keys.

# Free stock media API keys
PEXELS_API_KEY=your_key_here
PIXABAY_API_KEY=your_key_here

# Optional but recommended for public deployments
PUBLIC_BASE_URL=https://your-domain.example

# Optional defaults
PORT=3001
VIDEO_ORIENTATION=portrait
VIDEO_VOICE=en-US-GuyNeural

PEXELS_API_KEY is the main one to start with, and Pexels offers a free API key.

Generate a video

Create input/input-scripts.json with one or more jobs:

[
  {
    "id": "youtube-shorts-demo",
    "title": "3 Productivity Habits That Actually Work",
    "orientation": "portrait",
    "voice": "en-US-JennyNeural",
    "script": "[Visual: focused person at desk] Want better focus every day? [Visual: checklist and timer] Try these three simple habits."
  }
]

Run the pipeline:

npm run generate

The final video will be written to output/<id>/.

Local web portal

Run the local portal:

npm run dev

Then open:

http://localhost:3001/

The portal lets you:

  • Start a render from the browser
  • Track progress on a job page
  • Watch completed videos
  • Download the final MP4
  • Expose SEO-ready pages if you deploy it publicly

Remotion studio

Preview templates and compositions locally:

npm run remotion:studio

MCP and AI agent support

This project ships with an MCP server, so AI tools can create and manage videos through chat-driven workflows.

Start the MCP server:

npm run mcp

Useful for:

  • Claude Desktop
  • Claude Code
  • Other Model Context Protocol clients

Project health

  • CI runs on pushes and pull requests
  • Dependabot keeps npm and GitHub Actions dependencies fresh
  • Issue templates make bug reports and feature requests easier to review
  • A pull request template helps contributors ship cleaner changes

How it works

  1. Parse a script into scenes and durations.
  2. Fetch stock visuals or use local assets from input/input-assests/.
  3. Generate voiceover audio with Edge-TTS.
  4. Save scene data into output/<job-id>/scene-data.json.
  5. Render scene segments with Remotion.
  6. Stitch the final MP4 and thumbnail for playback and sharing.

Available commands

npm run generate         # Generate videos from input/input-scripts.json
npm run resume           # Resume an interrupted generation run
npm run segment          # Rebuild from existing scene data
npm run remotion:studio  # Open Remotion studio
npm run remotion:render  # Render using the render pipeline
npm run dev              # Start the local web portal
npm run mcp              # Start the MCP server
npm run typecheck        # Validate TypeScript before opening a PR

Project structure

src/
  cli.ts                 Batch generation entry point
  server.ts              Local web portal and API
  mcp-server.ts          MCP server entry point
  video-generator.ts     Generation pipeline
  render.ts              Segmented Remotion renderer
  lib/
    script-parser.ts
    visual-fetcher.ts
    voice-generator.ts
    cleaner.ts
remotion/
  MainVideo.tsx
  SingleSceneVideo.tsx
  Root.tsx
input/
  input-scripts.json
  input-assests/         Local images and videos
output/                  Generated videos
public/                  Job assets served by the portal

FAQ

Is this a completely free video generator?

Yes. The project itself is completely free and open source under the MIT license. There is no paid plan attached to this repo. Optional external services may have their own rules or usage limits.

Is this an open-source AI video generator?

Yes. It is an open-source text-to-video pipeline that uses AI voice generation plus deterministic media selection and Remotion rendering.

Can I use this for YouTube Shorts, TikTok, and Reels?

Yes. Use portrait for 9:16 output and landscape for 16:9 videos.

Does this add a watermark?

No watermark is added by this project.

Can I use my own images and videos?

Yes. Put files in input/input-assests/ and reference them with [Visual: filename.mp4] or [Visual: filename.jpg].

Can I self-host it?

Yes. You can run it locally, in Docker, or behind your own deployment setup.

GEO and AI-friendly docs

These files make the project easier for AI tools and answer engines to understand:

Roadmap and contributing

Growth assets

Suggested GitHub topics

If you want more GitHub discovery, set repo topics like:

free-video-generator, open-source-video-generator, text-to-video, ai-video-generator, remotion, edge-tts, youtube-shorts, tiktok-video-generator, self-hosted, mcp-server

Contributing

Issues, feature requests, docs improvements, and pull requests are welcome.

If this repo helps you, please star it on GitHub:

https://github.com/itsPremkumar/Automated-Video-Generator