francisrstokes/construct-js
🛠️A library for creating byte level data structures. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2728
- days_rel: n/a
- days_push: 1277
- n_releases_24m: 0
Adoption not part of the score
1370 stars · 29 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
construct-js is a TypeScript library for declaratively building byte-level data structures with typed fields, nested structs, pointers, sizeof fields, and per-field endianness. It outputs standard Uint8Array values and works in both the browser and Node.js.
Use cases
- assemble binary file formats in javascript
- build binary protocols without manual ArrayBuffer offset math
- create structs with specific endianness and alignment
- generate binary data for embedded or hardware interfaces from node
- serialize fixed-layout binary headers
- construct packed binary payloads in the browser
When to choose
- you need to hand-assemble or define binary layouts in JS/TS
- you want pointers, sizeof, alignment, and endianness control in a small dependency
- you need output as a standard Uint8Array for browser or node use
When to avoid
- you need to parse or decode arbitrary existing binary formats rather than construct them
- you want schema-based serialization like protobuf with cross-language support
- you need streaming or incremental serialization of large data
Facets
library · maturity maintenance
serialization developer-tools developer-tools files web-development browser cross-platform binary-data byte-level structs endianness uint8array bitfields nodejs typescript
1 source
- readme: https://github.com/francisrstokes/construct-js · fetched 2026-08-28 · 372ca9278a1f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| francisrstokes/construct-js | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="francisrstokes/construct-js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem