Solving Advent of Code puzzles with TypeScript and Bun.
@dsqr/aoc-utils - Input utilities library (published on npm)
@aoc/2025 - 2025 puzzle solutions
@aoc/2024 - 2024 puzzle solutions
@aoc/cli - Type-safe CLI framework
Install dependencies:
bun installSet your AoC session cookie:
export AOC_SESSION=your_cookie_hereGet your session cookie from https://adventofcode.com (DevTools → Cookies → session)
Run solutions:
# Run all solutions for the year
bun packages/2025/src/index.ts
# Run a single day (both parts)
bun packages/2025/src/day-one/index.ts
# Run a specific part
bun packages/2025/src/day-one/solution-one.ts
bun packages/2025/src/day-one/solution-two.tsNah, at least not yet lol.
bun packages/utils/src/cli/aoc-cli.ts scaffold 2Run all tests with coverage:
bun test --coverageWatch mode:
bun test --watchBuild all packages:
bun run buildSetup development environment:
nix flake update
direnv allowThis provides Bun, Node.js, and Biome.
Do whatever you want with it. MIT.