{"id":51619992,"url":"https://github.com/coder/balatrobench","last_synced_at":"2026-07-12T18:02:15.330Z","repository":{"id":336724488,"uuid":"1042241528","full_name":"coder/balatrobench","owner":"coder","description":"Benchmark LLMs' strategic performance in Balatro 📊","archived":false,"fork":false,"pushed_at":"2026-05-19T21:46:35.000Z","size":1034,"stargazers_count":20,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-02T14:07:36.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://balatrobench.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-21T17:46:18.000Z","updated_at":"2026-05-27T17:03:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/coder/balatrobench","commit_stats":null,"previous_names":["coder/balatrobench"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/coder/balatrobench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fbalatrobench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fbalatrobench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fbalatrobench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fbalatrobench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder","download_url":"https://codeload.github.com/coder/balatrobench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fbalatrobench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35398566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-12T02:00:06.386Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-12T18:02:14.811Z","updated_at":"2026-07-12T18:02:15.322Z","avatar_url":"https://github.com/coder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eBalatroBench\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/coder/balatrobench/releases\"\u003e\n      \u003cimg alt=\"GitHub release\" src=\"https://img.shields.io/github/v/release/coder/balatrobench?include_prereleases\u0026sort=semver\u0026style=for-the-badge\u0026logo=github\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://discord.gg/TPn6FYgGPv\"\u003e\n      \u003cimg alt=\"Discord\" src=\"https://img.shields.io/badge/discord-server?style=for-the-badge\u0026logo=discord\u0026logoColor=%23FFFFFF\u0026color=%235865F2\"/\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n  \u003cdiv\u003e\u003cimg src=\"./site/assets/balatrobench.svg\" alt=\"balatrobench\" width=\"170\" height=\"170\"\u003e\u003c/div\u003e\n  \u003cp\u003e\u003cem\u003eBenchmark LLMs playing Balatro\u003c/em\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\nBalatroBench is a benchmark analysis tool and leaderboard for [BalatroLLM](https://github.com/coder/balatrollm) runs. It processes game data and generates interactive leaderboards comparing LLM models and strategies playing [Balatro](https://www.playbalatro.com/).\n\n\u003e [!NOTE]\n\u003e You can download all the data for `runs` and `benchmarks` from the [kaggle](https://www.kaggle.com/datasets/s1m0n38/balatrobench).\n\n## 🚀 Related Projects\n\n- [**BalatroBot**](https://github.com/coder/balatrobot): API for developing Balatro bots\n- [**BalatroLLM**](https://github.com/coder/balatrollm): Play Balatro with LLMs\n- [**BalatroBench**](https://github.com/coder/balatrobench): Benchmark LLMs playing Balatro\n\n## 📚 Documentation\n\n\u003e [!IMPORTANT]\n\u003e This is the documentation for analyzing `runs` artifacts produced by [BalatroLLM](https://github.com/coder/balatrollm). This project parses the data and displays it as a website.\n\n### Requirements\n\n- [uv](https://docs.astral.sh/uv/) - Python package manager (installation steps below)\n- [Node.js](https://nodejs.org/) - JavaScript runtime (includes npm) required just for Playwright tests\n\n### Installation\n\nFollow these steps to set up BalatroBench:\n\n1. **Install uv**\n\n    Install the [uv](https://docs.astral.sh/uv/) Python package manager:\n\n    ```bash\n    # macOS/Linux\n    curl -LsSf https://astral.sh/uv/install.sh | sh\n\n    # Windows\n    powershell -ExecutionPolicy ByPass -c \"irm https://astral.sh/uv/install.ps1 | iex\"\n    ```\n\n    See the [uv installation docs](https://docs.astral.sh/uv/getting-started/installation/) for more options.\n\n2. **Clone the repository**\n\n    ```bash\n    git clone https://github.com/coder/balatrobench.git\n    cd balatrobench\n    ```\n\n3. **Configure environment variables**\n\n    Copy the example environment file and fill in your values:\n\n    ```bash\n    cp .envrc.example .envrc\n    ```\n\n    Edit `.envrc` and set the following variables (required for uploading benchmarks to CDN):\n\n    - `BUNNY_BASE_URL` - BunnyCDN base URL\n    - `BUNNY_STORAGE_ZONE` - Storage zone name\n    - `BUNNY_API_KEY` - API key for authentication\n\n4. **Install dependencies**\n\n    ```bash\n    make install\n    ```\n\n    This runs `uv sync` for Python packages and `npm install` for Playwright tests.\n\n5. **Activate the environment**\n\n    ```bash\n    source .envrc\n    ```\n\n    Alternatively, use [direnv](https://direnv.net/) to automatically load the environment:\n\n    ```bash\n    # Install direnv, then allow the directory\n    direnv allow\n    ```\n\n6. **Install browser binaries (first time only)**\n\n    ```bash\n    npx playwright install chromium\n    ```\n\n### Generating Benchmarks\n\nGenerate benchmark data from BalatroLLM runs:\n\n```bash\n# Analyze runs from a specific directory\nbalatrobench --input-dir /path/to/runs/v1.0.0\n\n# Custom output directory\nbalatrobench --input-dir /path/to/runs/v1.0.0 --output-dir /path/to/output\n\n# Enable WebP conversion for screenshots\nbalatrobench --input-dir /path/to/runs/v1.0.0 --webp\n```\n\n### Starting the Website\n\nServe the site locally:\n\n```bash\nmake serve\n```\n\nThis will start a local server at [http://localhost:8000](http://localhost:8000) and automatically open it in your browser.\n\nThe environment is automatically detected (localhost = development, otherwise = production).\nTo override, use the query parameter: `?env=development` or `?env=production`.\n\n### Running Tests\n\nEnd-to-end tests use Playwright and `balatrobench` tests:\n\n```bash\nmake test\n```\n\n\u003e [!NOTE]\n\u003e Although `playwright.config.js` includes webServer configuration, the server may not auto-start reliably. If tests fail to connect, manually start the server first:\n\n```bash\nmake serve  # In a separate terminal\nmake test   # Run tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder%2Fbalatrobench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder%2Fbalatrobench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder%2Fbalatrobench/lists"}