# News Dieppe: Complete Technical Reference & Generative Engine Specification > Daily scripture and uplifting reflections rendered in handcrafted, animated single-stroke glass neon typography. - **Canonical URL**: https://news.dieppe.app/ - **Repository**: https://github.com/1st3/neon-rest-matthew-1128 - **License**: MIT License - **Version**: 1.2.0 (PWA) - **Primary Keyword**: Glass Neon Verse, Daily Scripture PWA, SVG Neon Typography --- ## 1. Product Overview & Core Philosophy News Dieppe is an open-source, zero-dependency Progressive Web App (PWA) that presents daily scripture and contemplative quotations as luminous, realistic glass neon signs. Unlike conventional typographic web applications that render text using TrueType/WOFF font files or raster canvas bitmaps, News Dieppe constructs every character using custom single-stroke centerline vector geometry in pure SVG. Each glyph reproduces the physical bending radii, electrode connections, wire returns, and layered gas glows of authentic bent glass tubing mounted to a textured backdrop. ### Guiding Principles 1. **Purity of Craft**: No typography libraries, no canvas bitmaps, and no pre-rendered lettering. Every path represents the exact centerline of a hot glass tube. 2. **Instant Offline Availability**: Precaches all shell assets through a modern Service Worker, requiring zero network roundtrips after initial install. 3. **Calm & Contemplative Design**: Subtle physical neon warm-up flicker, organic tube current variations, and automatic suppression under `prefers-reduced-motion`. 4. **Absolute Privacy**: Zero telemetry tracking, no analytics cookies, no user registration, and zero third-party scripts. 5. **Universal Accessibility**: Conforming to WCAG 2.2 Level AA guidelines, with screen reader live announcements, full keyboard accessibility, skip links, and semantic fallbacks. --- ## 2. Technical Architecture & Typography Engine ### 2.1 Single-Stroke Centerline Vector Geometry Neon tubes cannot render filled shapes or sharp interior angles without glass fracturing. News Dieppe's custom vector engine (`neon.js`) defines each letter as a continuous or minimal-segment SVG path: - **Glyph Set**: Complete uppercase Latin alphabet (`A–Z`), Arabic numerals (`0–9`), and punctuation (`.`, `,`, `:`, `;`, `'`, `-`, `?`, `!`). - **Stroke Width**: Normalized to 9 units on a 720×680 viewBox, maintaining an aspect ratio typical of 12mm–15mm neon tube glass. - **Join & Cap**: `stroke-linecap: round; stroke-linejoin: round;` ensuring organic glass curves at every junction. - **Physical Tube Mounting Standoffs**: Automatically placed acrylic clip brackets (`mountX` mapping) and electrode boots that physically ground each letter to the backboard. - **Return Wiring**: Dark insulated copper return wire paths generated dynamically beneath the glass tubes with metallic linear gradients (`#wire` and `#metal`). ### 2.2 Realistic Gas Glow Filter Pipeline The light emitted by gas-discharge tubes is simulated using hardware-accelerated SVG filter primitives: 1. **Gas Core**: Crisp white/pale tint stroke (`stroke-width: 2.2`) representing high-density ionized plasma at the tube core. 2. **Inner Gas Ionization**: Vibrant saturated stroke (`stroke-width: 6.0`) with color corresponding to the gas mixture (neon, argon-mercury, or phosphor coating). 3. **Glass Tube Rim**: Semi-translucent casing stroke reflecting ambient darkness (`stroke-width: 9.0`). 4. **Halo Glow (`#halo`)**: `feGaussianBlur` filter (`stdDeviation="3.2"`) producing immediate optical bloom around the tube envelope. 5. **Backdrop Spill (`#spill`)**: Wide `feGaussianBlur` filter (`stdDeviation="18"`) with `mix-blend-mode: screen` casting colored light across the textured fabric backing. 6. **Contact Shadow (`#contact-shadow`)**: Directional drop shadow (`stdDeviation="1.4"`) simulating distance between the standoffs and the backdrop. ### 2.3 Gas Spectroscopy & Color Palettes Four authentic neon sign colors are modeled: - **Amber Glow** (Neon gas + amber tint): Dark `#6a3815`, Rim `#bd7b26`, Glass `#ffcd64`, Gas `#fff0b3`, Core `#fffde1`. - **Daylight Blue** (Argon-mercury gas): Dark `#163c54`, Rim `#367692`, Glass `#51c5ff`, Gas `#b1eeff`, Core `#effdff`. - **Warm White** (Argon-mercury + tri-phosphor): Dark `#354446`, Rim `#82918d`, Glass `#c5e1e1`, Gas `#f0fcf7`, Core `#ffffff`. - **Deep Rose** (Neon gas + pink phosphor): Dark `#673241`, Rim `#bd657b`, Glass `#ff759c`, Gas `#ffc2d4`, Core `#fff4f6`. --- ## 3. Offline Architecture & Service Worker Lifecycle ### 3.1 Caching Strategy The Service Worker (`sw.js`) employs a **Cache-First (Stale-While-Revalidate with Weekly Synchronization)** strategy: - **Precaching**: The complete app shell (`index.html`, `styles.css`, `neon.js`, `verses.json`, `blank-shirt.png`, vector and raster icons, and manifests) is cached during the `install` phase. - **Navigation Fallback**: If network is unavailable, navigation requests instantly resolve to the cached shell. - **Offline Catalog**: Verses are stored in client-side `localStorage` (`neon_verses_catalog`), guaranteeing full functionality when completely disconnected. ### 3.2 Weekly Synchronization Policy To prevent bandwidth waste and respect mobile data plans: - Background verse sync (`verses.json`) occurs at most once every 7 days (`WEEK_MS = 604,800,000 ms`). - Uses the W3C Periodic Background Sync API (`weekly-verse-sync`) when supported by the host browser. - When an update arrives, `sw.js` broadcasts a `VERSES_UPDATED` message to open windows to update client storage without interrupting the reading experience. --- ## 4. Accessibility & Inclusive Design (WCAG 2.2 AA) News Dieppe is engineered to ensure beautiful visual art does not compromise accessibility: 1. **Screen Reader Support**: - Primary `