@meetinaxd/tinyframe-js
v1.0.0
Published
TinyFrame
Readme
TinyFrameJS
TypeScript reimplementation of MightyPork/TinyFrame.
- Original author:
@cpsdqs - Current maintainer: @MeetinaXD
Background
The original JavaScript port is no longer available, so this repository reconstructs the protocol runtime in TypeScript and adds a Vitest suite that exercises checksum variants, request/response flows, and all listener types.
During the rewrite several legacy issues were fixed:
- Frame assembly used bitwise
&instead of|, corrupting peer flag propagation. - After validating the header checksum the parser state was not reset, and it never entered the
dataphase correctly when payloads existed. - Buffer length accounting included checksum bytes twice, so transmitted payloads were truncated.
Development
pnpm install
pnpm run build # produce ESM+CJS bundles via tsdown
pnpm test # run vitestLicense
This project continues to use the MIT License defined by @cpsdqs.
