Skip to content
maneaPublic

About

EU General Product Safety Regulation (Regulation (EU) 2023/988) client-side Article 16 EU RP validator, Article 19 Shopify/Amazon listing auditor & Article 9/20 technical dossier studio (Node 22 + SQLite WAL + React)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GPSRKit — EU General Product Safety Regulation (2023/988) Readiness Studio

CI License: MIT A $0, privacy-first compliance readiness workspace, Article 19 online listing auditor, Article 16 EU Responsible Person validator, and Article 9 / Article 20 technical file studio for Regulation (EU) 2023/988 (in full mandatory application across the EU since 13 December 2024).

Mandatory Legal Disclaimer: GPSRKit is an engineering and compliance-readiness tool for online sellers and manufacturers. It is NOT a certified testing laboratory, does NOT legally act as or appoint an EU Authorised Representative / Responsible Person (Article 16), and does NOT transmit live notifications to the European Commission Safety Business Gateway.


Key Capabilities

  • Article 16 EU Responsible Person Validator: Validates EU-27 country code, EU establishment flag, operator role (eu_manufacturer, eu_importer, authorised_representative, fulfilment_service_provider), postal address, and electronic contact (email or https:// URL), with reusable saved RP directory profiles.
  • Article 19 Online Storefront & Multilingual Warning Auditor:
    • Audits pre-checkout disclosure requirements: manufacturer identity, EU RP contact, clear product photograph flag, type/batch/serial identifier, and localized warnings across target EU Member State languages (EN, DE, FR, ES, IT, NL, PL).
    • Generates a live XSS-safe, copy-paste HTML block (buildArticle19ListingHtmlSnippet) ready for Shopify, WooCommerce, or custom EU storefronts.
  • Bulk Storefront Catalog CSV Auditor (UTF-8 BOM & Formula-Safe):
    • Audits multi-SKU CSV catalogs 100% locally in browser or via self-hosted API.
    • Exports RFC-4180 CSV reports with UTF-8 BOM and formula-injection sanitization (=, +, -, @ cells prefixed with ').
  • Article 9 Risk Analysis, 10-Year Technical File & SHA-256 Sealing:
    • Tracks 10 EU GPSR compliance controls, >= 10-year archive commitment (Art. 9(3)), complaint register (Art. 9(11)), and hazard mitigation register (Art. 9(2)).
    • Seals immutable dossier snapshots with atomic numbering (GPSR-YYYY-0001) and cryptographic SHA-256 verification.
    • Exports Article 9 Technical Markdown (EN & AR), Article 20 / 35–36 Safety Business Gateway & Recall Briefs, and A4 PDF print reports.
  • Bilingual & Dual-Theme UI: Full English (LTR) and Arabic (RTL) with Normandy Amber & Ivory (light) and Safety Slate (dark).

UI Previews

Workspace — English LTR (Normandy Amber & Ivory)

GPSRKit Workspace English LTR Normandy Amber

Dual-Script Workspace — Arabic RTL (Safety Slate Dark)

GPSRKit Workspace Arabic RTL Safety Slate

Remediated Non-EU Listing & Live Article 19 HTML Block

GPSRKit Remediated Article 19 Desktop

Sealed Technical Safety Dossier (GPSR-YYYY-0001 & SHA-256 Digest)

GPSRKit Sealed Technical Dossier Desktop

Mobile English LTR View (390x844)

GPSRKit Mobile English Normandy Amber

Mobile Arabic RTL View (Safety Slate Dark, 390x844)

GPSRKit Mobile Arabic Safety Slate


Local Development (Node 22+)

npm install
npm run dev          # Vite frontend (:5173, proxies /api -> :4195)
npm start            # Node 22 + SQLite WAL server (:4195)
npm run typecheck    # Strict TypeScript check
npm test             # Core + Server integration tests (Vitest)
npm run build        # Production static bundle in ./dist
npm run test:e2e     # Real Chrome Playwright E2E tests (:4196)

Zero-Budget Deployment Options ($0/month)

Option 1: Cloudflare Workers Static Assets (wrangler.jsonc)

All product audits, bulk CSV checks, SHA-256 sealing, HTML snippet generation, and A4 PDF printing run 100% locally in the browser using localStorage with zero backend required:

npm run build
npx wrangler login
npx wrangler deploy

Option 2: Self-Hosted Docker / Node 22 + SQLite WAL

docker compose up -d --build
# Reverse proxy 127.0.0.1:4195 via deploy/Caddyfile (supports optional BASE_PATH=/gpsrkit)

HTTP API Summary (Optional Backend :4195)

Method & Path Purpose
GET /api/health Service status, version, basePath, dossier & RP counts
GET /api/presets Built-in EU GPSR scenario presets
POST /api/audit-product Stateless single-product & Article 19 HTML audit
POST /api/catalog-audit Bulk SKU CSV validation + formula-safe UTF-8 BOM CSV export
GET/POST/PATCH/DELETE /api/profiles Reusable EU Responsible Person directory CRUD
GET/POST /api/dossiers List & create editable draft compliance dossiers
GET/PATCH/DELETE /api/dossiers/:id Read, update draft, or delete unsealed draft (409 if locked)
POST /api/dossiers/:id/duplicate Clone any draft or locked dossier into a fresh draft
POST /api/dossiers/:id/finalize (or /lock) Atomically seal as GPSR-YYYY-0001 with SHA-256 digest
GET /api/dossiers/:id/export.md Download Article 9 Technical Markdown (?locale=en|ar)
GET /api/dossiers/:id/article19.html Download copy-paste Article 19 storefront disclosure HTML
GET /api/dossiers/:id/recall-notice.md Download Article 20 / 35–36 Safety Gateway recall brief
GET /api/dossiers/:id/export.csv Download formula-safe UTF-8 BOM CSV report
GET /api/public/reports/:slugOrNumber Shareable read-only compliance dossier endpoint with view counter

License

MIT

About

EU General Product Safety Regulation (Regulation (EU) 2023/988) client-side Article 16 EU RP validator, Article 19 Shopify/Amazon listing auditor & Article 9/20 technical dossier studio (Node 22 + SQLite WAL + React)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages