Rippworks Prompts
Prompts (the Interpreter) turns rough plain English into a clean, sectioned prompt: Task, Context, Inputs, Output, Limits, Done when.
Compile with a signature and a grade, improve weak parts, save to a Library of projects, build chains, split a big ask into steps and export any prompt or chain as a SKILL.md. The compiler runs locally (WebAssembly), no AI key needed.
This package ships the Rippworks Relay runtime (a small Node server plus the web app) with these product modules:
- Prompts (
interpreter.js,interpreter/)
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 |
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), runlivekit-server --dev --bind 127.0.0.1, then setLK_URL=ws://localhost:7880,LK_KEY=devkey,LK_SECRET=secretand 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 Prompts
- Sign in as the owner, open Tools > Interpreter.
- Compile: paste rough instructions (or press Try an example). The right side shows the signature, a grade, and the compiled prompt; Copy prompt or Download report (PDF).
- Improve: fills blanks and fixes vague words; Use it sends the improved text back to Compile.
- Library: save templates into projects, search, grade at a glance, run them in Compile.
- Split & Export: split a multi-job ask into a checked chain, or export the prompt / a saved chain as
SKILL.md. - Lexer & Symbols: see how the compiler reads every word.
The Rust source of the compiler is in interpreter/engine/ (rebuild with wasm-pack build --target nodejs); the built engine ships in interpreter/wasm/.
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)
- Run the app on the box as in Run locally (or install it as a service with option B, steps 1-3).
cloudflared tunnel create rippworks, then route your hostname:cloudflared tunnel route dns rippworks app.your-domain.com.- 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 ```
- In
.env:ORIGIN=https://app.your-domain.com,SECURE_COOKIE=1,LK_URL=wss://app.your-domain.com. Restart. - 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)
- In the package folder:
npm ci --omit=dev && tar czf ../rippworks.tgz --exclude=./data --exclude=./.env .Copy../rippworks.tgzand thedeploy/folder to the server (same folder). - As root, from a folder holding
rippworks.tgzand the files indeploy/(plusturn.crt/turn.keyif you have them):ORIGIN=https://app.your-domain.com PUBLIC_IP=<server ip> TURN_DOMAIN=turn.your-domain.com bash install.shIt creates therippworksandlivekitusers, 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. - Put a reverse proxy (Caddy, nginx) or a Cloudflare Tunnel in front of
127.0.0.1:3100for HTTPS. Send/rtcto127.0.0.1:7880if you run voice. - Read the one-time owner link:
sudo cat /opt/rippworks/data/owner-setup-link.txtand open it. - Updates later: new
rippworks.tgznext todeploy/update.sh, runbash update.shas 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.