Ent Site + Vercel Provider Design¶
Scope¶
Implement a Vercel-deployable enterprise microsite (ent-site) with a distinctive dark-mode experience, embedded workflow diagrams, Three.js visuals, and a signup-only waitlist flow.
Add a new SecretZero vercel provider for Vercel project environment variable management (v1).
Goals¶
- Deploy-ready
ent-siteon Vercel using Next.js App Router. - Dark-first visual language with reduced-motion support.
- Rich workflow visualization (agent flow, governance loop, sync/rotate/drift patterns).
- Waitlist API (
/api/signup) storing entries in Vercel KV. - Provider support in SecretZero for Vercel env vars:
- Upsert secret values
- Retrieve state/value
- Delete values
- Environment-scoped support (
development,preview,production)
Non-Goals¶
- Domain/deployment management in provider v1.
- CRM integration in first waitlist release.
- Multi-step onboarding funnels.
Architecture¶
Microsite¶
- Stack: Next.js + TypeScript.
- App structure:
app/page.tsx: landing compositioncomponents/hero-scene.tsx: Three.js visual surfacecomponents/workflow-diagrams.tsx: SVG/CSS diagramscomponents/example-workflows.tsx: practical scenarioscomponents/waitlist-form.tsx: signup UI + API integrationapp/api/signup/route.ts: waitlist endpointlib/waitlist-store.ts: adapter interface + KV implementation- Theme:
- Dark mode by default with high-contrast tokenized palette.
- Accessible focus rings and keyboard behavior.
- Motion is opt-out with
prefers-reduced-motion.
Waitlist Data Flow¶
- User submits email and optional context.
- API validates and normalizes payload.
- Deduplicate via normalized email hash key.
- Persist with
@vercel/kvusing namespacewaitlist:*. - Respond with deterministic status:
createdalready_registered
SecretZero Provider¶
- New module:
src/secretzero/providers/vercel.py - Auth:
VERCEL_TOKEN(required)team_idoptional- Core capability methods:
store_secret(...)retrieve_secret(...)delete_secret(...)- Uses Vercel REST API for project env vars:
- Create/update env variable
- List/read existing variable(s)
- Delete variable(s)
- Supports env target list in config:
development,preview,production
Validation and Testing¶
Microsite¶
- Unit tests for payload validation and KV adapter behavior.
- API tests for:
- successful insert
- duplicate registration
- invalid payload
- Smoke checks for dark-mode and reduced-motion rendering paths.
Provider¶
- Unit tests with mocked Vercel API responses:
- auth failure
- project not found
- upsert success
- retrieval/list mapping
- delete behavior
- Bundle registration checks and docs/example validation.
Delivery Sequence¶
- Scaffold Next.js microsite and Vercel-ready configuration.
- Build dark-mode visual system and Three.js hero.
- Add workflow diagrams and concrete example workflows.
- Add waitlist API + KV adapter.
- Implement SecretZero
vercelprovider + bundle registration. - Add docs/examples/tests and run verification.
Risks and Mitigations¶
- Three.js performance on low-power devices: throttle complexity and support reduced motion.
- KV lock-in concerns: adapter abstraction allows future Postgres migration.
- Provider API shape changes: isolate HTTP handling and map clear errors.