{"id":16613132,"url":"https://github.com/c-cube/bare-ocaml","last_synced_at":"2026-03-14T22:02:41.884Z","repository":{"id":144716951,"uuid":"291871735","full_name":"c-cube/bare-ocaml","owner":"c-cube","description":"runtime library and code-generator for BARE (https://baremessages.org/)","archived":false,"fork":false,"pushed_at":"2024-08-16T14:29:23.000Z","size":776,"stargazers_count":23,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T00:14:43.114Z","etag":null,"topics":["bare","codec","ocaml"],"latest_commit_sha":null,"homepage":"https://c-cube.github.io/bare-ocaml/","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-cube.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-09-01T02:09:44.000Z","updated_at":"2024-11-05T00:35:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"43e0223d-720f-4144-bdaa-afa88a399080","html_url":"https://github.com/c-cube/bare-ocaml","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Fbare-ocaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Fbare-ocaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Fbare-ocaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Fbare-ocaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-cube","download_url":"https://codeload.github.com/c-cube/bare-ocaml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830949,"owners_count":20354854,"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":["bare","codec","ocaml"],"created_at":"2024-10-12T01:46:04.689Z","updated_at":"2026-03-14T22:02:36.846Z","avatar_url":"https://github.com/c-cube.png","language":"OCaml","readme":"\n# Bare-OCaml ![build](https://github.com/c-cube/bare/workflows/build/badge.svg)\n\nA simple code generator and runtime library for [BARE](https://baremessages.org/)\nfollowing [the spec](https://datatracker.ietf.org/doc/draft-devault-bare/11/)\n\n- License: MIT.\n- online documentation: https://c-cube.github.io/bare-ocaml/\n\n## Features\n\n- runtime library named `Bare`, with entrypoints for encoding/decoding\n  all the base types over `Buffer.t` and `bytes` respectively.\n\n- code generator for producing OCaml code with type declarations and encoder/decoder functions.\n  * the code generator can handle mutually recursive types and out-of-order\n    declarations, by sorting them first.\n    Each type gets its own toplevel module; for example `type foo int`\n    will become:\n\n    ```ocaml\n    module Int = struct\n      type t = int64\n\n      let decode = …\n      let encode = …\n    end\n    ```\n  * pretty-printers can be generated using the `--pp` option\n  * the generated code can be made dependency-free by using `--standalone`.\n    In that case, the code for the `Bare` module will be inserted at the beginning\n    of the generated code.\n- basic testing (needs to be improved when test vectors are published)\n- basic vim syntax files in `data/vim/`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-cube%2Fbare-ocaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-cube%2Fbare-ocaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-cube%2Fbare-ocaml/lists"}