Digital Paper
A system for encoding EPUB documents into printable barcode sequences for physical storage and offline reconstruction.
| GitLab | https://gitlab.com/dpub/barcode-epub |
| Specification | https://gitlab.com/dpub/barcode-epub/-/wikis/Specs/Blocks |
What this is
Barcode EPUB is a format transformation pipeline that converts standard EPUB files into a set of 2D barcode tiles.
These tiles can be:
- printed to paper
- stored as images
- distributed physically
The encoded tiles can be scanned and reassembled to reconstruct the original EPUB file.
What you get
Prototype components:
- EPUB → barcode encoder
- Tile-based output (printable image sheets)
- Reader for scan + reconstruction
- Block-level encoding protocol
Output structure
Each document is represented as a collection of tiles:
- fixed-size data blocks
- ordered sequence identifiers
- embedded reconstruction metadata
Example block structure
How it works (high level)
-
Serialization
EPUB is read as a binary container.
-
Block segmentation
The byte stream is divided into fixed-size chunks.
-
Encoding
Each chunk is encoded into a 2D barcode tile.
-
Metadata injection
Each tile includes:
- block index
- total block count
- protocol identifier
- optional descriptive metadata
-
Reconstruction
A reader scans tiles, orders them, and rebuilds the original file.
What makes this different
Most document systems assume:
- continuous digital access
- centralized storage
- file-based transfer
Barcode EPUB operates on:
- discrete physical units
- unordered acquisition
- deterministic reconstruction
It is designed for:
- medium translation (digital ↔ physical)
- offline recovery
- distributed storage in fragments
Use cases
- Physical archival of digital documents
- Offline document transfer
- Redundant storage across distributed media
- Embedding digital payloads in printed material
Constraints
- Lower density than native digital storage
- Requires scanning process for recovery
- Performance scales with number of tiles
- No inherent encryption or access control
Status
Experimental prototype.
Includes:
- encoding pipeline
- draft protocol
About PlaidSheep Lab
Lab projects are exploratory systems that are:
- functional
- stable enough to use
- not productized
They are published for evaluation and potential integration into downstream workflows.
Notes for integrators
Relevant for systems requiring:
- offline data transfer
- physical storage redundancy
- deterministic reconstruction from partial sets
NOTE
Not intended as a general-purpose storage replacement or high-throughput distribution mechanism.