An edge-native SaaS starter on TanStack Start and Cloudflare Workers, with auth, Stripe billing, email, i18n and an admin console.
qianshuixia/shrimpreel
Open-source Cloudflare-based template for building one-photo-to-AI-video SaaS sites, one site per trending keyword.
- Stars
- 386
- Forks
- 160
- Open issues
- 1
- Last commit
- 2 days ago
What is it?
ShrimpReel is a starter template for websites where a user uploads one photo and gets an AI-generated video that follows a viral template. The template is meant to be copied once per trending keyword: you create a new repository, change the site config, swap in your own copy and media, and deploy. The whole stack runs on Cloudflare Workers, D1, R2, KV, Queues, Rate Limiting and Cron Triggers, with TanStack Start and Hono on the application side.
The template covers the parts a paid consumer site needs: Google sign-in, credit packs and optional subscriptions through Waffo Pancake, Dodo Payments or Stripe, a generation queue with refunds on failure, a credit ledger with expiring grants, and an admin console for orders, users, refunds, redeem codes and runtime settings. Video generation uses the fal.ai queue API by default, with optional yir.ai and NanoAPI providers and a mock mode for local development.
The project also includes compliance and SEO pieces such as AI-generated labels, scheduled photo and video deletion, a takedown workflow, transactional email, bilingual English and Chinese pages, and sitemap and structured-data generation.
Key features
- 01Cloudflare Workers, D1, R2, KV and Queues as the full backend stack
- 02Google sign-in, credit packs and monthly or yearly subscriptions
- 03Choice of Waffo Pancake, Dodo Payments or Stripe for payments, with refunds that claw back credits
- 04Generation queue with dead-letter handling and automatic credit return on failure
- 05Admin console for orders, users, generations, takedowns, redeem codes and referrals
- 06Bilingual English and Simplified Chinese pages with SSR, sitemap and JSON-LD
Use cases
- Launching a short-lived AI video site tied to a trending dance or filter keyword
- Starting a paid image-to-video SaaS on Cloudflare without building billing from scratch
- Running several keyword sites that share one codebase and receive upstream fixes via git merge
Quick start
- 1
Clone the template repository
git clone https://github.com/qianshuixia/shrimpreel.git moonhop && cd moonhop - 2
Install dependencies (npm 11.19 or newer)
npm install - 3
Copy .dev.vars.example to .dev.vars, set SESSION_SECRET, then apply migrations and seed local R2
npm run seed:local - 4
Start the dev server and open http://127.0.0.1:3000
npm run dev -- --host 127.0.0.1
Things to know
- Built around Cloudflare Workers, D1, R2, KV and Queues, so running it in production requires a Cloudflare account.
- Production use needs real payment and video provider accounts; the default mock providers charge nothing and generate nothing new.
- The README and docs are mainly in Chinese.
In collections
Topics
FAQ
- What is shrimpreel?
- Open-source Cloudflare-based template for building one-photo-to-AI-video SaaS sites, one site per trending keyword. ShrimpReel is a starter template for websites where a user uploads one photo and gets an AI-generated video that follows a viral template. The template is meant to be copied once per trending keyword: you create a new repository, change the site config, swap in your own copy and media, and deploy. The whole stack runs on Cloudflare Workers, D1, R2, KV, Queues, Rate Limiting and Cron Triggers, with TanStack Start and Hono on the application side.
- Is shrimpreel free to use? What license does it have?
- shrimpreel is open source under the MIT license. Check the license terms before using it in commercial products.
- Is shrimpreel still maintained?
- Actively maintained. The last commit to shrimpreel was on Nov 5, 2026.
- What can I use shrimpreel for?
- Launching a short-lived AI video site tied to a trending dance or filter keyword Starting a paid image-to-video SaaS on Cloudflare without building billing from scratch Running several keyword sites that share one codebase and receive upstream fixes via git merge
- How do I install shrimpreel?
- Clone the template repository: git clone https://github.com/qianshuixia/shrimpreel.git moonhop && cd moonhop Install dependencies (npm 11.19 or newer): npm install Copy .dev.vars.example to .dev.vars, set SESSION_SECRET, then apply migrations and seed local R2: npm run seed:local Start the dev server and open http://127.0.0.1:3000: npm run dev -- --host 127.0.0.1
- Where can I get shrimpreel?
- The source code and installation instructions are on GitHub: https://github.com/qianshuixia/shrimpreel
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Self-hosted, end-to-end encrypted temporary file sharing that runs on your own Cloudflare Workers, D1 and R2 account.
A self-hosted search gateway that gives AI agents unified search, news and page extraction over MCP, HTTP API or a TypeScript library, with provider fallback.
ArtCraft is a desktop IDE for AI image and video creation, combining 2D compositing and 3D scene staging with a catalog of third-party image, video, and 3D models.
Open-source AI video creation workspace with an infinite canvas, where a natural-language assistant builds workflows linking text, image and video nodes.
Open-source Agent Skills that let coding agents like Claude Code and Cursor turn text, images, URLs, scripts, or audio into finished AI videos.