@karidea/webemailer-client (0.1.0)

Published 2026-09-04 16:46:38 +00:00 by klaalo in KarideaOy/webemailer-client

Installation

@karidea:registry=
npm config set @karidea:registry=
npm install @karidea/webemailer-client@0.1.0
"@karidea/webemailer-client": "0.1.0"

About this package

@karidea/webemailer-client

A zero-dependency, lightweight JavaScript and TypeScript client library for embedding contact and inquiry forms connected to the Karidea webemailer backend service.

Designed with European digital sovereignty and privacy standards (GDPR-compliant), the library provides universal browser compatibility across modern module bundlers (Vite, Webpack, Rollup) and plain HTML pages using <script> tags.


Key Highlights

  • Zero Runtime Dependencies: Ultra-lightweight footprint with no external runtime libraries.
  • Universal Distribution: Compiles to ESM (webemailer-client.js), CommonJS (webemailer-client.cjs), and browser IIFE (webemailer-client.iife.js exposing window.KarideaWebemailer).
  • Resilient UI State Management: Automatically locks form controls during in-flight network requests and unconditionally restores button/textarea interactivity in a finally block upon completion, rate-limiting, or error.
  • Client-Side Validation & Length Checks: Pre-flight validation prevents empty submissions and oversized inputs (> 10,000 characters) without locking user controls or making unnecessary network roundtrips.
  • Structured Transmission Receipts: Delivers delivery confirmation messages and technical transmission headers (timestamp, origin metadata) directly to application callbacks.
  • Dual Transport Encoding: Supports both standard application/x-www-form-urlencoded and application/json payload formats.
  • Privacy by Design: Strictly zero telemetry, tracking beacons, or third-party client fingerprinting, adhering to GDPR standards.

Documentation & Guides

Detailed instructions are organized into dedicated guides for specific roles:

  • Customer Website Integration Guide: Complete instructions for website developers integrating the library into their websites, including npm package installation, .npmrc registry setup, bundler/plain HTML usage examples, full configuration reference (WebemailerOptions), and troubleshooting.

  • Developer & Maintainer Guide: Technical reference for developers maintaining the library, building distribution bundles, running Vitest unit tests, and understanding the multi-target Vite build pipeline and Forgejo CI/CD release workflow.

  • Contributing Guidelines: Code of conduct, secret hygiene requirements, coding conventions, and Pull Request checklist for community contributors.

  • Rollout & Adoption Strategy: 5-phase migration and deployment strategy from staging verification to production customer adoption.

  • Security Policy: Responsible disclosure instructions and confidentiality policy.


License

MIT License. Copyright (c) 2026 Karidea Oy.

Dependencies

Development dependencies

ID Version
@vitest/coverage-v8 ^3.0.7
happy-dom ^20.14.0
typescript ^5.7.3
vite ^6.2.0
vite-plugin-dts ^4.5.3
vitest ^3.0.7

Keywords

webemailer contact-form karidea privacy gdpr
Details
npm
2026-09-04 16:46:38 +00:00
5
2026-11-02 16:05:31 +00:00
Karidea Oy
MIT
latest
10 KiB
Assets (1)
Versions (1) View all
0.1.0 2026-09-04