Skip to content

About

Plot your repository stars over time.

Topics

Resources

Stars

1.4k stars

Watchers

5 watching

Forks

Latest commit

 

History

318 Commits

Folders and files

Repository files navigation

starcharts

Build Status Coverage Status

Plot your repo stars over time!

How it works

Star data comes from GitHub's star history API, which returns the number of stars a repository got on each day, grouped by week, without exposing who starred it.

Star charts plots one data point per day in which the repository got at least one star, so the resulting chart is accurate regardless of how many stars the repository has.

Responses are cached in Redis and revalidated with ETags, so repeated renders of the same chart usually don't spend any API rate limit.

Usage

go run main.go

Then browse http://localhost:3000/me/myrepo .

Configuration

Configure via environment variables:

Variable Default Description
REDIS_URL redis://localhost:6379 Redis cache URL
GITHUB_TOKENS - GitHub API Token (supports multiple, comma-separated)
GITHUB_MAX_RATE_LIMIT_USAGE 80 API Rate Limit usage threshold percentage
LISTEN 127.0.0.1:3000 Server listen address

Example

starcharts stargazers over time

About

Plot your repository stars over time.

Topics

Resources

Stars

1.4k stars

Watchers

5 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages