Skip to content

cnoid/contrib-api

Repository files navigation

contrib-api

Github Contribution API (GraphQL)

Usage:

Edit the file .env.local with your Github token. You only need user: read:user.

Docker (easiest)

Expand

docker build -t githubcontribapi .

docker run -d --restart unless-stopped -p 3000:3000 githubcontribapi

http://yourip:3000/api/contrib?userName=yourusername

Node.js

Expand Requires Node.js 16

npm i

npm run dev --host

http://yourip:3000/api/contrib?userName=yourusername

This just prints out a JSON format, which can be used with SvelteKit for example.

image

If you're wanting to put this behind say, nginx - you can do a normal reverse proxy. If you're putting it in a subfolder however, you'll need a rewrite rule as expected.

About

Node.js Github Contribution API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published