An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

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.

[![Deploy to Vercel](https://vercel.com/button)](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
[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=stackcats&repo=adventofcode&show_owner=true)](https://github.com/stackcats/adventofcode)