Lives at https://r-packages.techtonique.net/
Add the package to the packages.json file.
Add download badges to your package READMEs:
<!-- Monthly Downloads -->

<!-- Total Downloads -->
Replace yourpackage with your actual package name.
GET /badges/downloads/{period}/{package}.svg?color={color}
Periods: last-day, last-week, last-month, grand-total
Colors: blue, green, brightgreen, orange, red, yellow, yellowgreen, lightgrey, auto
<!-- Basic badge -->

<!-- With custom color -->

<!-- Auto color (adjusts based on download count) -->

<!-- Clickable badge -->
[](https://r-packages.techtonique.net)Total downloads (CRAN logs compatible):
curl https://r-packages.techtonique.net/downloads/total/last-week/yourpackageDaily breakdown:
curl "https://r-packages.techtonique.net/downloads/daily/yourpackage?from_date=2024-11-01&to_date=2024-12-01"library(httr)
library(jsonlite)
# Get total downloads
url <- "https://r-packages.techtonique.net/downloads/total/last-month/yourpackage"
response <- GET(url)
data <- fromJSON(content(response, "text"))
print(data)When using color=auto, badges automatically adjust:
- 🟢 brightgreen → 100,000+ downloads
- 🟢 green → 10,000+ downloads
- 🟡 yellowgreen → 1,000+ downloads
- 🔵 blue → 100+ downloads
- ⚪ lightgrey → < 100 downloads
- Badges cached for 1 hour
- Numbers formatted automatically (1.2k, 1.2M)
- Error badge shown if package not found
- All endpoints query the existing downloads database