Home > Engineering > Our Software > bare-for-pear > avsc

avsc — Avro Type System

Reference for avsc — a complete pure JavaScript implementation of the Apache Avro specification, forked and adapted for the Bare runtime.


What avsc Is

avsc is a complete implementation of the Apache Avro specification in pure JavaScript. Types, serialization, schema evolution, container files, IDL parsing — the full specification surface in a single library.

Forked from mtth/avsc and barified for the Bare runtime. The fork is taken from upstream’s master: the v6 line, which upstream has not released (npm’s latest is 5.7.9) and which has not moved since April 2025. Where these pages say v6, they mean that line.

Not used by the HAICC platform now: Avro is a direction for SPLectrum’s language layer.

Source: github.com/bare-for-pear/avsc Upstream: github.com/mtth/avsc

What the Fork Changes

The fork replaces Node.js built-in modules with Bare equivalents. The Avro API is unchanged.

Concern Upstream Fork
Crypto crypto bare-crypto
Filesystem fs bare-fs
Path path bare-path
Streams stream bare-stream

Additional adaptations:

The public API surface is identical to upstream. All upstream documentation applies.

Reference