Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 1 min read

Building a 100% Browser-Local OSHA 1910.147 LOTO Placard Generator with Vector PDF Export

Industrial maintenance teams still build machine-specific Lockout/Tagout (LOTO) placards in Word or PowerPoint, manually dragging red arrows onto shop-floor photos and hoping nothing shifts when printed at 11Γ—17. When w

Industrial maintenance teams still build machine-specific Lockout/Tagout (LOTO) placards in Word or PowerPoint, manually dragging red arrows onto shop-floor photos and hoping nothing shifts when printed at 11Γ—17.

When we built LotoCard and the free .lotocard.json Field-Presence Viewer, our core engineering constraint was strict browser-local privacy: plant floor photos often contain proprietary tooling and layouts that EHS managers cannot upload to third-party cloud storage.

1. Keeping Photos 100% Client-Side

All machine photos, numbered energy-isolation callout pins (E-1, P-1, H-1), and revision metadata live in browser memory and serialize to a portable .lotocard.json document:

  • Photos are read via FileReader / ObjectURL, downscaled locally if needed, and never leave the browser tab.
  • Callout coordinates are stored as normalized [0..1] percentages relative to the image bounds so pins never drift between screen preview, 8.5Γ—11 Letter, and 11Γ—17 Tabloid PDFs.

2. Deterministic 29 CFR 1910.147(c)(4)(ii) Field-Presence Checks

OSHA 29 CFR 1910.147(c)(4)(ii) outlines specific procedural elements a machine-specific energy control procedure must document: intended use, shutdown steps, isolation devices, lockout/tagout application, stored energy dissipation, and verification of isolation.

Rather than claiming legal compliance certification, we modeled these as a deterministic field-presence completeness schemaβ€”highlighting missing verification steps or unpinned energy sources before a placard is printed and laminated.

3. Clean Vector PDF Output Without a Headless Browser

Generating print-ready 8.5Γ—11 and 11Γ—17 placards directly in the browser with crisp vector callouts, OSHA-style hazard headers, and embedded QR revision codes avoids server-side Puppeteer cold starts and guarantees zero image upload.

If you want to inspect .lotocard.json files or test field-presence checks on 16 industrial machine presets (CNC mills, hydraulic presses, air compressors), try the free viewer at lotocards.com/loto-viewer.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.