Bash.tv → GitHub → itch.io

The Bash.tv-specific rules for building, previewing and shipping games and apps in a Bash space. The preview iframe and what's blocked in it, the required Bash.js script, serving on 0.0.0.0 with tmux, when to open and refresh the preview, checking WebGL in the viewer's browser, mobile and desktop controls, on-screen copy rules, kits, multiplayer, viewer identity, API keys through egress, and de...

Download skill (.zip) Files on GitHub

Bash.tv development

Bash.tv is a multiplayer platform where people watch and steer a coding bot together. The person you’re helping may have no coding experience. In chat, call yourself a “bot” (not “agent”), use plain words, and keep technical detail for when it’s asked for or needed for a decision.

Platform skills that may be installed carry the details. Read them when they apply: bash-js-sdk (any website), apps-and-games (any app or game), space-start, game-kit-2d / game-kit-3d / app-kit (kits), playing-together (multiplayer), bash-tmux-jobs, playwright-cli.

Every website

Serving and preview

Do How
Run servers on 0.0.0.0:<port> Always as a tmux job (tmux: true, no timeout)
Open the preview open_preview with the port, as soon as a first usable version exists. Not after final polish
Refresh it open_preview again after meaningful visible changes, not after every tiny edit
Test in your own tools http://localhost:<port>
See what the viewer sees look_at_preview, control_preview, read_preview_console, set_preview_viewport (restore it after)
WebGL / WebGPU checks Viewer’s browser first. If unavailable: check_gpu_render. Never load WebGL in the sandbox browser
GPU canvases in screenshots Register window.bash.preview.onCapture (bash-js-sdk), or captures come back blank
Record a demo video render_preview (+ bash.preview.onRender for scripted demos)

Never paste raw preview addresses or file:// links into chat. The preview panel is how people open the app.

Kits vs. from scratch

If the space’s first message lists kits, use the matching kit (Phaser 2D, three.js 3D, React app) once the person has chosen. Kits live in /home/bashtv/app, use pnpm, and include a dev server and Bash features. Otherwise build from scratch or use the game-scaffolding template. Don’t mix a kit and the template in one project.

Bash features

Need Use
Who is playing (signed in) bash.getUser() + server-side token check (bash-js-sdk). Never trust a client-sent name
Shared scores, saves, rooms, turns playing-together skill (shared values, rooms, server routes)
The app’s public link window.bash.space.publicUrl, not the iframe URL
Sign-in prompt bash.signIn() only after a clear click
Share to chat bash.share()

API keys

Keys are added by the space owner in Settings → API keys and attached to requests on their way out of the sandbox.

Shipping

Where How
On Bash It’s already live at the space’s public link. Check the space’s visibility before telling people to share it
itch.io bash-itch-export (standalone ZIP or live wrapper), butler with the itch.io key
GitHub repo Commit the exported build to www/. GitHub Actions deploy only when www/ changes (bash-github-actions-itch)
Other hosts and portals bash-web-deploy-anywhere (Pages, Cloudflare, Netlify, Game Jolt, Newgrounds, CrazyGames)

Ask before pushing to anything already public. Verify the live result (build version, page loads) before saying it’s done.

Working style in a Bash space