Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeWCode (Ne-ural W-ave Code)

i wanted to explore what happens when data encoding is treated less like a rigid grid of black-and-white cells and more like a continuous visual signal. traditional 2d barcodes rely heavily on high-contrast binary matrices; but honestly, i was just tired of seeing the same harsh, soulless black squares plastered everywhere. i wanted to build an aesthetic alternative, inspired by the elegant, continuous waveforms that silently carry data across the physical world in digital communications.

newcode takes inspiration from analog radio modulation to turn text into smooth optical waveforms, then uses a lightweight neural network to read them back directly in the browser. with a strict payload capacity of 39 bytes, newcode version 1 technically outperforms both qr code version 1 and version 2 in raw byte limit, so take that, traditional squares. just don't ask it to encode an entire wikipedia article or run doom like that one qr code project (kuberwastaken/backdooms).

Format Representation Error Correction Max Binary Payload (Bytes)
QR Code Version 1 21x21 binary matrix Level L (7%)
Level M (15%)
17 B
14 B
QR Code Version 2 25x25 binary matrix Level L (7%)
Level M (15%)
32 B
26 B
NeWCode Version 1 Continuous optical wave RS(48, 40) GF(256) (~17%) 39 B

it maps payload bytes through reed-solomon error correction and 16-apsk continuous modulation, extracting sub-pixel centroid features on the client and decoding them with a 1d cnn running on onnx runtime web (webgpu/wasm).

live demo

generate wave patterns or decode an NeWCode directly in your browser:

tturkayy.github.io/newcode/ ↗


tech stack

  • modulation: continuous 16-apsk (pam-4 amplitude + qpsk phase)
  • error correction: reed-solomon rs(48, 40) over gf(256)
  • demodulator: 1d cnn running client-side via onnx runtime web
  • signal extraction: sub-pixel weighted centroid slicing

About

continuous optical wave carrier with sub-pixel centroid tracking and 1d neural demodulation.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages