{"id":21517761,"url":"https://github.com/tek/data-encoding","last_synced_at":"2025-10-04T23:56:52.679Z","repository":{"id":147944789,"uuid":"371098339","full_name":"tek/data-encoding","owner":"tek","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-27T12:31:53.000Z","size":514,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"bazel","last_synced_at":"2025-03-17T16:38:39.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-05-26T16:20:04.000Z","updated_at":"2021-05-27T12:31:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1a188aa-518d-45d7-89d8-a9d4720f3f19","html_url":"https://github.com/tek/data-encoding","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tek/data-encoding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fdata-encoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fdata-encoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fdata-encoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fdata-encoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tek","download_url":"https://codeload.github.com/tek/data-encoding/tar.gz/refs/heads/bazel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fdata-encoding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278391185,"owners_count":25978945,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-24T00:45:07.085Z","updated_at":"2025-10-04T23:56:52.673Z","avatar_url":"https://github.com/tek.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"Data-encoding\n=============\n\nA library for encoding and decoding data. It offers a great degree of control over the layout of data. It supports json and binary serialisation/deserialisation.\n\n\nUsage\n-----\n\nFor a type `t`, you can use the library's combinators to build an encoding `t\nencoding`. You can then use the various reading/writing functions with this\nencoding to serialise and deserialise values of the type `t`.\n\nExample:\n\n```\nopen Data_encoding\n\ntype t = (string * int) list\nlet encoding = list (tup2 string int31)\nlet v = [(\"foo\", 32); (\"bar\", 0)]\nlet j = Json.construct encoding v\nlet w = Json.destruct encoding j\nlet () = assert (v = w)\n```\n\nBuild and Install\n-----------------\n\n`data-encoding` can be built from source using `dune`:\n\n```\ndune build\n```\n\nor installed directly from `opam`:\n\n```\nopam install data-encoding\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fdata-encoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftek%2Fdata-encoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fdata-encoding/lists"}