Skip to content
+

Github Calendar

The Github components lets users view various aspects of github information.

Api

GithubCalendar accepts a githubUser and can either:

  • use a server-side proxy endpoint via apiUrl
  • fall back to the public contributions API for public-only data

Local proxy example

import { GithubCalendar } from '@stoked-ui/github/GithubCalendar';
<GithubCalendar githubUser="brian-stoker" apiUrl="/api/github/contributions" />
 
Press Enter to start editing

External API example

If another domain exposes the same response contract, point apiUrl there:

<GithubCalendar
  githubUser="brian-stoker"
  apiUrl="https://brianstoker.com/api/github/contributions"
/>