No description
- Gleam 83.4%
- Nix 13.4%
- JavaScript 3.2%
| inputs/day01 | ||
| src | ||
| test | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| gleam.toml | ||
| manifest.toml | ||
| README.md | ||
Advent of Code 2026
The project uses Gleam and runs on Node.js.
-
Open the development shell from the project root.
nix develop -
Run the tests.
gleam test
Day 01
| Path | Contents |
|---|---|
src/aoc/day01.gleam |
The Day 01 solver scaffold |
inputs/day01/example.txt |
Sample data for the file reader test |
inputs/day01/input.txt |
Your local puzzle input. Git ignores this file. |
test/aoc_2026_test.gleam |
Tests for file contents and paths |
The Day 01 scaffold reads the selected input and reports that it needs a solver.
After you implement solve, run either command from the project root.
gleam run -- 1 example
gleam run -- 1
The first command reads example.txt. The second reads input.txt.
For each new day, add a solver under src/aoc/ and make an entry in solve in src/aoc_2026.gleam.
Use two digits in the module name and the directory name under inputs/.