πŸ“± PWA Ready πŸ“¦ License: Proprietary πŸ”’ Version 5.0 πŸ“… Last Updated Feb 2025

A powerful, offline-capable suite of optical retail and lab management tools built with HTML, CSS, and JavaScript

πŸ‘“
Firebase Ascent PWA HTML/JS Optical Suite

PAL Optical Tool Kit

POMA: Comprehensive HTML/JS optical suite for retail/lab management (P.O.S.T. write-ups, insurance, camera measurements, lens catalog, Firebase sync). PWA-ready, offline-capable.

🌟 Overview

Description
πŸ–₯️ Pure HTML/CSS/JavaScript
πŸ“± PWA-Ready Installable as a native app on any device
πŸŒ™ Dark/Light Theme
πŸ”Œ Offline Capable Works without internet (with Service Worker)
πŸ–¨οΈ Print-Optimized Generate professional receipts and waivers
πŸ“Š Integrated Billing Complete insurance and payment processing

The PAL Optical Tool Kit was born out of a real-world need to reduce friction in the eyewear order workflow. The optical industry still relies heavily on paper forms, manual calculations, and disconnected processes. This toolkit brings those workflows into a modern, browser-based environment β€” accessible from any device, with data persisted in real time via Firebase.

The suite is designed to be modular: each tool handles a specific part of the process, and they all share a consistent UI and data layer so information flows naturally between them.


πŸ“ Complete Toolkit

Detailed mapping of all 11 source HTML files from PALHTML directory with key features and demos

File Name Tool Name Key Features Demo
WRITEUP.html ⭐ P.O.S.T. Master Write-Up
Flagship tool (5000+ JS lines)
β€’ Camera PD/Seg measurement
β€’ 400+ lens catalog w/ pricing
β€’ Firebase auth/sync (12 staff)
β€’ Multi-lang patient sheets
β€’ Insurance billing (10+ providers)
β€’ 3-page print (slips/waivers)
opticalc.html Optician Calculator β€’ Decentrations β€’ MBS calc β€’ Lens thickness estimator
β€’ Receipt printer β€’ 3 themes (Pip-Boy, Rainbow)
β€’ Session logging
Optician Calculator
lensavail.html Lens Availability Database β€’ Progressives + Multifocals tables
β€’ Editable ranges (Sph/Cyl/Add)
β€’ JSON import/export
β€’ Material filters β€’ LocalStorage
Lens Inventory
lens-guide.html Lens Viewing Guide β€’ Educational visual diagrams
β€’ SV/Bifocal/Trifocal/Prog comparison
β€’ Vision corridor illustrations
β€’ Dark mode support
Lens Guide
PALQUOTE (1).HTML PAL Quote Estimator β€’ 400+ lens catalog pricing
β€’ Shopping cart + insurance copays
β€’ Frame quoting β€’ Medicaid handling
β€’ Print-ready quotes
PAL Quote Tool
DRITEMIZEDRECPT.HTML Dr. Klecker Receipt β€’ Itemized billing table
β€’ Insurance adjustments β€’ Payment tracking
β€’ Professional medical receipt
β€’ Print optimized
Dr. Itemized Receipt
contact.html Contact Lens Orders β€’ Annual/6mo/Custom supply sizing
β€’ Insurance/payment tracking
β€’ Excel export β€’ Print list
β€’ LocalStorage persistence
Contact Lens Orders
LABLENS.HTML Lab Lens Tally Scanner β€’ QR/barcode scanner
β€’ Rx matrix tally (sph/cyl)
β€’ Poly/plastic sheets
β€’ Print tally slips β€’ CSV export
β€’ Dark/Light modes
TracyFrameInventory.html Frame Inventory β€’ Tracy's frame stock tracker
β€’ Inventory management
β€’ Lab/retail coordination
Frame Inventory
PAL OPTICAL RECEIPT.HTML PAL Optical Receipt β€’ Internal receipt printer
β€’ Job costing β€’ Payment tracking
PAL Receipt
index.html Master Dashboard β€’ Unified launcher
β€’ Tool quick-links β€’ PWA installer
Master Dashboard

⭐ P.O.S.T. Write-Up System - Deep Dive

The flagship application - complete digital replacement for traditional paper write-ups (5000+ JS lines)

πŸ” User Authentication

Secure login system with personalized access codes for 12 staff members (James→Lisa) with initials display.

