Studi de cas del proget · Progressive Web App bona de laorà offline
Rural Mail Digital Helper
Una Progressive Web App (PWA) a gratis e installabil, progetada e fada de Tyson Berry-Wogan per i portaletere rurai. La met insema risposte salvade sui contrat USPS-NRLCA e RRECS, una biblioteca ricercabil de estracc de documencc, bozze de laorà stampabii in local in sul browser per el PS Form 8191 e el formulari de contestazzion de la valutazzion RRECS 1, e mape offline di percors USGS/OpenStreetMap.
I portaletere rurai che controllen i disposizzion del contrat, se preparen ai discussion cont i delegad o controllen i fermade del percors sota el Rural Route Evaluated Compensation System (RRECS) incontren trii ostacoi ricorrencc:
1. Cercà risposte citade del contrat e RRECS
I domand in sui temp del reclamo de Step 1, paga di dì de sollievo, segond viagg, fator de covertura e el Process de Contestazzion de la Valutazzion del Percors Rural (RREDP) quaten l'Acòrd Nazional NRLCA, i Memorand d'Intesa (MOU) e i manuai USPS. I portaletere g'han de besogn de ricerche svelte in d'un lenguagg ciar conligade a titoi de document, numer de pagina e date specifegh.
2. Scriver modui de recllam e de descussion in privad
Preparà una bozza de laorà per un reclamo de Step 1 (PS Form 8191) o una bozza de contestazzion de la valutazzion RRECS (Form 1) per un delegad sindacal el gh'ha denter detai sensibii del dipendent (nomm, Numer de Identificazzion del Dipendent de 8 cifer, numer de percors e narrazzion di incidencc) che g'han de restà in del browser del portaletere inscambi de vess mandad a un server, e i deciarazzion longhe g'han de havégh di pagine de continuazzion inscambi de vess tajade via de scondon denter in di caselle piscinine del formulari PDF.
3. Mapà i fermade e lavorà foeura de linia in sui percors rurai
I percors de consegna rurai despess traversen zonn con covertura mobil debola o assenta. I portaletere che pianifeghen i posizzion de Casseta di letere, Pont de parchegg e Porta de cà g'han de besogn d'un creator de percors che 'l salva i fermade in local in del browser, el conliga i fermade colegade, el sporta file de mapa portatii senza creà un cunt e 'l descarega tassell de mapa de domini publegh per la consultazzion offline.
Quell che 'l fa el prodòtt (Capacitaa dimostrade)
Rural Mail Digital Helper el met in ordin quater spazzi de laorà integrad denter in d'una Progressive Web App installabil e bona de laorà offline:
1. Saved Contract & RRECS Q&A (`#ask`)
El controlla i risposte salvade in sul laorà di portaletere rurai, paga, valutazzion RRECS, fator de covertura, segond viagg, regole di dì de sollievo e tempisteghe del Step 1 con citazzion di sorzint.
Supported unanswered public questions can be queued via `/rural-mail-digital-assistant/engine/ask` without generating in engine-open, scheduling up to six read-only cache refreshes 30 seconds apart.
When the engine reports `answer_status: "needs_material"`, the page states that the question is kept on file while looking for supporting material, with no set wait time and no queue promise.
Displays turnaround estimates only from verified completed samples in `flash-turnaround.json` (verified within the last 7 days, deduplicated by `evidence_sha256`), falling back to 7-day `healthz.cache_turnaround` statistics when at least five samples exist and showing an explicit no-estimate message rather than an invented wait time when fewer than five samples exist.
El cerca estracc in de l'Acòrd Nazional NRLCA, i MOU, i guide RREDP e i manuai postai per tema, articol o numer de formulari.
El gh'ha denter pont de partenza svelti per la procedura de reclamo de l'Articol 15, PS Form 8191, Process de Contestazzion de la Valutazzion del Percors Rural (RREDP) e domand de informazzion de l'Articol 31.
El restituiss estracc citad insema ai titoi di documencc de sorzint, numer de pagina e date (domà estracc, minga descarghe del document intregh).
3. Browser-Local Printable Form Drafts (`#tools`)
Questionari de la quistion e bozza de laorà: Builds a steward preparation checklist and an escaped-text worksheet that can be printed or downloaded as `.txt` without clipping long entries.
Bozza autentega del PS Form 8191 (Marz 2007 — Edizzion EIN): Uses locally vendored `pdf-lib`, `@pdf-lib/fontkit`, and `DejaVuSans.ttf` (`ps8191.js`) to fill the authentic blank AcroForm entirely in the browser. Enforces explicit bounds (100,000 characters per entry; 400,000 across the draft), carries overflow onto labelled continuation pages on whole Unicode code-point boundaries, validates Item 1b EIN as 8 digits or blank, checks glyph coverage against embedded DejaVu (Latin, Greek, Cyrillic, accents, and typographic punctuation), and immediately detaches the PDF blob if any field changes.
Bozza recreada del Form 1 de Contestazzion de la Valutazzion RRECS (Otober 2026): Fills a recreated vector PDF layout (`rrecs-form1.js`) in the browser, preserving leading zeros on plain-text phone, installation, finance-number, and ZIP fields, with independent checkboxes for Office Time, Route Time, and Street Volume Time.
4. Interactive Offline Route Mapper (`#map`)
El carega in manera ritardada Leaflet 1.9.4 integrad in local con quater livei de bas: Strada (OpenStreetMap), Satelit (imàsen USGS National Map con etichete), Aerea (ortoimàsen domà-imàsen de l'USGS), e Topo (USGS National Map).
Piazzalii con codes de color Casseta di letere (`#15803d`), Pont de parchegg (`#7c3aed`), and Uss de cà (`#eab308`) pins with optional user names (up to 140 UTF-16 code units, keeping leading zeros such as `007`), undo last placement, and click-to-undo mode.
Modalità conession: Links a mailbox, a park point, and a front door in order with an optional verbatim box number (up to 40 characters), computing geodesic (haversine) straight-line distance estimates and displaying a proximity advisory when a mailbox is under 5 feet (`1.523999 m`) from another stop.
Pachet de tassell USGS offline e file portatii: Downloads USGS Satellite or Topo tile packs (up to 6,000 tiles, zoom ≤ 16) into Cache Storage (`helper-tiles-v1`) with parallel fetch, retry, cancel/sweep cleanup, and dateline (`±180°`) wrapping. Checkpoints working maps (`nrlca_route_map_working_session_v1`), saves named routes in `localStorage`, records foreground-only GPS location trails, and exports/imports strict `nrlca-map/v1` and `nrlca-map/v2` portable JSON files plus GeoJSON and print summaries.
El rœul de Tyson
Tyson Berry-Wogan conceived, designed, and built Rural Mail Digital Helper (`/rural-mail-digital-helper/`) and its companion three-minute interactive walkthrough demo (`/nrlca-demo/`).
Ingegneria di PDF e de la tipografia lato client: Built `ps8191.js` and `rrecs-form1.js` to render printable working drafts on the March 2007 PS Form 8191 AcroForm and the recreated October 2026 RRECS Form 1 vector layout directly in the browser, with surrogate-safe Unicode code-point wrapping, pre-build glyph validation, continuation page layout, and SHA-256 vendor provenance verification (`vendor/ps8191/PROVENANCE.json`).
Progetazzion geospaziala e de schema portatii: Authored the `nrlca-map/v1` and `nrlca-map/v2` JSON Schema 2020-12 contracts and portable JavaScript codecs (`shared/map-portable-v1.js`, `shared/map-portable-v2.js`) shared between the web helper and native iOS/Android mapping parsers, including strict unknown-field refusal, dateline unwrapping, and non-destructive legacy route migration.
Architetura atomica del Service Worker PWA: Engineered the v6 atomic generation service worker (`rural-mail-digital-helper/sw.js`) that stages and validates the 30 `SHELL` entries—verifying MIME types, format magic signatures, and 22 pinned SHA-256 hashes—into a new immutable generation cache (`helper-shell-v6-g-<build>`) before updating the `__selected_generation__` pointer, without deleting the previously selected generation during publication so a failure at any promotion step keeps the old verified shell live and serving.
Catture de scherm e resorse visive de l'aplicazzion
The images below are the existing raster visual assets committed in the repository for Rural Mail Digital Helper: the walkthrough interface capture (`/posters/nrlca-demo.webp`) and the standard and maskable Progressive Web App icons (`/rural-mail-digital-helper/icons/icon-512.png` and `/rural-mail-digital-helper/icons/maskable-512.png`), which depict the three connected stop types used in the route mapper.
Cattura de la guida — Risposta RRECS salvada e citazzion di documencc
Interface capture (`/posters/nrlca-demo.webp`, 720×480) showing the Ask workspace returning a cached answer on the Rural Route Evaluation Dispute Process (RREDP) with document page citations and verification notices.
Icona Progressive Web App — Fermade de percors conligade
Standard 512×512 PNG application icon (`/rural-mail-digital-helper/icons/icon-512.png`, SHA-256 pinned in `sw.js`) illustrating three linked route stops along a mapped path.
Icona mascherabil per la schermada iniziala — Resorsa de zona de sigurezza Android e PWA
Full-bleed 512×512 maskable icon (`/rural-mail-digital-helper/icons/maskable-512.png`, SHA-256 pinned in `sw.js`) referenced by `manifest.webmanifest` for adaptive mobile home-screen installation.
Limitazzion, configurazzion, privacy e piataforme
Rural Mail Digital Helper l'aplica di sever confin legai, tecnegh e de privacy inscì che i portaletere e i delegad capissen quell che l'istrument el fa e 'l fa minga:
Minga un sistema ofizzial del sindacad o de l'USPS
Rural Mail Digital Helper l'è un ajut independent de educazzion e de pianificazzion—minga una font de verità—e 'l gh'ha de vess minga citad coma tal. Controlla semper i documencc de contrat atuai e parla cont un delegad sindacal prima di scadenze de presentazzion.
Domà bozze de laorà (mai firmade o presentade chì)
Preparà o stampà un foeuj de laorà, una bozza del PS Form 8191 o una bozza del Form 1 de Contestazzion de la Valutazzion RRECS el produss un bozza de laorà domà per la revision del delegad; el ven mai firmad, archiviad o presentad chì. I deciarazzion de la direzzion, i valutazzion de puntualitaa, i disposizzion e i linie per la firma inn lassade voeude aposta. El Modell 1 RRECS de otober 2026 l'è una strutura vetoriala refada su, minga un original ofizzial de l'USPS.
Memoria local in sul browser di formulari e di percors
Form entries run in the browser: they are not sent anywhere, not logged, and not saved by the site. Unsaved route pins stay in the current page; working map checkpoints (`nrlca_route_map_working_session_v1`), named saved routes (`nrlca_route_map_saved_routes_v1`), and downloaded offline tile packs (`helper-tiles-v1`) are stored only in that browser profile on that device (up to 500 pins, 500 connections, and a 4 MiB checkpoint JSON cap) and are not uploaded or synced. No user account is created, anyone using the same browser profile may be able to see saved local storage, and clearing browser site data removes local routes.
Livei de mapa, politega di tassell e distanza in linia drita
La mapa la dopera tassell de OpenStreetMap e de la USGS National Map—minga la mapa ofizziala USPS Digital Point Mapping (DPM)—e i sò spilli de Casseta di letere, Pont de parchegg e Porta de cà inn etichete de pianificazzion personala, minga simboi ofizziai DPM o misurazzion RRECS. I linie dissegnade e i distanze de Conession inn stimm geodeseghe in linia drita, minga chilometragg adatad a la strada, temp de consegna o credit RRECS. Segond la politega de usagg di tassell de la OpenStreetMap Foundation, i tassell OSM Street vegnen mai pre-caregad o descargad in bloch; i pachet offline meten in cache domà tassell de domini publegh USGS Satellit o Topo (fin al zoom 16, limitad a 6,000 tassell per percors).
Registrazzion de la posizzion domà in primm pian
El permess de posizzion l'è domandad domà quand che l'utent el fa clic Dopera la me posizzion o Invia a registrài la posizzion. La registrazzion del percors la va inanz domà quand la pagina l'è visibila (fina a 10,000 rilevament/segment registrad); scond la scheda, cambià applicazzion, blocà 'l scherm o un boeusg del forrnitor sora i 30 segond el met in pausa la registrazzion e 'l segna una s'cepada de segment. I posizzion GPS del navigator e del telefonin inn aprossimative.
Piataforme, ambit offline e build de test Android
Runs on desktop and mobile browsers (Web, iOS, Android) and installs as an offline-capable PWA. Saved routes, pins, Connect links, and local draft forms work offline once cached; asking new questions, searching the document library, and viewing undownloaded map areas require a network connection. Interactive helper features require JavaScript enabled. The Route Map section also offers a signed Android test APK (`RuralMailDigitalHelper-Android-1.0.1-native-20261016-debug.apk`, 58.4 MiB, Android 8.0+, with SHA-256 checksum), explicitly labelled as an October 16 test candidate—not a Play Store release or the newer marker-guard source—where phone compatibility, saved-map recovery, and background/locked-screen GPS still require device verification.
Azzion che vegn — Derva l'assistent o guarda la dimostrazzion
Derva Rural Mail Digital Helper diretament in del to browser (o installall in su la schermada iniziala), va a un istrument specifegh o guarda la dimostrazzion guidada interativa de trii menut: