If you run into an issue, please first check the issue tracker to ensure it hasn't been reported before. Only open a new issue if you haven't found anything similar to your issue.
The API consists of a single endpoint /api/contributions/[username]. It utilises recharts to generate a React graph that is then rendered as a string. The component that is generated is located here.
Some slightly cursed string operations are then used to extract the generated svg and embed it within another svg which contains some custom css.
The custom options are validated using zod. The default options are specified in the OptionsService.