Projekt-Fallstudije · Offline-fähejje Progressive Web App
Rural Mail Digital Helper
En kostelose, enstallierbare Progressive Web App (PWA), vun Tyson Berry-Wogan vör ländlijje Breefdrääjer entwckelt un jebaut. Se kombineet jeseicherte Antwoote zo USPS-NRLCA-Veedrääg un RRECS, en durchsöökbare Sammlong vun Dokumänte-Usszüg, em Brauser lokal drckbare Äntwörf vör PS Form 8191 un dat RRECS-Bewäärtungs-Ensproch-Formoleer 1, un Offline-Ruter-Kaate met USGS/OpenStreetMap.
Ländlijje Breefdrääjer, de Veedraachs-Rääjelle prööfe, sesch op Jespräsche met Veedrääder vörbereijde oder Rute-Stopps unger em RRECS-Süstem durluure, stühße op drei ständijje Probleme:
1. Ziteerte Vedraags- & RRECS-Antwoote finge
Froore zo Friste vör Step 1 Beschweede, Ruhedags-Bezahlong, zwaite Fääte, Deckungsfaktoor un dat Rural Route Evaluation Dispute Process (RREDP) betreffe dä NRLCA-Nationalveedraag, Afmaachunge (MOUs) un USPS-Handböcher. Drääjer bruche flöcke, verstänndlijje Antwoote met tirekte Dokumänte-Titele, Sicker-Nummere un Dääte.
2. Beschwääde- & Stritt-Formulaare privaat opbaue
Beim Vörbereijde vun enem Step 1 Beschweede-Äntworp (PS Form 8191) oder enem RRECS-Bewäärtungs-Ensproch-Äntworp (Form 1) vör en Veedrääder kumme empfendlijje Personaldate vör (Name, 8-stellijje Medärbeder-ID-Nummere, Rute-Nummere un Beschrievunge vum Vörfall), de em Brauser vum Drääjer blieve mösse statt an ene Server jescheck ze weede; un lange Täxte bruche Foljeblädder statt einfach en kleene PDF-Feldcher avjeschnedde ze weede.
3. Haltestelle enkaate & offline op Land-Rute ärbeide
Ländlijje Zostell-Rute jonn off durch Jääjende met schlächtem oder ja keenem Handy-Empfang. Drääjer, de Breefkäste, Parkpläz un Vüürdööre plaane, bruche en Ruter-Kaat, de Stopps lokal em Brauser speichert, zosammejehüürjje Stopps vebendt, överdraachbare Kaatedateije oohne Benutzerkonto exporteet un jemeinfreie Kaatekachele vör de Offline-Nutzung erongerläd.
Wat dat Denge deit (Nochjewiesene Fähechkääte)
Rural Mail Digital Helper ordnet veer enjebonge Ärbedsbereiche en en enstallierbare, offline-fähejje Progressive Web App en:
1. Saved Contract & RRECS Q&A (`#ask`)
Prööf jeseicherte Antwoote zo Ländlijje-Breefdrääjer-Ärbed, Jehalt, RRECS-Bewäärtunge, Deckungsfaktoor, zwaite Fääte, Ruhedag-Rääjelle un Zickplän vör Step 1 met Quelle-Nohwiese.
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.
Söökt Usszüg em NRLCA-Nationalveedraag, en MOUs, RREDP-Leitfäddem un Poss-Handböcher noh Thema, Atikel oder Formolär-Nummer durch.
Enthäld flöcke Theme-Starte vör et Beschweede-Verfahre noh Atikel 15, PS Form 8191, dat RREDP-Verfahre un Enfomazijons-Aanfroore noh Atikel 31.
Leevert ziteerte Usszüg zosamme met Titele vum Quell-Dokumänt, Sicker-Nummere un Dääte (nor Usszüg, keij komplett Dokumänte erongerlaade).
3. Browser-Local Printable Form Drafts (`#tools`)
Problem-Frooreboore & Ärbeds-Äntworp: Builds a steward preparation checklist and an escaped-text worksheet that can be printed or downloaded as `.txt` without clipping long entries.
Eeschte Entworp vum PS Form 8191 (Määz 2007 — EIN-Ussjaav): 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.
Nohjebaute RRECS-Bewäärtungs-Ensproch Form 1 Äntworp (Oktober 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`)
Läd lokaal enjebonge Leaflet 1.9.4 met veezehn Jrund-Laare nohdämm et jebruch weed: Strooß (OpenStreetMap), Satellit (USGS National Map Loftbelder met Beschreffung), Luffbeld (USGS Orthobelder oohne Beschreffung) un Topojrafisch (USGS National Map).
Plaazeet fäävjlich jekennzeichnet Breefkaaste (`#15803d`), Park-Punkt (`#7c3aed`), and Vüürdör (`#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.
Verbendungs-Modus: 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.
Offline-USGS-Kachelpäckcher & överdraachbare Dateije: 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.
Tyson sing Roll
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/`).
PDF- & Typojrafie-Technik em Klient: 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`).
Geodate- & överdraachbar Schema-Desain: 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.
Atomare PWA-Service-Worker-Architektur: 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.
App-Beldschemer & jeliksgemaate Belder
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.
Walkthrough-Ussschnitt — Jeseicherte RRECS-Antwoot & Dokumänte-Zitate
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.
Progressive Web App Symbol — Vebongene Rute-Stopps
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.
Aanpassbar Startbeldschem-Symbol — Sichere-Beraich-Jrafik vör Android & 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.
Jrenze, Enrechtong, Dateschotz & Plattfome
Rural Mail Digital Helper seschert strikte rächtlijje, technische un dateschotz-bezorjene Jrenze af, domet Drääjer un Veedrääder jenau wesse, wat dat Werkzüg deit un wat nit:
Kee offizjäll Süstem vum Veband oder vum USPS
Rural Mail Digital Helper es en onafhänjije Hölp vör Lehronk un Planong —kein verbindliche Quell— un dörfe nit als sulche ziteet weede. Prööf emmer aktoälle Veedraachs-Dokumänte un sprich vör Friste met enem Veedrääder.
Nor Ärbeds-Äntwörf (weede hee niemols ungerschrevve oder enjereisch)
Beim Vörbereijde oder Dröcke vun enem Ärbedsblatt, PS Form 8191 Äntworp oder RRECS-Bewäärtungs-Ensproch Form 1 Äntworp entsteiht en nor Ärbeds-Äntworp zor Prööfong dorch dä Veedrääder; et weed hee niemohls ongerschrevve, enjereech ov afjescheck. Vörjesatzte-Erklärunge, Terminkontrolle, Entscheide un Ungerschreff-Zeile blieve bewoss leer. Dat RRECS-Formulaar 1 vum Oktoover 2026 is en nohjemaate Vektor-Zeischnung, kein offizielle USPS-Orrijinaal.
Formoläre & Rute-Speicher em Brauser
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.
Kaate-Laare, Kachelrääjelle & Lufflinije-Afstand
De Kaat bruch Kachele vun OpenStreetMap un USGS National Map —nit de offizjälle USPS Digital Point Mapping (DPM) Kaat — un ehr Noodelle vör Breefkäste, Parkpläz un Vüürdööre sin nor persönliche Planungs-Notize, kee offizjälle DPM-Zaijche oder RRECS-Märunge. Jezuddelte Linije un Verbendungs-Afständ sin jeraade Lufflinije-Schätzunge, kee Strooße-Kilometere, Zostell-Zick oder RRECS-Punkte. Noh de Kachel-Nutzungsrääjelle vum OpenStreetMap Foundation weede OSM-Strooße-Kachele nie em Vüürus oder en Masse erongerjelaade; Offline-Päck speichere nor jemeinfreie USGS-Satelliten- oder Topo-Kachele (bes Zoom 16, maximal 6,000 Kachele pro Rute).
Standoot-Opzeijchong nor em Vödderjrond
Standoot-Erlaubnis weed nor aanjefrooch, wann dä Nutzer klickt op Minge Standoot bruche oder Standoot-Opzeichnung starte. Et Oppzäschne vum Wääg löuf nor, wann de Sigg ze sinn is (bes zo 10,000 opjezächnete Pünkt/Afschnette); et Verstoppe vum Reider, et Wääßele vun de App, et Sperre vum Beldschem ov en Paus vum Aanbedder vun mieh wie 30 Sekunde häält de Oppzächnung aan un määt ene Afschnett-Broch. GPS-Posizjuhne vum Browser un Handy sin unjeLocation-Aanjaave.
Plattfome, Offline-Ömfang & Android-Test-Build
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.
Nääkste Schrett — Hölp opmaache oder Walkthrough aankiike
Start Rural Mail Digital Helper tirek em Brauser (oder enstallier et om Startbeldschem), jank tirek op e Werkzüg, oder luur deer de dreiminütijje interaktive Walkthrough-Demo aan: