{"id":15455768,"url":"https://github.com/hanneskimara/cddlc","last_synced_at":"2025-04-21T14:27:13.644Z","repository":{"id":203825932,"uuid":"567789989","full_name":"HannesKimara/cddlc","owner":"HannesKimara","description":"WIP: Parser and Code Generator for the Concise Data Definition Language (CDDL)","archived":false,"fork":false,"pushed_at":"2024-11-05T21:58:50.000Z","size":216,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-20T00:59:20.477Z","etag":null,"topics":["cbor","cddl","codegen","golang","parser","rfc8610","validation"],"latest_commit_sha":null,"homepage":"https://cddlc.github.io/docs/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HannesKimara.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-11-18T15:28:48.000Z","updated_at":"2025-01-02T13:27:42.000Z","dependencies_parsed_at":"2025-03-03T07:42:26.965Z","dependency_job_id":null,"html_url":"https://github.com/HannesKimara/cddlc","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"6f11ea96c3acdc7df397ffa938d112bd1ceb8adc"},"previous_names":["hanneskimara/cddlc","flowfunction/cddl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HannesKimara%2Fcddlc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HannesKimara%2Fcddlc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HannesKimara%2Fcddlc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HannesKimara%2Fcddlc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HannesKimara","download_url":"https://codeload.github.com/HannesKimara/cddlc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249834788,"owners_count":21331988,"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":["cbor","cddl","codegen","golang","parser","rfc8610","validation"],"created_at":"2024-10-01T22:20:44.414Z","updated_at":"2025-04-20T00:59:34.104Z","avatar_url":"https://github.com/HannesKimara.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CDDL\n[![Build status](https://github.com/HannesKimara/cddlc/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/HannesKimara/cddlc/actions/workflows/go.yml)\n[![GoDoc](https://pkg.go.dev/badge/github.com/HannesKimara/cddlc?utm_source=godoc)](https://pkg.go.dev/github.com/HannesKimara/cddlc)\n\nGolang implementation for Concise Data Definition Language (CDDL). CDDL is an [IETF standard](https://www.rfc-editor.org/rfc/rfc8610) whose main goal is to provide an easy and unambiguous way to express structures for protocol messages and data formats that use CBOR or JSON.\n\n\u003e **Warning**\u003cbr/\u003e\nThis repository is still in active development and may introduce breaking changes. Do not use in production\n\n## Installation\n### Go library\n\n``` sh\ngo get -u github.com/HannesKimara/cddlc\n```\n\n### cddlc tool\n```sh\ngo install github.com/HannesKimara/cddlc/cmd/cddlc@latest\n```\n\n## Getting Started \n\n![cddlc demo](./docs/static/cddlc-demo.gif)\n\nTo get started using the parser library visit the [docs](https://pkg.go.dev/github.com/HannesKimara/cddlc). The docs to the `cddlc` tool are available [here](https://cddlc.github.io/docs)\n\n## Supported features\n| CDDL | Parser | Code Generator |\n|------|--------|----------------|\n| identifiers \u003cbr/\u003e (`basic`, `hyphen-separated`, *`weird..ones` ...) | \u0026#9745; | \u0026#9745;* |\n| primitives \u003cbr/\u003e(`bool`, `false`, `true`, `tstr`, `text`, `\"text_literal\"`, `float`, `float16`, `float32`, `float64`, `uint`, `int`, `nint`, `bstr`, `bytes`, `null/nil`) | \u0026#9745; | \u0026#9745; |\n| occurrence operators\u003cbr/\u003e(`*`, `+`, `?`) | \u0026#9745; | \u0026#9744; |\n| choice operators\u003cbr/\u003e(`/`, `//`) | \u0026#9745; | \u0026#9744; |\n| composition operators \u003cbr/\u003e(`~`) | \u0026#9745; | \u0026#9744; |\n| comparable control operators\u003cbr/\u003e(`.lt`, `.le`, `.gt`, `.ge`, `.eq`, `.ne`) | \u0026#9745; | \u0026#9744; |\n| constraint control operators\u003cbr/\u003e(`.size`, `.regexp`) | \u0026#9745; | \u0026#9744; |\n| collections \u003cbr/\u003e(`groups ()`, `arrays []`, `structs {}`) | \u0026#9745; | \u0026#9744; |\n\n\u003e **Note**\u003cbr/\u003e\n`*` means that the cddl construct may not be fully supported in a particular context such as identifer translation during code generation.\n\n## License\n\nThis project is licensed under the Apache-2.0 license. Please see the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanneskimara%2Fcddlc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanneskimara%2Fcddlc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanneskimara%2Fcddlc/lists"}