Skip to content

Conversation

@mkotelnikov
Copy link
Contributor

Summary

  • Add pure TypeScript implementation of the MessagePack serialization format
  • Implement Encoder and Decoder classes with support for all standard types (nil, boolean, integers, floats, strings, binary, arrays, maps)
  • Include 66 comprehensive tests covering encoding, decoding, and roundtrip scenarios

References

Test plan

  • All 66 new msgpack tests pass
  • All 965 existing utils tests still pass
  • Lint and format checks pass

🤖 Generated with Claude Code

Add a pure TypeScript implementation of the MessagePack serialization format.

Features:
- Encoder: pack JavaScript values to MessagePack binary format
- Decoder: unpack MessagePack data to JavaScript values
- Supports: nil, boolean, integers, floats, strings, binary, arrays, maps
- UTF-8 string encoding/decoding
- Configurable character set for decoding (UTF-8, ASCII, byte array)

Based on:
- MessagePack specification: https://github.com/msgpack/msgpack/blob/master/spec.md
- Original JS implementation: https://github.com/cuzic/MessagePack-JS (MIT)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants