Giter Site home page Giter Site logo

honeybadger's Introduction

Table of Contents

  1. Honeybadger
    1. Examples
    2. License
    3. Disclaimer
    4. Usage
    5. Colors
    6. Using with config files
    7. Using Programatically
    8. Supported formats

Honeybadger

img

Scala CLI utility that aims to generate beautiful images as badges to embed in your favourite places.

This project mostly aims to be used to add beautiful badges to your org or markdown files, or websites.

Lots of options are possible, but sane defaults are provided. We support many popular technologies and brands, but everything is designed so that it is very easy to add your own.

Feel free to use the content in dist and resources at will.

Examples

If you would like to see some examples showing the badge generation possibilities, take a look at the BADGES.md file.

License

This software is distributed under the GNU General Public License (GPL) v3.0 or later.

img

Disclaimer

The Honeybadger project and its authors and contributors do not own the logos or branding used to create the badges, we simply provide a convenient way to use them. The copyright of all imagery and related is property of the respective authors.

Usage

This project has been envisioned as a CLI-first utility. In the future this might grow in other directions, and we are open for it, provided there is a use-case. The codebase is quite adaptable and should be easy to modify.

As of now, this utility can accept input either programatically or via config files.

Colors

HoneyBadger includes several predefined colors, like Catppuccin, that can be accessed via slug.

See all the possibilities here in the code. You can also specify custom colors, via hex code, e.g. #eeeeee or #fd39ab

Using with config files

TODO: Compile utility to native binary and bundle license + instructions

You can run this utility with SBT installed and you must specify one or more config files (JSON and/or YAML):

# single file
sbt "run ./resources/examples/tasks.yaml"
# multiple files and formats
sbt "run ./resources/examples/tasks.json ./resources/examples/tasks.yaml"

For the best way to understand the possibilities in the YAML / JSON file, please reference the source code where we defined the data models at ./src/main/scala/Entities.scala .

An example YAML file is shown below. Alternatively see the example file in the repo.

leftRightBadgeTasks:
  - leftBadgeParameters:
      textContents: SCALA
      textColor: text-catppuccin-mocha
      backgroundColor: mantle-catppuccin-mocha
      width: 76
      height: 24
      fontSize: 12
      backgroundColorBrightnessModifier:
      customFontFilePath: "./resources/fonts/SofiaSans-Black.ttf"
      iconParameters:
        width: 16
        height: 16
        filePath: "./resources/icons/scala.svg"
    rightBadgeParameters:
      textContents: v2.13.8
      textColor: text-catppuccin-mocha
      backgroundColor: red-catppuccin-latte
      width: 50
      height: 24
      fontSize: 12
      backgroundColorBrightnessModifier:
      customFontFilePath: "./resources/fonts/SofiaSans-Black.ttf"
      iconParameters:
    destinationFilePath: "./dist/scala.png"
    destinationFileExtension: png
singleBadgeTasks:
  - badgeParameters:
      textContents: HASKELL
      textColor: text-catppuccin-mocha
      backgroundColor: mauve-catppuccin-latte
      backgroundColorBrightnessModifier: -20
      customFontFilePath: "./resources/fonts/SofiaSans-Black.ttf"
      iconParameters:
        filePath: "./resources/icons/haskell.svg"
    destinationFilePath: "./dist/haskell.png"
    destinationFileExtension: png

Using Programatically

Take a look at the tasks.scala to get an idea of how the utility can be used with plain Scala code.

For advanced usage look at Main.scala and HoneyBadger.scala .

Supported formats

As of now, the utility supports exporting badges to: PNG, JPEG, others ?

As of now, the icons to use in the badge can be: SVG, PNG, JPEG, others ?

honeybadger's People

Contributors

jjba23 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.