{"id":28615534,"url":"https://github.com/ocamlpro/ocb","last_synced_at":"2025-10-27T23:06:19.802Z","repository":{"id":37459351,"uuid":"327629289","full_name":"OCamlPro/ocb","owner":"OCamlPro","description":"ocb (OCaml Badgen) is an OCaml library for SVG badge generation. There's also a command-line tool provided.","archived":false,"fork":false,"pushed_at":"2025-01-03T19:56:03.000Z","size":85,"stargazers_count":21,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T21:38:59.327Z","etag":null,"topics":["badge","badgen","build","coverage","generation","generator","ocaml","ocb","readme","status","svg"],"latest_commit_sha":null,"homepage":"https://ocamlpro.github.io/ocb/","language":"Standard ML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OCamlPro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-07T14:04:34.000Z","updated_at":"2025-01-03T19:56:07.000Z","dependencies_parsed_at":"2025-05-07T21:44:22.379Z","dependency_job_id":null,"html_url":"https://github.com/OCamlPro/ocb","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/OCamlPro/ocb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCamlPro%2Focb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCamlPro%2Focb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCamlPro%2Focb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCamlPro%2Focb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OCamlPro","download_url":"https://codeload.github.com/OCamlPro/ocb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCamlPro%2Focb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259382323,"owners_count":22848842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["badge","badgen","build","coverage","generation","generator","ocaml","ocb","readme","status","svg"],"created_at":"2025-06-12T02:09:15.564Z","updated_at":"2025-10-27T23:06:19.719Z","avatar_url":"https://github.com/OCamlPro.png","language":"Standard ML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ocb\n\n`ocb` (OCaml Badgen) is an [OCaml] library for [SVG] badge generation. There's also a command-line tool provided.\n\n## Quick start\n\n### Using the command-line tool\n\n```sh\nocb --label Hello --color green --style flat --labelcolor white --status Goodbye \u003e out.svg \u0026\u0026 xdg-open out.svg\n```\n\nGives the following result: [![cli example](example/cli.svg)](example/cli.svg).\n\n### Using the library\n\n```ml\nlet () =\n  let open Ocb in\n  Gen.mk Format.std_formatter ~label:\"Hello\" ~color:Color.Blue ~style:Style.Flat ~label_color:Color.White ~status:\"Goodbye\" ()\n```\n\n## Credits\n\nThis project is inspired by [badgen].\n\n[badgen]: https://github.com/badgen/badgen\n[OCaml]: https://ocaml.org/\n[SVG]: https://en.wikipedia.org/wiki/Scalable_Vector_Graphics\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focamlpro%2Focb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focamlpro%2Focb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focamlpro%2Focb/lists"}