πŸ“‹ Patient Management

πŸ₯ Insurance Integration

Type
Private Pay Cash
MEDICAID Aetna, Humana, Wellcare etc.
EYE-MED Commercial
VSP Commercial (20% frame discount)

Auto copay/allowance deductions, Medicaid billing codes (92340, prior auth).

πŸ“· Camera Measurement Tool

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                CAMERA MEASUREMENT                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 1. LEFT edge of credit card (85.6mm scale)         β”‚
β”‚ ↓                                                  β”‚
β”‚ 2. RIGHT edge of credit card                       β”‚
β”‚ ↓                                                  β”‚
β”‚ 3. Center of RIGHT pupil                           β”‚
β”‚ ↓                                                  β”‚
β”‚ 4. Center of LEFT pupil β†’ Instant PD               β”‚
β”‚ ↓                                                  β”‚
β”‚ 5. Bottom of right lens β†’ Instant Seg Height       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      

5-click calibration using standard credit card for accurate PD/Seg measurements, auto-populates form.

πŸ” Lens Catalog (400+)

Popular Options
Plastic Varilux X ($530), Shamir III ($465)
Polycarbonate Unity VIA ($410), Younger ($295)
High Index 1.67/1.74 SV ($365/$400)
Transitions/Polarized Light adaptive, KBCO, Drivewear

Auto-pricing w/ insurance overrides, oversize/high Rx/add auto-charges (+$10-30).

πŸ–¨οΈ Print & Export

3-page professional output: Dual lab slips, Patient sheet (multi-lang), Waivers (expired Rx, POF, thickness, etc.). HTML auto-save w/ patient/job# timestamp.

Key Features

πŸ“

Full Write-Up Program

Complete prescription write-up tool with all standard optical fields, validation, and Firebase sync for instant saving and retrieval.

πŸ”’

PAL Calculators

Automated calculations for seg heights, fitting cross placement, and progressive lens measurements to eliminate manual math errors.

☁️

Firebase Backend

Real-time Firestore database stores all orders and write-ups, with authentication so each user sees only their own data.

πŸ“‹

Order History

Searchable log of past orders with the ability to pull up, duplicate, or edit any previous write-up in seconds.

πŸ“±

Mobile-First Design

Fully responsive layout designed to work on tablets and phones used at the dispensing table or lab bench.

πŸ–¨οΈ

Print-Ready Output

One-click print view formats the write-up into a clean, lab-ready document that matches industry standards.


πŸ”§ Technical Stack

Usage
HTML5 Semantic markup, offline capabilities
CSS3 Styling, animations, print styles
JavaScript ES6+ App logic, Firebase integration
Firebase Realtime DB, auth
Service Worker PWA offline
Canvas API Signature, measurements

Browser Support: Chrome/Edge βœ…, Firefox βœ…, Safari βœ…, Mobile βœ…

Browser Support

🟦 Chrome/Edge βœ… Recommended
🟧 Firefox βœ… Supported
🟦 Safari βœ… Supported

πŸ“¦ Quick Start

  1. start index.html (Windows) β†’ Click any tool πŸ–±οΈ
  2. For PWA/server: npx serve . or python -m http.server 8000

All tools work offline after first load ✨


🎯 Features

πŸ“

P.O.S.T. Digital Write-Up

Full replacement for paper slips

πŸ“Š

Real-Time Billing

Insurance adjustments & payments

πŸ₯

Insurance (10+ Providers)

VSP/EyeMed/Medicaid

πŸ“±

Responsive Design

Tablet/phone optimized

πŸŒ™

Dark Mode

Theme switching

πŸ”Œ

Offline PWA

Service Worker caching


πŸ” Security


The Problem It Solves

Firebase Firestore Firebase Authentication Firebase Hosting Responsive Design

The Problem It Solves

Traditional optical write-up processes involve handwritten forms, manual seg height calculations, and physical order logs that are easy to lose and hard to search. Errors in these calculations can result in incorrectly made lenses β€” a costly and time-consuming mistake for both the lab and the patient.

The PAL Optical Tool Kit eliminates these pain points by digitizing the entire workflow, providing instant validation, and keeping a permanent, searchable cloud record of every order.

⚠️ Disclaimer: This system is not currently in use and in its present state is not HIPAA compliant. Upgrading to Google Firestore under a Business Associate Agreement (BAA) would readily address this.