starchart

command module
v0.0.0-...-3fc4815 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 6 Imported by: 0

README

starchart

starchart is a tool that creates an image grid of all the users who have starred your project on GitHub.

donuts-are-good's followers donuts-are-good's stars donuts-are-good's visitors

example

this example is actually the reason starchart was made! it always looked so cool when other projects had enough supporters to showcase them in the readme, so when the opportunity came for bearclaw to do this, it just felt right.

example demo of starchart

why

small projects really thrive on early attention, and those early supporters can be some of your biggest helpers. a great way to thank them and encourage more community-building is to put them front and center on the readme so that new people arriving know that there's a growing community behind the project.

usage

To use starchart for your own project, follow these steps:

  1. Clone the Starchart repository: git clone https://github.com/donuts-are-good/starchart.git
  2. Set the user/repo in main.go, and add your token to your environment with GITHUB_TOKEN
  3. Build and run with go build && ./starchart
  4. Copy the output and paste it into your project's README or bearclaw blog.

You can also customize the script to resize the avatars or change the layout of the grid, the instructions are listed as comments inside the script. Currently it generates images that are 24px square.

how

starchart uses the GitHub API to retrieve a list of users who have starred your project, and for each user, it retrieves their avatar URL and generates an html image link. the output is a grid of avatar images, with each image a link to the user's GitHub profile.

helping

a star on this repo goes a long way to achieving visibility for other creators who may be able to user it :) also tell a friend or use it on your own projects!

greetz

the Dozens, code-cartel, offtopic-gophers, the garrison, and the monster beverage company.

license

this code uses the MIT license, not that anybody cares. If you don't know, then don't sweat it.

made with ☕ by 🍩 😋 donuts-are-good

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL