Skip to content
pubscout

eterl

1.1.0, released 2 years ago by lexedia.moe

Fast packer and unpacker for the External Term Erlang Format (version 131).

WASM-ready
$ flutter pub add eterl
Source repository

What it does

Eterl packs and unpacks data according to the External Term Erlang Format (version 131). It supports strings, atoms, bools, doubles, ints, BigInts, maps, lists, and tuples, and implements standard Codec and Converter interfaces including stream transformation.

AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to communicate with Erlang or Elixir backends using the External Term format.
  • You want to serialize and deserialize Erlang terms efficiently in Dart.

Skip it when

  • You are working with standard JSON or protocol buffers instead of Erlang binary formats.

Strengths

  • Fast packing and unpacking performance with benchmarks provided.
  • Implements standard Dart Codec and Converter interfaces.
  • Supports stream transformations.

Weaknesses

  • Limited to the External Term Erlang Format (version 131).
  • Tuples are only supported while decoding and are converted to lists.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:eterl/eterl.dart';

void main() {
    final data = [{'hello': ['eterl', 1,2,3]}];
    final packed = eterl.pack(data);
    final unpacked = eterl.unpack(packed);
    print(unpacked);
}

Works with

Packages commonly used together with eterl: ones it builds on, ones built on it, and its own family.