DEV Community

Max
Max

Posted on

I Built a Codebase That Evolves Itself Through Democracy

OpenChaos screenshot

I built OpenChaos - a codebase with no roadmap, no product manager, and every change decided by community vote.

How it works

  1. Anyone submits a PR
  2. Community votes with ๐Ÿ‘ reactions on GitHub
  3. Most-voted PR gets merged every Sunday
  4. Only rule: CI must pass

Everything can be changed. Including the rules.

What happened in the first 24 hours

  • 12+ PRs competing
  • Someone tried to delete everything (their PR fails CI - democracy has guardrails)
  • A full Rust rewrite appeared
  • Dark mode is leading with 150+ votes
  • Someone submitted dickbutt

I didn't expect any of this.

Why I built it

Most open source projects have a benevolent dictator. One person decides what ships.

OpenChaos has no dictator. The community decides. If they vote for chaos, chaos ships. If they vote for stability, stability wins.

It's basically Nomic for code - a game where the rules can change the rules.

The guardrails

Just one: Vercel has to build it to deploy.

That's the ceiling. Someone could change CI rules, remove tests, whatever - but if Vercel can't build it, it doesn't ship.

Someone could PR a database. Someone could remove features. Someone could rewrite everything in Rust (they're trying - it doesn't build yet).

First merge: Sunday

3 days from now, the first PR gets merged. Dark mode is winning, but anything could happen.

I have no idea what this becomes. That's the point.


Check it out: openchaos.dev

Repo: github.com/skridlevsky/openchaos

Vote on PRs: Just add ๐Ÿ‘ to any open PR


What would you PR?

Top comments (0)