slashinfty/tournament-organizer ? reverse-engineered prompt

Reverse engineered prompt

Build me a TypeScript Node.js library for organizing tournaments.

I want it to handle a few common tournament styles, like round robin, Swiss, and playoffs, and to support tie breakers so standings can be sorted fairly. It should be easy for someone to use from their own app or scripts, with a clean API for creating a tournament, adding results, and getting current rankings or the next round. If it makes sense, include good docs and examples so someone can get started quickly.

Please make it feel like a real reusable package, not just a demo. If you need to check anything in current docs online, go ahead and look it up.