@campfirecreativellc/paperdrive
v1.0.0
Published
Ultra-Dense Physical Hardcopy Archival Storage with 24-bit Color Matrices & Galois Field Reed-Solomon Error Correction
Maintainers
Readme
PaperDrive: Ultra-Dense Physical Hardcopy Archival Storage
Ultra-Dense Physical Hardcopy Archival Storage with 24-bit Color Matrices & Galois Field Reed-Solomon Error Correction
Overview
PaperDrive converts digital payloads into physical optical storage sheets formatted to ISO/IEC 7810 ID-1 card dimensions. The system features multi-channel $GF(2^8)$ Reed-Solomon Forward Error Correction (FEC), capable of recovering from scratches, ink smudges, tears, and environmental wear up to 30% damaged surface area.
Architecture
src/error_correction.py:GaloisField: Complete $GF(2^8)$ finite field arithmetic with precomputed log/exp lookup tables (primitive polynomial $x^8 + x^4 + x^3 + x^2 + 1 = 0x11D$, generator base $\alpha = 2$).ReedSolomonCodec: Systematic Reed-Solomon encoder and decoder implementing Berlekamp-Massey locator polynomial synthesis, Chien root search, and Forney syndrome evaluation for combined error and erasure decoding.- Supports configurable parity redundancy (standard RS(255, 223) with 32 parity bytes, or archival RS(255, 175) with 80 parity bytes for ~30% physical damage recovery).
src/paperdrive_engine.py:PaperDriveEngine: Container framing (b"PDRV"magic header and 4-byte payload length prefix), Reed-Solomon stream protection, 24-bit RGB pixel cell mapping, and SHA-256 cryptographic payload integrity verification.
web/: Public-facing Sovereign Archival Web Studio:web/index.html: Interactive ID-1 Optical Card Generator, simulated physical surface damage tool, real-time Reed-Solomon recovery demo, printable card layout, and archival pricing matrix.web/app.js: Client-side JavaScript Galois Field & Reed-Solomon engine.web/styles.css: Archival parchment typography and print-to-laser stylesheets.web/tests/web_rs.test.mjs: Automated Node.js test suite for Galois Field math and card roundtrips.
Installation & Tests
Python Backend Suite
python3 -m unittest discover -s tests -vWeb Archival & Reed-Solomon Suite
node --test web/tests/web_rs.test.mjsRunning Local Archival Studio
npm start
# Serves PaperDrive Archival Studio at http://localhost:11100