mirror of
https://github.com/hanzoai/waitlist.git
synced 2026-08-05 04:22:33 +00:00
Drops the Next.js + Upstash Redis stack. The viral waitlist now ships as a brand-neutral React widget against a Hanzo Base Go plugin. What changed - packages/widget/: new @hanzo/waitlist — React component, framework-free fetch client, drop-in <hanzo-waitlist> custom element. Zero brand colors, zero logos, zero brand names. Consumer brings logo via `logo` prop or `<slot name="logo">`. Theming via --hw-* CSS variables with fallback chain at usage so ancestor selectors win cleanly. - apps/web/: Next.js demo rebuilt monochrome. Five generic presets (Neutral, Preset A/B/C/D) prove brand swap works without per-brand builds. Demo's placeholder logo lives in the demo, not the package. - apps/api/: removed. Backend logic now lives in ~/work/hanzo/base/plugins/waitlist (committed separately). - packages/sdk/: removed (Preact + Vite). Replaced by packages/widget. - docs/: collapsed to architecture / api / widget. Old planning docs moved to docs/archive/. - Latest deps: Next 16, React 19.2, Vite 8, TS 5.9, vite-plugin-dts 5, @vitejs/plugin-react 6, eslint-config-next 16. Build output - ESM 6.76kB, CJS 5.22kB, IIFE 196.99kB / 62.65kB gzip - Widget styles: 3.89kB / 1.18kB gzip - Demo first-load: 106kB
17 lines
606 B
Bash
17 lines
606 B
Bash
# Demo site (apps/web) — points the widget at a Hanzo Base instance
|
|
# running the waitlist plugin.
|
|
NEXT_PUBLIC_BASE_URL=https://api.example.com
|
|
NEXT_PUBLIC_WAITLIST_SLUG=demo
|
|
|
|
# --- Base server (plugins/waitlist) -----------------------------------
|
|
# These belong on the Base host, NOT on the demo site. Listed here for
|
|
# convenience.
|
|
|
|
# Cloudflare Turnstile (optional — leave empty in dev to skip).
|
|
TURNSTILE_SECRET_KEY=
|
|
|
|
# Shared secret for GET /v1/waitlist/export (when no superuser cookie).
|
|
# Leave empty to disable that auth path entirely (export becomes
|
|
# superuser-only).
|
|
WAITLIST_ADMIN_SECRET=
|