Discover the number of contributions you made to Nuxt and get the Nuxter badge on Nuxt Discord server.
The leaderboard and the profiles now live on https://nuxt.com/nuxters: nuxters.nuxt.com redirects there (pages, profiles and README cards, see vercel.json). This repository collects the contributor stats that nuxt.com imports every day.
Install the dependencies with pnpm:
pnpm installNext, copy the .env.example to .env and fill the env variables.
Start the development server on http://localhost:3000:
pnpm dev- Run
pnpm collect:contributorslocally withNUXT_GITHUB_TOKENset to a GitHub personal access token that can read public repos. - The script aggregates contributions across Nuxt organizations and writes one file per period to
public/:contributors.json(all time),contributors-30d.json,contributors-12m.jsonandcontributors-<year>.json(from 2016). - Merged PRs, helpful issues and helpful comments in
nuxt/nuxtand its former homes (nuxt/framework,nuxt/docs, both archived but still collected) count double. Each record has acoreobject with that part, so the score can be explained. - It also writes
profiles.json: the name, website and social accounts (Bluesky, X, LinkedIn, Mastodon…) of every all-time contributor who set any on their GitHub profile. If GitHub fails to return them, the previous file is kept. - To test locally on a few repositories without touching
public/:COLLECT_REPOS=nuxt/docs,nuxt/nuxters CONTRIBUTORS_OUTPUT_DIR=/tmp/nuxters pnpm collect:contributors. .github/workflows/update-contributors.ymlrefreshes the data nightly and on demand, committing changes automatically.
