{"id":13778957,"url":"https://github.com/matijaoe/advent-of-code","last_synced_at":"2026-05-16T22:05:08.084Z","repository":{"id":210124406,"uuid":"725777382","full_name":"matijaoe/advent-of-code","owner":"matijaoe","description":"🎄Advent of code Bun template","archived":false,"fork":false,"pushed_at":"2023-12-16T11:09:11.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T03:33:26.006Z","etag":null,"topics":["advent-of-code","advent-of-code-2023","bun","typescript"],"latest_commit_sha":null,"homepage":"https://adventofcode.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matijaoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-30T21:16:11.000Z","updated_at":"2024-12-02T03:39:05.000Z","dependencies_parsed_at":"2023-12-01T01:25:12.162Z","dependency_job_id":"68cf58a4-7a44-4cb4-a16a-96e9308ed3ee","html_url":"https://github.com/matijaoe/advent-of-code","commit_stats":null,"previous_names":["matijaoe/advent-of-code-2023","matijaoe/advent-of-code"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/matijaoe/advent-of-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matijaoe%2Fadvent-of-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matijaoe%2Fadvent-of-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matijaoe%2Fadvent-of-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matijaoe%2Fadvent-of-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matijaoe","download_url":"https://codeload.github.com/matijaoe/advent-of-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matijaoe%2Fadvent-of-code/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264925935,"owners_count":23684237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["advent-of-code","advent-of-code-2023","bun","typescript"],"created_at":"2024-08-03T18:00:59.474Z","updated_at":"2026-05-16T22:05:08.021Z","avatar_url":"https://github.com/matijaoe.png","language":"TypeScript","funding_links":[],"categories":["Project Templates"],"sub_categories":[],"readme":"# 🎄 Advent of Code Template\n\n![Bun](https://img.shields.io/badge/Bun-%23000000.svg?style=for-the-badge\u0026logo=bun\u0026logoColor=white) ![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge\u0026logo=typescript\u0026logoColor=white)\n![ESLint](https://img.shields.io/badge/ESLint-4B3263?style=for-the-badge\u0026logo=eslint\u0026logoColor=white)\n\n- **Bun \u0026 TypeScript**, with ESLint\n- Automatic day setup\n- Puzzle input automatically fetched\n- Performance metrics\n\n## Setup\n\nDownload template (powered by [`unjs/giget`](https://github.com/unjs/giget))\n```shell\nnpx giget gh:matijaoe/advent-of-code advent-of-code-2023\n```\n\nEnsure [`bun`](https://bun.sh/) is installed:\n```\nbun -v\n\n# if not installed, run this:\ncurl -fsSL https://bun.sh/install | bash\n```\n\nInstall dependencies:\n```bash\nbun install\n```\n\nSet up a new day:\n```bash\nbun setup 1\n```\n\nRun day solutions:\n```bash\nbun day 1\n```\n\nRun day solutions in dev mode (without clearing console outputs):\n```bash\nbun day 1 --dev\n```\n\nFor automatic puzzle input retrieval, define `.env` file with `session` cookie from [adventofcode.com](https://adventofcode.com):\n```env\nSESSION=\nYEAR=2023\n```\n\n## Structure\n\nGenerated day structure:\n```ts\nimport { parseLines, readInput } from 'io'\n\nconst input = await readInput('day-01')\n\nexport const part1 = () =\u003e {\n  const lines = parseLines(input)\n  // your code goes here\n  return lines.length\n}\n```\n\nExpected `index.ts` solution structure (day 1 of 2022):\n```ts\nimport { parseGroups, readInput } from 'io'\nimport { desc, sum } from 'utils'\n\nconst input = await readInput('day-01')\n\nexport const part1 = () =\u003e {\n  const lines = parseGroups(input, Number)\n  return lines.map(sum).sort(desc).at(0)\n}\n\nexport const part2 = () =\u003e {\n  const lines = parseGroups(input, Number)\n  const top = lines.map(sum).sort(desc).slice(0, 3)\n  return sum(top)\n}\n```\n\n`bun day \u003cday-num\u003e` output:\n```\n🌲 Part One: 70698 (1.11 ms)\n🎄 Part Two: 140471 (383.5 µs)\n```\n\n\n## Days\n⭐ / ❌\n\n| Day | Part 1 | Part 2 | Solution                      | Advent of Code link                            |\n| --- | ------ | ------ | ----------------------------- | ---------------------------------------------- |\n| 01  |        |        | [Link](./src/day-01/index.ts) | [Day 01](https://adventofcode.com/2023/day/1)  |\n| 02  |        |        |                               | [Day 02](https://adventofcode.com/2023/day/2)  |\n| 03  |        |        |                               | [Day 03](https://adventofcode.com/2023/day/3)  |\n| 04  |        |        |                               | [Day 04](https://adventofcode.com/2023/day/4)  |\n| 05  |        |        |                               | [Day 05](https://adventofcode.com/2023/day/5)  |\n| 06  |        |        |                               | [Day 06](https://adventofcode.com/2023/day/6)  |\n| 07  |        |        |                               | [Day 07](https://adventofcode.com/2023/day/7)  |\n| 08  |        |        |                               | [Day 08](https://adventofcode.com/2023/day/8)  |\n| 09  |        |        |                               | [Day 09](https://adventofcode.com/2023/day/9)  |\n| 10  |        |        |                               | [Day 10](https://adventofcode.com/2023/day/10) |\n| 11  |        |        |                               | [Day 11](https://adventofcode.com/2023/day/11) |\n| 12  |        |        |                               | [Day 12](https://adventofcode.com/2023/day/12) |\n| 13  |        |        |                               | [Day 13](https://adventofcode.com/2023/day/13) |\n| 14  |        |        |                               | [Day 14](https://adventofcode.com/2023/day/14) |\n| 15  |        |        |                               | [Day 15](https://adventofcode.com/2023/day/15) |\n| 16  |        |        |                               | [Day 16](https://adventofcode.com/2023/day/16) |\n| 17  |        |        |                               | [Day 17](https://adventofcode.com/2023/day/17) |\n| 18  |        |        |                               | [Day 18](https://adventofcode.com/2023/day/18) |\n| 19  |        |        |                               | [Day 19](https://adventofcode.com/2023/day/19) |\n| 20  |        |        |                               | [Day 20](https://adventofcode.com/2023/day/20) |\n| 21  |        |        |                               | [Day 21](https://adventofcode.com/2023/day/21) |\n| 22  |        |        |                               | [Day 22](https://adventofcode.com/2023/day/22) |\n| 23  |        |        |                               | [Day 23](https://adventofcode.com/2023/day/23) |\n| 24  |        |        |                               | [Day 24](https://adventofcode.com/2023/day/24) |\n| 25  |        |        |                               | [Day 25](https://adventofcode.com/2023/day/25) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatijaoe%2Fadvent-of-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatijaoe%2Fadvent-of-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatijaoe%2Fadvent-of-code/lists"}