Dart implementation of the Twilic wire format and session-aware encoder/decoder.
This package's default encode / decode API targets Twilic v2.
- Dynamic encoding/decoding (
encode,decode) - Schema-aware encoding (
encodeWithSchema) - Batch encoding (
encodeBatch,SessionEncoder) - Native v2 wire, codec, session, and protocol modules under
lib/src/
twilic-dart/
lib/ # public API (twilic.dart) + lib/src/*
test/
tool/
docs/
- Dart SDK 3.5 or later
dependencies:
twilic:
git:
url: https://github.com/twilic/twilic-dart.gitimport 'package:twilic/twilic.dart';
final value = newMap([
entry('id', newU64(1001)),
entry('name', newString('alice')),
]);
final data = encode(value);
final decoded = decode(data);dart pub get
dart testSee docs/CONTRIBUTING.md for Prettier and markdownlint.
.github/workflows/ci.yml—dart testand markdown checks
Mirrors twilic/twilic and references twilic-python.
This project is licensed under the MIT License - see the LICENSE file for details.