{"id":19674402,"url":"https://github.com/mirage/encore","last_synced_at":"2025-08-22T07:08:37.052Z","repository":{"id":53718335,"uuid":"122756835","full_name":"mirage/encore","owner":"mirage","description":"Synonym of angkor","archived":false,"fork":false,"pushed_at":"2025-03-04T16:38:41.000Z","size":394,"stargazers_count":25,"open_issues_count":0,"forks_count":9,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-06-14T02:04:45.785Z","etag":null,"topics":["angstrom","decoder","encoder","memory","ocaml"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirage.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":"2018-02-24T16:20:12.000Z","updated_at":"2025-03-04T16:38:42.000Z","dependencies_parsed_at":"2025-04-29T01:52:01.412Z","dependency_job_id":null,"html_url":"https://github.com/mirage/encore","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/mirage/encore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fencore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fencore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fencore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fencore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirage","download_url":"https://codeload.github.com/mirage/encore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirage%2Fencore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261013232,"owners_count":23097006,"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":["angstrom","decoder","encoder","memory","ocaml"],"created_at":"2024-11-11T17:18:10.843Z","updated_at":"2025-06-20T20:36:38.780Z","avatar_url":"https://github.com/mirage.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encore\n\n## serializer / deserializer\n\nThe goal of `encore` is to provide a way to express a _format_. From it, the user\nis able to make an [angstrom][angstrom]'s parser or a `lavoisier`'s encoder. It wants to\nensure _isomorphism_:\n\n```ocaml\ntype v\n\nlet t : v Encore.t = ...\nlet decoder = Encore.to_angstrom t\nlet encoder = Encore.to_lavoisier t\n\nlet assert random_v =\n  let str = Encore.Lavoisier.emit_string random_v encoder in\n  let v'  = Angstrom.parse_string decoder str in\n  assert (v = v')\n```\n\n## How to install?\n\n`encore` requires OCaml 4.07 and it is available with OPAM:\n```sh\n$ opam install encore\n```\n\nIt can be compiled with `js_of_ocaml`.\n\n## Documentation\n\nA documentation is available [here][documentation] to explain how to properly\nuse `encore`. Some examples of `encore` exists into [ocaml-git][ocaml-git].\n\n## Inspirations\n\nThis project is inspired by the [finale][finale] project which is focused on a\npretty-printer at the end. Encore is close to provide a low-level encoder like\n[faraday][faraday] than a generator of a pretty-printer.\n\n[documentation]: https://mirage.github.io/encore/encore/Encore/index.html\n[faraday]: https://github.com/inhabitedtype/faraday.git\n[angstrom]: https://github.com/inhabitedtype/angstrom.git\n[ocaml-git]: https://github.com/mirage/ocaml-git.git\n[finale]: https://github.com/takahisa/finale.git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirage%2Fencore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirage%2Fencore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirage%2Fencore/lists"}