Inspiration

A stream can have thousands of viewers and still leave each person wondering whether their presence matters. I wanted a shared activity with a purpose for tonight and a memory for next time. A railway above the clouds gives chat something to build together. Its continuing voyage lets the streamer make each broadcast a chapter in the same community story.

What it does

Open RAIDLINE to enter the full-screen interactive railway immediately. The three-language app supports English, Traditional Chinese and Japanese. Explanations and the narrated demonstration live on a separate introduction page, while microusada.com remains a collection for all of my demos.

Viewers type !rail, !grow or !glow to contribute complementary resources, and vote once per leg for the next route. Three different people contributing the three roles within 20 active seconds open a constellation bridge once per leg, with a 12-second 1.2x boost and three signatures saved at the station. Timing stops when the journey is paused. Incoming raids receive a welcome, bounded supplies and a visible welcome carriage; raid audience size is not counted as actual command participation.

The streamer chooses a broadcast title and a goal: reach stations, complete relays or welcome raids, with a target from 1 to 20. Starting the next broadcast archives complete or partial progress, earned counters and recent station memories. Community totals and the most recent twelve chapters remain, while the new train starts paused. This supports a quiet station-building stream, a coordinated relay or a welcome for visiting communities without requiring a paid interaction or turning viewers into a leaderboard.

The host can also choose one of three continuing programs: The scenic route visits two stations, then Aurora and Coral; Crew in motion alternates a relay, two stations and two more relays; A continuing journal connects a first station to a new chapter and two further stations. Steps use new engine events after they begin, carry across broadcasts and never reuse the same milestone for the following step. Raids add memories without becoming a required checkpoint. These are optional, finite programs the host can change, rather than a claim of automated seasons or measured retention.

Calm, Standard and Gathering set travel pace to 0.75x, 1x and 1.25x while preserving the relay window, chat cooldown and reward duration. Hosts can choose to wait at every station until they press Depart, leaving space for conversation, breaks or welcoming people. These settings change only while paused.

A chapter card can be downloaded as a PNG in any of the three languages. It shows the current goal's earned counters and recent stations, with demo, fast-forward and restored-data labels. Viewer signatures and community names are omitted unless the host explicitly opts in. A separate private backup preserves the complete journey, host settings and program progress. Its preview names the destination and requires explicit consent to replace an existing save; confirmation is allowed only from paused practice. A Twitch backup returns only to its original inactive channel namespace and needs fresh authorization before use. Backups are local, unverified records and contain participant identifiers; the deidentified journey JSON remains a different sharing format.

Practice is explicitly labeled and starts paused. Its three role buttons represent three simulated travelers; automatic practice is opt-in. Connecting Twitch opens a separate journey for the broadcaster's own channel. RAIDLINE is an independent companion to existing Twitch chat and incoming Raid events. It does not integrate official Hype Train, Bits or Channel Points.

How I built it

OpenAI Codex helped implement the deterministic engine, relay rules, persistent goals and chapters, Twitch transport, three-language interface, original visuals, tests and demonstration. Agents handled separate components under the main build thread. The runtime has no model API dependency.

The current static browser app uses same-origin Three.js to render a dimensional railway, train and procedural clouds with shared lighting. Motion can be paused separately from the journey, reduced-motion preferences are respected, and hidden-page rendering stops. The interface uses locally bundled DM Sans and Noto Sans TC/JP with their license notices. I studied typography, color hierarchy and motion references before rebuilding the interface, compared local Anima variants, and selected an original Anima Base illustration for supporting artwork. The interactive world itself is rendered geometry.

The hosted app uses Public Device OAuth with user:read:chat and direct Twitch EventSub WebSocket subscriptions for the broadcaster's chat and incoming raids. Tokens stay in the current tab's memory. The private repository also retains the original dependency-free Node.js bridge and studio as a separate runnable implementation.

Challenges I ran into

Chat should feel immediate without rewarding spam. Cooldowns, one vote per leg, deduplication and capped rewards protect the shared journey. A single person cycling through commands cannot supply the relay's three signatures.

Continuity needs precise boundaries. Changing a goal preserves totals; starting a new chapter archives the current one; a full reset clears that world's state. Practice and real channels have separate storage namespaces. A stale tab checks the last observed saved value before writing and reports a conflict rather than silently overwriting newer progress. This is optimistic save protection, not a claim of atomic multi-tab transactions or cloud synchronization.

Moving the app to a subdomain required an opt-in, origin-checked transfer of validated journey data. Existing destination journeys require explicit replacement consent, original data is retained, and OAuth tokens are never transferred.

Accomplishments that I'm proud of

The railway has a reason to return: a purpose chosen by the host, signed moments made by the crew and an archive connecting broadcasts. The full-viewport world gives those shared actions a visible place, while goals, memories and settings stay in an optional drawer. The design supports a continuing community activity without claiming measured engagement gains.

The current release has 103 passing automated tests, including program progression, host pacing, strict backup validation, overwrite conflicts, failed restores, source isolation and anonymous card data. Current browser checks cover a completed three-step program across chapters, station departure, paused-only settings, backup download/preview/restore/reload, real PNG downloads in all three languages and the 390px mobile drawer. Earlier evidence covers relay, votes, welcome simulation, journey transfer and stale-tab conflict handling. The source and scoped evidence are included in the private repository; these checks do not establish real multiplayer behavior.

What I learned

A momentary chat effect and a continuing community tool need different kinds of state. I learned to separate a train leg, a broadcast goal and community history, then make their reset behavior visible. I also learned that coherent perspective, typography and motion matter more than adding decorative effects. Codex helped translate those boundaries into implementations and reviewable evidence.

Demonstration and evidence

The 2:55 YouTube demonstration records the earlier studio interface and remains evidence for the shared mechanics, actual Twitch connection and Codex build process. The immersive gallery captures show the full-screen interface; the hosted app also includes the newer continuing programs, hosting rhythm, private backups and chapter cards. The video predates those four features. The video has English narration and captions.

Four commands from one account were verified in the entrant's offline Twitch channel: !rail, !grow, !glow and !route aurora. Actual chat history is paired with later world captures; the send actions were not recorded. Relay, continuing-voyage and raid examples use clearly labeled synthetic practice input. Historical authorization evidence does not mean the new gallery captures show real chat or a real raid. A real multi-viewer relay, incoming raid and OBS Studio operation remain unverified.

Try it online or locally

The public app requires no login for practice. In the private repository, open the current interface with cd showcase followed by python -m http.server 8088 --bind 127.0.0.1 --directory public, then visit http://127.0.0.1:8088/?lang=en. No dependency installation or paid API is needed. The original studio remains available with npm start from the repository root. The official testing account's private-repository access was confirmed previously and is retained.

What's next for RAIDLINE

I would test pacing with real multi-viewer communities and refine moderator controls from their feedback. Hosted multi-channel coordination, cloud synchronization and cross-channel community transfers remain future work. The current product stores journeys in the user's browser and does not claim an automated season system.

Built With

Share this project:

Updates

Submission history