A GitHub-hosted static website that displays a leaderboard of SimplePage domains based on visitor data from Plausible Analytics.
- Clone this repository.
- Run
npm installto install dependencies. - Create a Plausible Analytics API key (Stats API) and set it as an environment variable:
export PLAUSIBLE_API_KEY=your_key_here - Run
npm run updateto fetch data and generate the leaderboard.
- Ensure
PLAUSIBLE_API_KEYis set. - Run
npm run updateto updatedata.jsonandindex.html. - Open
index.htmlin a browser to view the leaderboard.
- Enable GitHub Pages in repository settings (deploy from main branch).
- Add
PLAUSIBLE_API_KEYas a repository secret in GitHub (Settings > Secrets and variables > Actions). - The workflow will run daily at midnight UTC, updating the site automatically.
update.js: Script to fetch data from Plausible API and generate leaderboard.index.html: The leaderboard page.styles.css: Styling for the page.data.json: JSON data for the leaderboards..github/workflows/update.yml: GitHub Actions workflow for daily updates.