RIPPWORKS / Clip Farming / Setup guide

Rippworks Clip Farming

Clip Farming is a wall of live streams (Twitch, Kick, YouTube Live) with heat bars that light up on chat surges, "clip it" messages and audio peaks.

Clip the last 30 or 60 seconds of any tile in one press, let Auto-clip catch spikes, and send everything to Stream Clip (or Voiceover) for captions and a vertical cut. 4 or 9 tiles in the browser; 16 and 25 in the Rippworks Relay desktop app. Owner-only tool.

This package ships the Rippworks Relay runtime (a small Node server plus the web app) with these product modules:

  • Clip Farming (clipfarm.js, clipfarm/)

Owner-only modules appear under Tools for the owner only (marked "Only you"). Modules that are not in this folder are simply absent; adding another package's module file and folder later turns it on.

System requirements

Item Minimum Recommended
OS Linux x64/arm64 (Ubuntu 22.04+, Debian 12+), macOS 13+, or Windows 10/11 with WSL2 Ubuntu 24.04 LTS server
Node.js 22.5 or newer (the app uses the built-in node:sqlite; tested on 22.23) Node 22 LTS
RAM 1 GB (chat only) 4 GB with video tools and the clip worker
Disk 500 MB for the app + whatever your uploads and recordings need 20 GB+ SSD
CPU 1 core 2-4 cores (clip exports run ffmpeg)
GPU Not needed Not needed
Ports 3100/tcp (app, keep it on localhost behind your proxy or tunnel) see Voice and video below

Clip Farming needs ffmpeg on the server. For 16/25 tiles and YouTube Live pulls on your PC, use the Rippworks Relay desktop package.

Optional system tools: ffmpeg / ffprobe 6+ (Stream Clip, Clip Farming, Voiceover, social covers), yt-dlp (YouTube links in Stream Clip), curl (stream thumbnails), livekit-server 1.9+ (voice and video).

Install and run locally

# 1. unpack, then inside the folder:
npm ci --omit=dev            # installs ws, livekit-client, the MCP SDK and zod (about 30 s)
cp .env.example .env         # then edit .env (at least STREAM_KEY_SECRET)
npm start                    # = node --env-file-if-exists=.env server.js

On first run the console prints a one-time link (also saved to data/owner-setup-link.txt):

[rippworks] first run: open this one-time link to create the owner account: http://localhost:3100/setup/<token>

Open it, pick a display name, username and password. The first account created is the owner. The link stops working once used. Then invite people from Settings > Invites. Check it is up: curl http://localhost:3100/api/health.

Configure keys

All settings live in .env (template: .env.example). Nothing is filled in for you and no key is shipped.

Where each key comes from

