GEO / AI search5 min read

recpack

recpack is an open-source data format and Node.js library, made by GetLoopLoop and published on npm as @hromada/recpack under the Apache-2.0 licence. Arrays of JSON objects go in, a compact versioned block comes out, and JSON.stringify of what comes back is the same string, byte for byte: key order, numbers past 2^53, unusual Unicode and all. It also stores large tables a column at a time, patches between two versions of a nested object, and files of any size in checked chunks — with nothing but Node's own zlib.

Updated November 2026

01Records: columns plus zstd

pack(records) turns an array of objects into a block; unpack(block) restores it. On 200 real crawled web pages the default codec makes them about 14.6 times smaller than JSON. The project is candid about where that comes from: zstd alone already gets about 13 times on such records, and the columnar layout adds 13–19 % on top — more on records that repeat their structure. What zstd alone does not give is the byte-exact round trip through a schema-free columnar layout.

Most compressors make a file smaller and give it back exactly; recpack does that for lists of JSON records and goes one step further: it rearranges them into columns first, the way a spreadsheet stores a column of dates together, so repeated values such as URLs, timestamps and status codes take far less room. When you unpack, you get your original JSON back character for character, so nothing downstream can tell it was ever packed.

02Tables you read a column at a time

packTable stores named columns — integers, decimals, floats, strings, booleans and nulls — and unpackTable can read only the columns you ask for. Measured on search-analytics exports:

  • a day-by-page history of 2.3 million rows: 51.2 MB of JSON becomes 8.8 MB, written in 1.3 s and read in 0.25 s;
  • 100,000 page-and-query pairs: 16.3 MB of JSON becomes 1.1 MB.

03Archives and deltas

archiveFile stores any file in checked one-megabyte or content-defined chunks: insert one byte at the start of a 16 MB file and 98 % of the chunks stay the same, so only the changed ones need to travel. Video and images are stored as they are, because they are compressed already. A separate, experimental module computes a deep patch between two versions of an object and applies it.

04Built to read untrusted bytes

Anything wrong with a block, a table or an archive raises one kind of error, FormatError, never a crash of another kind, and every decoder has limits by default — on bytes, values, rows, cells and total size — so a hostile file cannot exhaust memory. Codec numbers are never reused, and peers exchange what they can decode before they send. recpack does not encrypt or sign; for that it is meant to travel inside a channel that does, such as hromada.

05When not to use it

The README names the cases where something else is better:

  • You need queries: it is a format, not a database — use SQLite, DuckDB or Parquet.
  • Other languages must read it: there is a documented byte layout with test vectors, but no reader outside Node.js yet.
  • Tiny payloads: under a few hundred bytes, plain JSON with zstd is as good.
  • Secrecy or authenticity: it neither encrypts nor signs.
  • Browsers: it needs Node's zstd support (Node.js 22.15 or later).

06Where it comes from

recpack grew out of the crawl store of GLLmolfar, GetLoopLoop's desktop crawler, which keeps every crawled page and every Search Console export on the user's own disk. It has no dependencies at all and installs with npm i @hromada/recpack; the scope is there because npm refused the bare name as too close to another package's. Its byte layout is written down in FORMAT.md, and every format it ever wrote stays readable by later versions.

07Frequently asked questions

Is recpack free?

Yes. It is open source under the Apache-2.0 licence and free for commercial and personal use. The code is on GitHub and the package is on npm.

Is the JSON really identical after unpacking?

Yes: JSON.stringify of the unpacked records equals JSON.stringify of the originals, character for character, including key order and numbers too large for a JavaScript number. The tests check it on every block.

How is it different from gzip or zstd?

It uses zstd (or brotli) underneath, but first rearranges records into columns, which adds 13–19 % on typical records and more on repetitive ones, and it lets you read a single column of a table without unpacking the rest.

Can I query it like a database?

No. There are no indexes or SQL. For queries, use SQLite, DuckDB or Parquet; recpack is for storing and moving records compactly and getting them back exactly.

Does it have dependencies?

None. It uses only Node.js's built-in zlib, which needs Node.js 22.15 or later for zstd.

08Asked out loud

spoken, not typed

The same term in the words somebody uses speaking to an assistant rather than typing into a box — written from the situation, which is why each one carries the situation it came from.

How can I store millions of JSON rows on disk without losing anything?

recpack packs arrays of JSON records into compressed columns, often more than ten times smaller, and unpacks them to exactly the same JSON text. It is free and has no dependencies.

storagedata exports
Is there a way to read just one column from a big JSON export?

With recpack's tables you can: pack the export as named columns once, then read only the columns you need, without unpacking the rest of the file.

analyticsperformance

09More in GEO / AI search

10From GetLoopLoop

GetLoopLoop
Measures whether AI assistants — ChatGPT, Gemini, Claude, Perplexity — name a brand on the buyer questions it chooses, and keeps every answer as evidence. Access by invitation.
GLLmolfar
Our free desktop crawler for Windows and macOS, in preview. It crawls your own site on your computer and shows what search engines and AI crawlers find on its pages — a way to check terms like this one in practice.
GetLoopLoop news
A weekly digest of what changed in search, AI assistants and the ads around them, every claim dated and linked to its source.

Source: GetLoopLoop Glossary — https://www.getlooploop.com/glossary/recpack. Last updated 29 November 2026.

Written by

GetLoopLoop editorial

Updated November 2026

The whole entry

CC BY 4.0 — Free to reuse with a link back to this page. Quotations and illustrations stay under the licences of their own sources.