https://github.com/stackcats/adventofcode-badge
Generate advent of code badge
https://github.com/stackcats/adventofcode-badge
Last synced: 7 months ago
JSON representation
Generate advent of code badge
- Host: GitHub
- URL: https://github.com/stackcats/adventofcode-badge
- Owner: stackcats
- Created: 2021-10-25T10:33:21.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-30T08:08:14.000Z (10 months ago)
- Last Synced: 2025-03-29T04:23:07.799Z (8 months ago)
- Language: JavaScript
- Homepage: adventofcode-badge.vercel.app
- Size: 74.2 KB
- Stars: 22
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-advent-of-code - adventofcode-badge - - An interface over Shields.io to facilitate the creation of badges from Advent of Code. (Tools and Utilities)
README
# Advent of Code Badge Generator
An interface over [Shields.io](https://shields.io) to facilitate the creation of badges from Advent of Code.
Deploy on your [Vercel](https://vercel.com) instance
---
## Setup
#### Get your session id
There is no open api to get user's profile.
Press F12 while you are logged in on [adventofcode.com](https://adventofcode.com/) to open the developer tools of your browser.
Then open the `Application` Tab on Chromium Browsers or `Storage` on Firefox. There you can have a look at your cookies and copy the session id.
#### Deploy to Vercel
Import project from this repo.
[](https://vercel.com/import/project?template=https://github.com/stackcats/adventofcode-badge)
Add your environment variable named `SESSION` value is your session id.
Click deploy. See your domains to use the API!
## API
#### Response
```js
{
"2015":"6*",
"2016":"0*",
"2017":"0*",
"2018":"3*",
"2019":"0*",
"2020":"0*",
"2021":"0*",
"allStars":"9*"
}
```
* The API fetch star-counts from 2015 to the current year.
* We can show all star-counts or each year respectively.
## My Adent of Code Elixir Solutions
[](https://github.com/stackcats/adventofcode)