A high-fidelity, publisher-facing frontend prototype for reviewing and inserting Ad Network creative:
- beehiiv recommends an approved strategic concept.
- The advertiser protects the product, offer, claims, CTA, destination, tracking, legal language, and strategic concept.
- The publisher shapes the headline and body through structured tone, sentence-structure, energy, and audience controls.
The prototype uses local fixtures and deterministic behavior. It contains no authentication, database, production recommendation infrastructure, or live AI calls.
Requires Node.js 22.13 or newer.
npm install
npm run devUseful checks:
npm test
npm run build/— Publisher Ad Network Offers experience with the Attio offer as the entry point./publisher— Two-column creative-selection modal over the current Offers experience./editor— Simplified post editor with the confirmed sponsored placement.
The hidden developer scenarios utility can be opened from the faint gear or
with Alt+Shift+S. State is saved to localStorage, and the selected scenario
is mirrored in the URL.
The presets cover early and downstream recommendations, learning and unavailable states, Primary and Secondary placements, advertiser and tone-matched copy, successful validation, a simulated blocked generation, and editor insertion.
Recommendation outcomes and plain-language explanations are mocked as scenario fixtures. The recommendation mechanics remain behind the scenes and are not configurable from the interface.
app/— Route entry points and shared visual system.components/— Publisher selection, preview, validation, editor, and tester controls.data/— Typed offer, concept, scenario, and copy fixtures.lib/publisher-validation.ts— Generated-output limits and unsupported-claim validation.tests/publisher-prototype.test.ts— Deterministic copy and validation coverage.
PrototypeProvider derives protected copy from structured publisher controls
and manages validation, editor insertion, URL presets, and local persistence.
- Offer and advertiser records
- Recommendation state and explanation
- Tone-matched copy generation
- Claim and copy-limit validation
- Preview, confirmation, save, remove, and insertion behavior