Skip to content

About

Current information about DDEV's sponsors and current needs

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

295 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy API Data to GitHub Pages

DDEV Sponsorship Data

Daily-updated sponsorship data for the DDEV project, published via GitHub Pages as a JSON API and SVG badges.

Data Sources

Sponsorship totals are combined from several sources:

API

The combined data is published at:

URL Notes
https://ddev.com/s/sponsorship-data.json Preferred short URL
https://ddev.github.io/sponsorship-data/data/all-sponsorships.json Direct (backward compatible)
https://ddev.github.io/sponsorship-data/api/all-sponsorships.json Direct (new path)

See the API index page for full documentation.

Integrations

Property Source file
ddev.com SponsorsBanner.astro
addons.ddev.com sponsors-banner.html
docs.ddev.com sponsors-banner.html
thedroptimes.com
markconroy/web-components sponsors-banner.js

The feed also drives sponsorship progress tips shown in the terminal at ddev start.

See the blog post for a full write-up of the project and its integrations.

SVG Badges

Two sponsorship progress badges are generated daily alongside the JSON data:

Badge URL
Light mode https://ddev.github.io/sponsorship-data/badges/sponsorship-badge.svg
Dark mode https://ddev.github.io/sponsorship-data/badges/sponsorship-badge-dark.svg

Scripts

Script Description
scripts/github-sponsorships.sh Fetches GitHub Sponsors data for a given org or user via GraphQL
scripts/combine-sponsorships.sh Merges all sources into data/all-sponsorships.json
scripts/generate-sponsorship-svg.sh Generates SVG badges from data/all-sponsorships.json

To regenerate data locally (requires strip-json-comments-cli and jq):

scripts/combine-sponsorships.sh
scripts/generate-sponsorship-svg.sh
# SVGs are written to data/tmp/

Sponsorship History

Each daily deploy saves a snapshot to the history branch under data/history/YYYY-MM-DD.json.

git fetch origin history
git checkout history
# data/history/ contains all daily snapshots

Example - show total monthly income over time:

for f in data/history/*.json; do
  echo "$(basename $f .json) $(jq '.total_monthly_average_income' < "$f")"
done | sort

Source Files

File Description
src/index.html Source for the GitHub Pages index page
src/github-sponsors.md Backup of the github.com/sponsors/ddev page description

Support DDEV

About

Current information about DDEV's sponsors and current needs

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages