Back to projects

Subscriber Widget

Embeddable newsletter subscription widget for any website

About

A lightweight, embeddable newsletter subscription widget built with React and distributed as a UMD library. Site owners add two lines of HTML to embed a styled subscription form that validates and submits contact data to a backend API. Supports multiple client instances on the same page with per-client configuration.

Highlights

  • Embeddable widget distributed as UMD library via Vite
  • Auto-initializes from data attributes — zero JavaScript setup required
  • Multi-client support with isolated instances on the same page
  • Form validation with Zod and real-time feedback

Tech Stack

ReactTypeScriptViteTailwind CSSshadcn/uiReact Hook FormZod

Code Stats

JavaScript97.1%
TypeScript2.2%
JSON0.5%
CSS0.3%

21,541 total lines of code

Duration

February 2024 — Present

Visit siteView source
PreviousNext