Circus v2 for developers. Acrobats are deploy pipelines, clowns are bugs, lion tamer is your SRE, ringmaster is the PM.
- JavaScript 100%
| node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 | ||
| src | ||
| tests | ||
| package.json | ||
| README.md | ||
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