TypeScript library for BARE, a compact and simple binary-serialization format (Rivet fork with ULEB128 fix)
npm install @rivetkit/bare-ts[![NPM version][npm-img]][npm-url]
[![bundle size - minified and gzipped][bundlejs-img]][bundlejs]
[![Coverage percentage][coveralls-img]][coveralls-url]
[BARE][bare] (Binary Application Record Encoding) is a schema-based binary format that favors compactness and simplicity.
bare-ts/lib provides decoders and encoders for basic BARE types.
Please, take a look to [bare-ts/bare][bare-ts-bare] for more information.
Warning: BARE specification is currently a IEF draft.
The specification is likely to evolve before its final release.
However, most of the changes since the beginning concern the schema language.
The binary format is fairly stable.
[bare]: https://baremessages.org
[bare-ts-bare]: https://github.com/bare-ts/bare
[npm-img]: https://img.shields.io/npm/v/@bare-ts/lib.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/@bare-ts/lib
[coveralls-img]: https://img.shields.io/coveralls/github/bare-ts/lib?style=flat-square
[coveralls-url]: https://coveralls.io/github/bare-ts/lib?branch=main
[bundlejs-img]: https://img.shields.io/badge/dynamic/json?style=flat-square&label=minzipped&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=@bare-ts/lib
[bundlejs]: https://bundlejs.com/?q=%40bare-ts%2Flib