Projek Keis Stadi · Progressive Web App we Inap Wok Nating Intanet
Rural Mail Digital Helper
Wanpela fri, inap-instol Progressive Web App (PWA) we Tyson Berry-Wogan i wokim bilong ol rural leta karia. Em i bungim ol seiv ansa long kontrak bilong USPS-NRLCA na RRECS, wanpela buk bilong sekim hap rait long dokumen, ol pepa bilong wok we yu inap prinim long brausa long PS Form 8191 na RRECS evaluesen dispyut Form 1, na USGS/OpenStreetMap rot meping we i wok taim intanet i no stap.
Ol rural leta karia we i sekim kontrak, redi long toktok wantaim stiuad, o lukim rot stop aninit long Rural Route Evaluated Compensation System (RRECS) i save bungim tripela hevi:
1. Painim Kontrak & RRECS Bekim
Ol askim long Step 1 grivens dedlaen, rilif-dei pei, namba tu trip, kavarej fakta, na Rural Route Evaluation Dispute Process (RREDP) i stap long NRLCA Nasonal Agriment, Memoranda of Understanding (MOUs), na USPS buk. Ol karia i mas painim kwik, klia tok i go wantaim stretpela dokumen taitel, pes namba, na deit.
2. Raitim Grievance & Toktok Kros Fom long Praivet
Wokim wanpela Step 1 grivens wok pepa (PS Form 8191) o wanpela RRECS evaluesen dispyut pepa (Form 1) bilong yunion stiuad i gat ol sikret stori bilong emploii (nem, 8-didjit Emploii ID Namba, rot namba, na stori bilong samting i kamap) we i mas stap insait long brausa bilong karia na i no ken go long wanpela seva, na ol longpela tok i mas i gat ekstra pes na i no ken katim nabaut insait long liklik PDF bokis.
3. Makim Ol Stop & Wok Ausait long Lain Ples
Ol rot bilong karim ol pas i go long ol ples ausait planti taim i save go tru long ol hap we netwok bilong mobael fon i no strong o i nogat tru. Ol lain wok bilong karim ol pas we i plenim ol Mailbox, Park point, na Front door ol i nidim wanpela rot mepa we i save sevim ol ples bilong stop insait long brausa stret, bungim ol stop i gat wankain wok, salim ol potabol mep fail i go ausait we i no nidim yu long wokim wanpela akaun, na daunlodim ol mep tail bilong pablik-domen bilong lukluk long en taim netwok i no stap.
Wanem Wok Dispela Samting i Save Mekim (Ol Bikpela Pawa)
Rural Mail Digital Helper i oganaisim fopela wok-ples insait long wanpela Progressive Web App we yu inap instolim na yusim taim intanet i no stap:
1. Saved Contract & RRECS Q&A (`#ask`)
Sekim ol seiv ansa long wok bilong rural-karia, pei, RRECS evaluesen, kavarej fakta, namba tu trip, ol lo bilong rilif-dei, na Step 1 taim-laen wantaim ol sohs.
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.
I sekim ol hap tok long NRLCA Nasonal Agriment, MOUs, RREDP gaid, na pos ofis buk long topik, atikol, o form namba.
I gat ol hariap topik bilong Article 15 grivens pasin, PS Form 8191, Rural Route Evaluation Dispute Process (RREDP), na Article 31 toksave askim.
Givim ol hap tok wantaim sohs dokumen taitel, pes namba, na deit (ol hap tok tasol, i no ful dokumen daunlod).
3. Browser-Local Printable Form Drafts (`#tools`)
Kwestin bilong Hevi & Wok Pepa: Builds a steward preparation checklist and an escaped-text worksheet that can be printed or downloaded as `.txt` without clipping long entries.
Trutru PS Form 8191 Wok Pepa (Mas 2007 — EIN Edisen): 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.
Wokim Gen RRECS Evaluensen Dispyut Form 1 Wok Pepa (Oktoba 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`)
I loadim Leaflet 1.9.4 wantaim fopela mein leia: Strit (OpenStreetMap), Satelait (USGS National Map piksa wantaim nem), Piksa bilong Antap (USGS piksa tasol), na Topo (USGS National Map).
Ol kala-kod mak Melbokis (`#15803d`), Pak poin (`#7c3aed`), and Fran dua (`#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.
Konekt Mod: 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 Tail Pek & Ol Fail: 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.
Wok bilong 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/`).
PDF na Typografi Disain long Brausa: 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`).
Geospatial & Portable Schema Disain: 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.
Atomic PWA Service Worker As Disain: 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.
Ol Piksa bilong Aplikesen na Ol Aset
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.
Wokabaut Piksa — Seiv RRECS Ansa & Dokumen Toksave
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 Aikon — Ol Rot Stop i Bung
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.
Maskable Hom-Skrin Aikon — Android & PWA Seif-Zon Aset
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.
Ol Limit, Setap, Praivesi & Platfom
Rural Mail Digital Helper i putim strongpela lo, teknikal, na praivesi mak bilong helpim ol karia na stiuad long kliagut long wanem samting tul i mekim na i no mekim:
I No Ofisel Yunion o USPS Sistem
Rural Mail Digital Helper em i wanpela independen skul na plen samting—i no wanpela as bilong trutok—na no ken kolim olsem ofisel samting. Sekim ol kontrak dokumen oltaim na toktok wantaim yunion stiuad paslain long dedlaen.
Ol Wok Pepa Tasol (No Ken Sainim o Failim Long Hia)
Wokim o prinim wanpela wok-sit, PS Form 8191 wok pepa, o RRECS Evaluensen Dispyut Form 1 wok pepa i kamapim wanpela wok pepa bilong stiuad lukim tasol; ol i no save sainim, putim, o salim long hia. Ol toktok bilong bos, sekim taim, disisisen, na lain bilong sain i stap emti nating. Oktoba 2026 RRECS Fom 1 em wanpela piksa ol i wokim gen, i no orisinal bilong USPS.
Ol Form na Rot Storas Insait long Brausa
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.
Ol Mep Leia, Tail Polisi & Stret-Laen Longwe
Mep i yusim OpenStreetMap na USGS Nasonal Mep tail—i no ofisel USPS Digital Point Mapping (DPM) mep—na Mailbox, Park point, na Front door pin bilong en ol i mak bilong wanwan man yet long plenim, i no ofisel DPM mak o RRECS measamen. Ol lain yu drowim na Connect distens ol i stretpela lain geodetik kalkulesen tasol, i no skelim rot mileage, taim bilong delivaring, o RRECS kredit. Bihainim OpenStreetMap Foundation tile usage polisi, OSM Street tail ol i no inap daunlodim nating bipo o daunlodim planti wantaim; oflain pek i save kisim na sevim ol pablik-domen USGS Satellite o Topo tail tasol (i go long zum 16, i gat kap long 6,000 tail long wanwan rot).
Rikodim Lokesen Taim Aplikesen i Opan Tasol
Askim pemisen bilong lokesen taim yusa i klikim tasol Yusim ples bilong mi o Kirapim rekot bilong lokesen. Rekodim bilong rot i ran tasol taim pes i stap long ai (inap long 10,000 rekod mak/hap); haitim tab, senisim ap, pasim skrin, o provider i lus winim 30 sekon i pasim wok rekod na makim wanpela kat. Brausa na fon GPS mak i no stret tumas.
Ol Platfom, Wok Mak Taim Intanet i No Stap & Android Test Bild
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.
Nekis Samting — Opim Halivim o Lukim Wokabaut
Opim Rural Mail Digital Helper stret long brausa bilong yu (o putim long hom skrin), go long wanpela tul, o lukim tripela-minit intaraktiv wokabaut demo: