PR #143

6 votes · 6 up · 0 down

View on GitHub
6
Total Votes
+6
Upvotes
-0
Downvotes
+6-0

Comments(1)

openchaos-bot[bot]Comment#143Add Chaos^N: Random theme routing for infinite variants

🤖 OpenChaos Bot

Summary: This PR introduces a basic A/B testing framework ("Chaos Router") to OpenChaos. It adds a "teletext" variant of the homepage, selectable randomly, and makes some IE6 layout features toggleable via random feature flags.

Files changed: 9 (src/app/geocities/layout.tsx, src/app/geocities/page.tsx, src/app/teletext.css, src/app/teletext/layout.tsx, src/lib/chaos-router.ts)

Vibe: Buckle up, buttercups, because this PR is about to spray the codebase with a generous helping of random!


openchaos-bot

All Activity(8)

openchaos-bot[bot]Comment#143Add Chaos^N: Random theme routing for infinite variants

🤖 OpenChaos Bot

Summary: This PR introduces a basic A/B testing framework ("Chaos Router") to OpenChaos. It adds a "teletext" variant of the homepage, selectable randomly, and makes some IE6 layout features toggleable via random feature flags.

Files changed: 9 (src/app/geocities/layout.tsx, src/app/geocities/page.tsx, src/app/teletext.css, src/app/teletext/layout.tsx, src/lib/chaos-router.ts)

Vibe: Buckle up, buttercups, because this PR is about to spray the codebase with a generous helping of random!


openchaos-bot

SaturatePR opened#143

Add Chaos^N: Random theme routing for infinite variants

Summary

Proxy randomly routes the homepage between two visual variants - GeoCities (current IE6 retro) and Terminal (green-on-black with CRT scanlines).

GeoCities variant: /geocities - IE6 retro aesthetic (current look) Terminal variant: /teletext - Green terminal with CRT scanlines

Both variants share the same PR voting logic. Feature flags randomly toggle components (guestbook, tree game, midi player) for more chaos.

Chaos^N

Currently two variants, but the architecture supports unlimited themes. Future PRs can add:

  • Windows 98 BSOD
  • Commodore 64
  • MySpace 2006
  • Matrix code rain
  • ASCII art mode
  • Comic Sans nightmare
  • Whatever chaos you can imagine

Just create a folder + add to ROUTE_GROUPS array. The proxy handles the rest. More variants = more chaos = Chaos^N!

How it works

  1. Visit / → proxy rewrites to random variant
  2. Variants live in separate route folders with their own layouts
  3. Central chaos-router.ts manages routing logic (easy to modify for time-based, IP-based, weighted distribution, etc.)
  4. Feature flags add another layer of randomness within each variant