CDDL to Java (Beta)
March 27, 2026 ยท View on GitHub
A Node.js package that can generate Java classes based on a CDDL file
CDDL expresses Concise Binary Object Representation (CBOR) data structures (RFC 7049). Its main goal is to provide an easy and unambiguous way to express structures for protocol messages and data formats that use CBOR or JSON. This package allows you to transform a CDDL file into Java classes.
Install
To install this package run:
$ npm install cddl2java
Using this package
This package exposes a CLI as well as a programmatic interface for transforming CDDL into Java classes.
CLI
npx cddl2java ./path/to/interface.cddl ./outputDir
If you are interested in this project, please feel free to contribute ideas or code patches. Have a look at our contributing guidelines to get started.