GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - qifi-dev/qrs: Stream data through multiple series of QR codes

BranchesTags
Open more actions menu

Latest commit

 

History

127 Commits
127 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
__benchmarks__
__benchmarks__
 
 
app
app
 
 
packages
packages
 
 
public
public
 
 
server
server
 
 
test
test
 
 
types
types
 
 
utils
utils
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.stackblitzrc
.stackblitzrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bump.config.ts
bump.config.ts
 
 
cspell.config.yaml
cspell.config.yaml
 
 
eslint.config.js
eslint.config.js
 
 
netlify.toml
netlify.toml
 
 
nuxt.config.ts
nuxt.config.ts
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
uno.config.ts
uno.config.ts
 
 

Repository files navigation


Qrs

Stream data through multiple QRCodes

a bit like this meme:

Install Windows using QR Codes

This project is made possible by all the sponsors supporting my work
You can join them at my sponsors profile:

Try it

Live demo

Sub-packages

  • QiFi CLI - CLI for streaming QR code file transmission
  • luby-transform - Luby Transform encoding and decoding
  • @qifi/generate - Stream Generated QR Codes for data transmission

Knowledge

This situation of streaming QR code data transmission is similar to the "Binary Erasure Channel (BEC)," which is a communication model. In this model, the sender transmits binary data (0 or 1), and the receiver has a certain probability of not receiving some data bits, which are marked as "erased" or "lost." In other words, the receiver knows which bits are lost but does not know their specific values. This model is used to study and design coding techniques that can effectively transmit information even in cases of data loss.

Scientists have already achieved very mature research results on how to efficiently transmit data in BEC, one of which is using "Fountain Codes." Fountain Codes are a type of error-correcting code that can effectively transmit information even in the case of data loss. This project uses Luby Transform coding, which is a type of Fountain Code. The basic principle is to divide the original data into multiple small blocks and then generate an unlimited number of encoded blocks through encoding. The receiver only needs to receive enough encoded blocks (usually slightly more than the original blocks) to reconstruct the original data.

Demo

IMG_0556.MP4

Export an animated GIF

After selecting a file on the Send page, expand Save QR sequence as GIF. Choose a multiple of the data block count (1.5× by default) or an exact frame count, then set the playback speed and image size and select Export GIF. Frame counts are not capped. Larger sequences take longer to encode and use more memory. You can cancel an export while it is running.

The export uses a separate fountain-code encoder and pauses the live QR stream until it finishes. GIF encoding is loaded only when needed, and the QR modules are written directly as lossless black-and-white pixels. Before downloading, the exported sequence is decoded and compared with the input. If it cannot be recovered, increase the multiplier or frame count and try again. This check verifies the data in the sequence; camera scanning may still miss frames.

Build & run

1. Install Dependencies

You need install Node.js first.The project uses pnpm as its package manager. First, ensure you have pnpm installed:

npm install -g pnpm

Then, install the project dependencies:

pnpm install

2. Build the Project

Build the project using the command specified in the package.json and netlify.toml:

pnpm run build

This will generate the output in the .output directory.

Alternatively, if you want to run the development server to test changes:

pnpm run dev

3. Serve the Project Locally

if your target environment have Node.js, you can copy entire .output directory to where you want.You can preview this build using:

node .output/server/index.mjs

if your target environment don't have Node.js, you cat just host those static files.

cd .output/public
python -m http.server

You will usually encounter the following errors.

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

you need a custom web server, Run in the .output/public directory:

# python custom_http_server.py
from http.server import SimpleHTTPRequestHandler, HTTPServer

class CustomHandler(SimpleHTTPRequestHandler):
    def end_headers(self):
        self.extensions_map.update({
            ".js": "application/javascript",
        })
        super().end_headers()

ADDR = '0.0.0.0'
PORT = 8000
with HTTPServer((ADDR, PORT), CustomHandler) as httpd:
    print(f"Serving on http://{ADDR}:{PORT}")
    httpd.serve_forever()

Reference

Fountain Codes

  • Fountain codes and animated QR
  • LT codes -- a design and analysis epiphany
  • gofountain

QR Codes

  • Anthony's QR Toolkit

About

Stream data through multiple series of QR codes

qrss.netlify.app/

Topics

qrcodetransfer-files

Resources

Readme
MIT license
Activity
Custom properties

Stars

1.7k stars

Watchers

9 watching

Forks

109 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.