elm-serialize, a package that makes it quick and reliable to encode and decode Elm values.
This is an iteration on
elm-codec-bytes which in turn is inspired by
miniBill/elm-codec. All of these packages use what’s called a
Codec to define encoders and decoders in one place. This saves you time typing and makes it harder for encoders and decoders to get out of sync.
elm-codec-bytes which encode to json and binary respectively,
elm-serialize treats the encoding as an implementation detail. You can encode your data as
Bytes or as a url safe string.
elm-codec-bytes also trade off some ease of use in order to support decoding data encoded from external sources.
elm-serialize gives up support for decoding external data formats in order to make it as easy as possible to write codecs specifically for serializing and deserializing Elm values.
I recommend trying out this package if you have an app that needs to save and load data from local storage or if you have a server also written in Elm that communicates with your Elm app.