Skip to content
forked from siloxa/badgify

πŸŒ€ Badgify is an easy-to-use API for generating online custom badges and GitHub profiles' summaries and repositories' reports as SVG.

License

Notifications You must be signed in to change notification settings

sarahrajabi/badgify

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

repo-reporter

repo-reporter

Is an easy to use api for generating online custom badges and github profiles summery and repository reports as SVG.

Let's discuss about new ideas:

If you like this project, please buy us a coffee!

What Is In V1.1.0

  • Support for inline query params.
  • Support for short inline query params(only required).
  • Support for 3 different param splitter(underscore, hyphen, space).
  • Add default colors. you can now pass name of color beside hex.
  • Add random color generator for badges backgrounds or text colors.

How To Use

Here is a quick example of how to use the api. For more information, please visit the repo-reporter website or read the docs.

Default Colors

Instead of passing colors as hex you can use our pre-defined default colors names:

repo-reporter.thex.solutions/api/badge/title?title=color&bg=<COLOR_NAME>

names aren't case-sensitive.

Think of a new cool color? Please let us know<3.

Random Colors

For generating random colors you can use the following api with a random param as bg or color :

repo-reporter.thex.solutions/api/badge/title?title=random&bg=random

We strongly recommend you to do not use random colors for badge's text color! Because the random color produced can not match the background color in contrast and make it difficult to see your text in the badge.

Inline Query Params

Instead of passing the params as query params you can use inline params to just pass a string as design:

repo-reporter.thex.solutions/api/badge/inline/<BADGE>/<SOME_DESIGN>

Or want to pass less params? You can use short inline:

repo-reporter.thex.solutions/api/badge/inline/<BADGE>/<SOME_SHORT_DESIGN>

Params Splitters

You can use underscore, hyphen or space as a param splitter.

param1 param2 param3...

param1_param2_param3...

param1-param2-param3...

Please take a look at each badge's examples to see how to inline params.

Profile Badge

For generating profile badges you can use the following api with your desired GitHub account id param :

repo-reporter.thex.solutions/api/badge/profile?id=<YOUR-GITHUB-ACCOUNT-ID>

Inline example:

repo-reporter.thex.solutions/api/badge/inline/profile/<THEME>-<YOUR-GITHUB-ACCOUNT-ID>-<BG>-<COLOR>

Short inline example:

repo-reporter.thex.solutions/api/badge/inline/short/profile/<YOUR-GITHUB-ACCOUNT-ID>-<BG>-<COLOR>

Link Badge

For generating link badges you can use the following api with two title and logo params :

repo-reporter.thex.solutions/api/badge/link?title=Hello%20World&logo=globe

Inline example:

repo-reporter.thex.solutions/api/badge/inline/link/<DIRCTION>-<SIZE>-<THEME>-<TITLE>-<LOGO>-<BG>-<COLOR>-<LINK>

Short inline example:

repo-reporter.thex.solutions/api/badge/inline/short/link/<TITLE>-<LOGO>-<BG>-<SIZE>

To make an RTL link badge you must pass a dir parameter:

repo-reporter.thex.solutions/api/badge/link?title=Hello%20World&logo=globe&dir=rtl

! Learn about other params in /docs.

Logo Badge

For generating logo badges you can use the following api with a logo param :

repo-reporter.thex.solutions/api/badge/logo?logo=peace

Inline example:

repo-reporter.thex.solutions/api/badge/inline/logo/<SIZE>-<THEME>-<LOGO>-<BG>-<COLOR>-<LINK>

Short inline example:

repo-reporter.thex.solutions/api/badge/inline/short/logo/<LOGO>-<BG>-<SIZE>

! See list of supported logos and icons and learn about other params in /docs.

Title Badge

for generating title badges you can use the following api with a title param :

repo-reporter.thex.solutions/api/badge/title?title=peace

Inline example:

repo-reporter.thex.solutions/api/badge/inline/title/<SIZE>-<THEME>-<TITLE>-<BG>-<COLOR>-<LINK>

Short inline example:

repo-reporter.thex.solutions/api/badge/inline/short/title/<TITLE>-<BG>-<SIZE>

! Learn about other params in /docs.

Authors

repo-reporter is developed by Soroush Shemshadi and contributors.

Contribution

If you want to contribute on this project, Please read the contribution guide.

Releases

To see the changes in different versions of repo-reporter, you can read the release notes.

Issues

If you encounter a bug or vulnerability, please read the issue policy.

Documentation

To learn how to work with repo-reporter, please take a look at the /docs folder.

Acknowledgement

A great thanks to @sarahrajabi for designing the logo.

Made with and .

About

πŸŒ€ Badgify is an easy-to-use API for generating online custom badges and GitHub profiles' summaries and repositories' reports as SVG.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Closure Templates 50.6%
  • Java 49.4%