Key Needed for Where to get it
LK_KEY, LK_SECRET, LK_URL Voice rooms, video, screen share, Go live, Clip (replay) Self-hosted: livekit-server generate-keys (or let deploy/install.sh generate them). Cloud: LiveKit Cloud > Project > Settings > Keys; LK_URL is your wss:// project URL.
TURN (turn: block in deploy/livekit.yaml) Voice for people behind strict firewalls Built into LiveKit: give it a DNS name (TURN_DOMAIN) pointing at your server and a TLS certificate (Let's Encrypt). A separate coturn server also works: put its turns: URL in LiveKit's rtc.turn_servers.
STREAM_KEY_SECRET Encrypting saved stream keys, AI keys and sign-ins You make it up: any long random string. Keep it; changing it makes saved keys unreadable.
TWITCH_CLIENT_ID, TWITCH_CLIENT_SECRET Twitch search in Stream Clip, Twitch tiles in Clip Farming dev.twitch.tv > Your Console > Register Your Application (category "Application Integration", OAuth redirect http://localhost).
Kick Kick channels No key needed (public endpoints).
YouTube YouTube links / YouTube Live No key needed for clipping. The Social publisher needs GOOGLE_CLIENT_ID/SECRET (Google Cloud Console > APIs & Services > Credentials > OAuth client ID, YouTube Data API v3 enabled, redirect ORIGIN/api/social/oauth/youtube).
Gemini / Claude / OpenAI AI scans and re-cuts in Stream Clip Each member pastes their own key in Stream Clip > Settings (stored encrypted). Gemini: aistudio.google.com > Get API key. Claude: console.anthropic.com > API keys. OpenAI: platform.openai.com > API keys. Without a key Stream Clip uses its built-in heuristics.

Voice and video (LiveKit)

Chat, DMs, servers, Prompts and most tools work without it. Voice rooms, cameras, screen share, Go live and Clip need a LiveKit server.

  • Quick local test: install livekit-server (1.9 or newer: github.com/livekit/livekit/releases), run livekit-server --dev --bind 127.0.0.1, then set LK_URL=ws://localhost:7880, LK_KEY=devkey, LK_SECRET=secret and restart the app.
  • Production ports (open in your firewall): 7881/tcp (ICE over TCP), 50000-50100/udp (media), 3478/udp (TURN), 443/tcp (TURN over TLS, only if nothing else uses 443 on that box). Signalling (7880) stays private and is reached through your tunnel or proxy at ORIGIN/rtc.

Using Clip Farming

  1. (Twitch only) add TWITCH_CLIENT_ID and TWITCH_CLIENT_SECRET. Kick and YouTube Live need nothing.
  2. Sign in as the owner, open Tools > Clip Farming, pick a platform on the left, Add streamer by handle.
  3. Watch the heat bars; Clip 30s / 60s on a tile; clips land in the Clip tray.
  4. Send all to Stream Clip for captions and the vertical cut, or a clip's menu > Voiceover (when that module is installed).

Deploy

Pick one. Nothing here points at any particular server; fill in your own names.

A. Cloudflare Tunnel (no open web ports for the app)

  1. Run the app on the box as in Run locally (or install it as a service with option B, steps 1-3).
  2. cloudflared tunnel create rippworks, then route your hostname: cloudflared tunnel route dns rippworks app.your-domain.com.
  3. Tunnel ingress (config.yml): ```yaml ingress:
    • hostname: app.your-domain.com path: ^/rtc service: http://localhost:7880 # LiveKit signalling (only if you run voice)
    • hostname: app.your-domain.com service: http://localhost:3100
    • service: http_status:404 ```
  4. In .env: ORIGIN=https://app.your-domain.com, SECURE_COOKIE=1, LK_URL=wss://app.your-domain.com. Restart.
  5. Voice media cannot go through the tunnel: open the LiveKit UDP/TCP ports above on the box and point a DNS-only record (turn.your-domain.com) at its public IP for TURN.

B. Plain VPS with systemd (Ubuntu 24.04)

  1. In the package folder: npm ci --omit=dev && tar czf ../rippworks.tgz --exclude=./data --exclude=./.env . Copy ../rippworks.tgz and the deploy/ folder to the server (same folder).
  2. As root, from a folder holding rippworks.tgz and the files in deploy/ (plus turn.crt / turn.key if you have them): ORIGIN=https://app.your-domain.com PUBLIC_IP=<server ip> TURN_DOMAIN=turn.your-domain.com bash install.sh It creates the rippworks and livekit users, a private Node runtime in /opt/rippworks/node, the app in /opt/rippworks/app, data in /opt/rippworks/data, secrets in /etc/rippworks/rippworks.env (generated once), the systemd units and a nightly backup.
  3. Put a reverse proxy (Caddy, nginx) or a Cloudflare Tunnel in front of 127.0.0.1:3100 for HTTPS. Send /rtc to 127.0.0.1:7880 if you run voice.
  4. Read the one-time owner link: sudo cat /opt/rippworks/data/owner-setup-link.txt and open it.
  5. Updates later: new rippworks.tgz next to deploy/update.sh, run bash update.sh as root (keeps data and env, backs up the old code).

Troubleshooting

Symptom Fix
No such built-in module: node:sqlite Node is older than 22.5. Install Node 22 LTS (node -v).
ExperimentalWarning: SQLite is an experimental feature Harmless on Node 22.
The owner link says it was already used Stop the app and run node server.js --new-owner-link (works only while no owner exists), or start over with an empty DATA_DIR.
Sign-in works but the page reloads to the sign-in screen ORIGIN must match the address in the browser exactly (scheme, host, port). Behind https also set SECURE_COOKIE=1.
Voice says it can't connect LK_URL must be reachable from the browser (wss:// on https sites), and the UDP/TCP media ports must be open. Test with livekit-server --dev first.
Stream Clip: "ffmpeg missing" Install ffmpeg 6+ (apt install ffmpeg) or set FFMPEG / FFPROBE in .env. YouTube links also need yt-dlp on PATH or YTDLP.
Twitch shows "Needs setup" Add TWITCH_CLIENT_ID and TWITCH_CLIENT_SECRET, restart.
Port 3100 already in use Change PORT (and ORIGIN).
Health check curl http://localhost:3100/api/health should answer {"ok":true}.

What is not in this package

No accounts, servers, invites, messages, recordings, clips, uploads or database. No keys or tokens. No deployment targets. Your first run starts empty.