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

ctx-reels

v1.0.1

Published

AI-powered faceless short-form video generator. Create TikTok/Reels/Shorts from a topic in one command.

Readme

🎬 CTX-Reels

AI-powered faceless short-form video generator. Create TikTok / Reels / Shorts from a topic in one command.

ctx generate -t "Cristiano Ronaldo"

Script → Voice → Karaoke Subtitles → Video — all automated.


✨ Features

  • One-command video generation from any topic
  • 3 voice engines: Kokoro (free, local), Edge-TTS (free, cloud), ElevenLabs (premium)
  • Word-level karaoke subtitles — active word highlights in white against yellow text
  • Smart script writing via Gemini AI with viral hooks and punchy delivery
  • Batch generation from a JSON file of topics
  • Customizable — fonts, colors, backgrounds, voices, output dir

📦 Install

npm install -g ctx-reels
ctx setup

Prerequisites

| Dependency | Required | Install | |---|---|---| | Node.js ≥ 18 | ✅ | nodejs.org | | FFmpeg + FFprobe | ✅ | brew install ffmpeg / apt install ffmpeg | | Python 3 | ✅ (for subtitles) | python.org | | Gemini API Key | ✅ (for scripts) | aistudio.google.com |

ctx setup will create a Python virtualenv and install faster-whisper automatically.

🚀 Quick Start

# 1. Generate a full reel
ctx generate -t "Elon Musk"

# 2. Batch generate from a list
echo '["AI Revolution", "Space Exploration", "Bitcoin"]' > topics.json
ctx batch topics.json

# 3. Run individual steps
ctx script -t "My Topic"
ctx voice -s output/scripts/my-topic.txt
ctx subs -a output/audio/my-topic.mp3
ctx render -a output/audio/my-topic.mp3 -s output/subtitles/my-topic.ass

🎤 Voice Engines

| Engine | Cost | Quality | Setup | |---|---|---|---| | Kokoro (default) | Free | ⭐⭐⭐⭐ | Automatic (downloads 80MB model on first run) | | Edge-TTS | Free | ⭐⭐⭐ | pip install edge-tts | | ElevenLabs | Paid | ⭐⭐⭐⭐⭐ | API key in .env |

# List available voices for your engine
ctx voices

# Switch engine in .env
VOICE_ENGINE="kokoro"    # or "edge-tts" or "elevenlabs"

⚙️ Configuration

Edit .env (created by ctx setup):

# API Keys
GEMINI_API_KEY="your-key-here"

# Voice
VOICE_ENGINE="kokoro"
KOKORO_VOICE="af_heart"

# Output directory (default: ~/Desktop/ctx)
CTX_OUTPUT="/path/to/custom/output"

# Background video/image
BG_ASSET="./templates/backgrounds/minecraft.mp4"

See .env.example for all options.

📁 Output Structure

~/Desktop/ctx/
├── scripts/     # Generated text scripts
├── audio/       # Generated voice audio (MP3)
├── subtitles/   # Karaoke subtitles (ASS)
└── reels/       # Final rendered videos (MP4)

🛠 CLI Reference

| Command | Description | |---|---| | ctx generate -t <topic> | Full pipeline: script → voice → subs → video | | ctx generate -t <topic> -f | Force regenerate (overwrite existing) | | ctx batch <file.json> | Batch generate from JSON array of topics | | ctx script -t <topic> | Generate script only | | ctx voice -s <script.txt> | Generate voice only | | ctx subs -a <audio.mp3> | Generate subtitles only | | ctx render -a <audio> -s <subs> | Render video only | | ctx voices | List available voices | | ctx setup | First-time dependency setup |

📄 License

MIT — by cecamarty