How lokegani/threadpass works
ThreadPass is a static effluent-compliance monitoring demo for textile-dyeing units. Its main workflow generates simulated readings, evaluates them with a 30-day baseline, MAD threshold, sustained-run rule, and satellite/sensor agreement, then presents unit and cluster status. Monitors and units use role-based demo views; buyers can independently check certificates or review printable reports. The README documents the main page capabilities and module responsibilities, but source excerpts are limited to a palette-validation utility, so implementation-level links beyond those statements are omitted.
Main entry points: detect.js Dual-layer detection · unit.html Unit detail · dashboard.html Cluster dashboard · auth.js Demo sessions
Components 20
Monitoring method
- Simulated readings
site/assets/js/data.js - Dual-layer detection
site/assets/js/detect.js
Monitoring portal
- Demo sessions
site/assets/js/auth.js - Sign-in
site/signin.html - Cluster dashboard
site/dashboard.html - Unit detail
site/unit.html - Alerts
site/alerts.html - Pending status
site/pending.html - Certificate admin
site/admin.html - Methodology guide
site/methodology.html - Product landing
site/index.html
Buyer assurance
- Certificate verification
site/verify.html - Due-diligence report
site/report.html - Printable certificate
site/certificate.html - QR encoder
site/assets/js/qr.js
Shared presentation
- SVG charts
site/assets/js/charts.js - Shared UI
site/assets/js/ui.js
Other components
- Monitor
- Textile unit
- Certificate buyer
Connections 20
- Monitor → Sign-in: signs in
README.md - Textile unit → Sign-in: signs in
README.md - Certificate buyer → Certificate verification: checks certificate
README.md - Sign-in → Demo sessions: starts session
README.md - Demo sessions → Cluster dashboard: routes by role
README.md - Demo sessions → Certificate admin: restricts access
README.md - Simulated readings → Dual-layer detection: supplies readings
README.md - Dual-layer detection → Cluster dashboard: determines status
README.md - Dual-layer detection → Unit detail: determines status
README.md - Dual-layer detection → Alerts: flags events
README.md - Dual-layer detection → Pending status: identifies insufficient history
README.md - Printable certificate → QR encoder: encodes verification link
README.md - QR encoder → Certificate verification: opens verification
README.md - Monitor → Cluster dashboard: views cluster
README.md - Textile unit → Unit detail: views own unit
README.md - Cluster dashboard → SVG charts: renders charts
README.md - Unit detail → SVG charts: renders charts
README.md - Unit detail → Due-diligence report: opens report
README.md - Unit detail → Printable certificate: opens certificate
README.md - Product landing → Methodology guide: explains method
README.md