mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-30 19:20:40 +00:00
VoxVera Source Files
This directory contains the source assets used to build flyers:
index-master.html-- Main flyer template (HTML/CSS/JS)config.json-- Default configuration valuesqrcode-content.png-- Generated QR code for the content linkqrcode-tear-offs.png-- Generated QR code for the tear-off link
Build Pipeline
The voxvera build command processes these source files:
- QR code generation -- Reads URLs from
config.jsonand generates PNG QR codes using theqrcodeandPillowPython libraries. - HTML minification -- Minifies embedded JavaScript with
jsminand the overall HTML withhtmlmin2. Producesindex.htmlandnostr.htmlfrom the master templates. - Binary message injection -- Writes the configured binary message into the built HTML.
- Asset packaging -- Copies all built files into
host/<folder_name>/.
No external tools (Node.js, ImageMagick, qrencode, etc.) are required. The entire build pipeline uses pure Python packages.
URL Handling
- The content link (
urlin config.json) is set by the user duringvoxvera initand can point to any external resource. - The tear-off link (
tear_off_linkin config.json) is automatically set to the .onion address whenvoxvera servestarts. Tear-off QR codes are regenerated at that point.
Editing Templates
Edit index-master.html or nostr-master.html directly if you need to customize the flyer layout. The JavaScript at the bottom of each file populates content from config.json at runtime.
Creating and Hosting a Flyer
# Configure flyer content and external URL
voxvera init
# Build assets
voxvera build
# Host over Tor (auto-detects ports, generates .onion address)
voxvera serve
Or do all three in one step:
voxvera quickstart