https://github.com/ocamlpro/ocb
ocb (OCaml Badgen) is an OCaml library for SVG badge generation. There's also a command-line tool provided.
https://github.com/ocamlpro/ocb
badge badgen build coverage generation generator ocaml ocb readme status svg
Last synced: about 1 month ago
JSON representation
ocb (OCaml Badgen) is an OCaml library for SVG badge generation. There's also a command-line tool provided.
- Host: GitHub
- URL: https://github.com/ocamlpro/ocb
- Owner: OCamlPro
- License: isc
- Created: 2021-01-07T14:04:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-03T19:56:03.000Z (9 months ago)
- Last Synced: 2025-05-07T21:38:59.327Z (5 months ago)
- Topics: badge, badgen, build, coverage, generation, generator, ocaml, ocb, readme, status, svg
- Language: Standard ML
- Homepage: https://ocamlpro.github.io/ocb/
- Size: 83 KB
- Stars: 21
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ocb
`ocb` (OCaml Badgen) is an [OCaml] library for [SVG] badge generation. There's also a command-line tool provided.
## Quick start
### Using the command-line tool
```sh
ocb --label Hello --color green --style flat --labelcolor white --status Goodbye > out.svg && xdg-open out.svg
```Gives the following result: [](example/cli.svg).
### Using the library
```ml
let () =
let open Ocb in
Gen.mk Format.std_formatter ~label:"Hello" ~color:Color.Blue ~style:Style.Flat ~label_color:Color.White ~status:"Goodbye" ()
```## Credits
This project is inspired by [badgen].
[badgen]: https://github.com/badgen/badgen
[OCaml]: https://ocaml.org/
[SVG]: https://en.wikipedia.org/wiki/Scalable_Vector_Graphics