Circus v2 for developers. Acrobats are deploy pipelines, clowns are bugs, lion tamer is your SRE, ringmaster is the PM.
  • JavaScript 100%
Find a file
2026-06-30 11:14:31 +00:00
node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 test: add e2e tests 2026-06-28 11:10:14 +00:00
src feat(#1): circus v2 engine — performers, acts, audience, ringmaster, ASCII big top 2026-06-15 17:37:29 +00:00
tests fix: e2e tests now use CommonJS require for node --test compatibility 2026-06-30 11:14:27 +00:00
package.json feat(#1): circus v2 engine — performers, acts, audience, ringmaster, ASCII big top 2026-06-15 17:37:29 +00:00
README.md feat(#1): circus v2 engine — performers, acts, audience, ringmaster, ASCII big top 2026-06-15 17:37:29 +00:00

code-circus-v2

Circus v2 for developers. Acrobats are deploy pipelines, clowns are bugs, lion tamer is your SRE, ringmaster is the PM.

Usage

const { Circus, PERFORMER_TYPES, ACT_TYPES } = require('./src/circus');

const circus = new Circus('Circus Maximus');
circus.setRingmaster('PT Barnum');

// Hire performers
circus.hirePerformer('Alice', PERFORMER_TYPES.ACROBAT);
circus.hirePerformer('Bob', PERFORMER_TYPES.LION_TAMER);
circus.hirePerformer('Carol', PERFORMER_TYPES.TIGHTROPE);

// Assign to rings
circus.assignToRing('Alice', 'dev');
circus.assignToRing('Bob', 'prod');

// Create and run acts
circus.createAct('Big Release', ACT_TYPES.MAIN);
circus.acts[0].addPerformer(circus.getPerformer('Alice'));
circus.runAct(0);

// Sell tickets
circus.sellTickets(200);

console.log(circus.circusView());
console.log(circus.report());

Performers

  • Acrobat (CI/CD Pipeline) — High risk deploys without a net
  • Clown (Bug) — Chaos agent, crowd loves them
  • Juggler (Load Balancer) — Keeps many balls in the air
  • Lion Tamer (SRE) — Controls production beasts
  • Tightrope Walker (Hot Deploy) — One wrong step = disaster
  • Magician (Abstraction Layer) — Makes complexity disappear
  • Strongman (Database) — Lifts enormous payloads
  • Trapeze Artist (Zero-Downtime) — Catches releases mid-air

Acts

  • Opening (Warmup) — Smoke tests, warm caches
  • Main Event (Release) — Major feature deployment
  • Grand Finale (Launch) — Full rollout, fireworks
  • Sideshow (Experiment) — Dark features, A/B tests