whatisgithub

What is hokou-shorts-bot?

retrogtx/hokou-shorts-bot — explained in plain English

Analysis updated 2026-05-18

6TypeScriptAudience · vibe coderComplexity · 3/5Setup · moderate

In one sentence

A tool that automatically finds short videos, trims and rebrands them, then uploads them to YouTube as Shorts on a schedule.

Mindmap

mindmap
  root((hokou-shorts-bot))
    What it does
      Finds short videos
      Trims and reformats
      Adds CTA outro
      Uploads as Shorts
    Tech stack
      TypeScript
      yt-dlp
      ffmpeg
      YouTube Data API
    Use cases
      Niche Shorts channel
      Scheduled uploads
      Batch video processing
    Audience
      Vibe coders
      Content automators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically build a YouTube Shorts channel around a niche video search query.

USE CASE 2

Batch trim and reformat downloaded clips into vertical video with a branded outro.

USE CASE 3

Run a scheduled daily upload job without manually logging into YouTube each time.

What is it built with?

TypeScriptNode.jsyt-dlpffmpegYouTube Data API

How does it compare?

retrogtx/hokou-shorts-botatomicstrata/atomicmemoryazerdsq131/mcpm
Stars666
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderateeasy
Complexity3/54/52/5
Audiencevibe coderdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires yt-dlp and ffmpeg installed separately plus YouTube OAuth credentials.

So what is it?

hokou-shorts-bot is a command line automation tool that finds short YouTube videos matching a search query, trims and reformats them, appends a custom call to action outro, and uploads the results to a YouTube channel as Shorts on a recurring schedule. The pipeline has three stages. First, the scrape step uses yt-dlp, a widely used command line video downloader, to pull the top results for a configurable search query, defaulting to "satisfying 3d animation", filtering for clips between 3 and 65 seconds long. Second, the process step uses ffmpeg, a video processing tool, to normalize each clip to a vertical 1080x1920 format at 30 frames per second, trim it to a set duration (defaulting to 2 seconds), and splice on a pre made outro video that you provide. Third, the upload step picks the oldest unprocessed clips from the output folder and pushes them to YouTube via the official YouTube Data API, tracking what has already been posted in a local file called posted.json. Authentication with YouTube uses the OAuth flow: you run a one time auth command that walks you through authorization and gives you a refresh token to store in a configuration file. From that point on, uploads happen without further login prompts. For automated scheduling, the project includes a macOS LaunchAgent configuration file that runs the upload step daily at 9:00 AM. You install it by copying the file into the system's LaunchAgents folder. All raw downloads and intermediate files are kept out of version control, only the posting ledger is tracked. The project is written in TypeScript and requires yt-dlp and ffmpeg to be installed separately.

Copy-paste prompts

Prompt 1
Help me set up hokou-shorts-bot with my own YouTube OAuth credentials.
Prompt 2
Show me how to change the search query and clip length in hokou-shorts-bot's config.
Prompt 3
Explain how to install yt-dlp and ffmpeg so hokou-shorts-bot works on my machine.
Prompt 4
Help me create a LaunchAgent schedule like hokou-shorts-bot's for a different daily task.

Frequently asked questions

What is hokou-shorts-bot?

A tool that automatically finds short videos, trims and rebrands them, then uploads them to YouTube as Shorts on a schedule.

What language is hokou-shorts-bot written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, yt-dlp.

How hard is hokou-shorts-bot to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is hokou-shorts-bot for?

Mainly vibe coder.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.