Playground

The generator, running in your browser.

This is fe_codec_gen itself, compiled from Fe to WebAssembly. Edit the models and the module it writes changes as you type, or shows the first error, exactly as the command line would. Below, values of two models go through serializers it wrote, compiled into the same module.

Loading the WebAssembly module…

src/models.fe

Encode a value

Values through compiled serializers.

Order and Mail from the first example are compiled into the module with the serializers and EIP-712 hashing the generator wrote for them. Edit a value as JSON: Fe Codec decodes it and encodes it again, and a bad value shows the real error.

order.json