Install
The shared client
A blog page that re-builds when content changes
Next.js + ISR + thecontent.changed / blog_post.published webhooks gives
you a static site that re-renders the second something updates.
A webhook receiver that triggers re-validation
Server action to create a post
A storefront product card
Hand this to your AI
Oncelib/neural-draft.ts is in place, ask Claude Code or Cursor:
“Add aPair this with/aboutpage in the App Router. Use the Neural Draft SDK (neuralDraftfromlib/neural-draft.ts) to fetch the matchingPageviapages.get('about'), rendermeta_title/meta_description/og_imageingenerateMetadata, then mark up the body withdata-translatekeys (about.headline,about.body) and adata-image-key="about.hero"image. Wireregister_componentthrough the Neural Draft MCP server so the section is editable in the admin.”
@neuraldraft/mcp installed in your editor —
the AI will read brand://current for colors and voice before generating
the markup.
Notes
revalidatePathrequires Next.js 14+. On 13, swap tores.revalidate()in a Pages Router handler.- The webhook route MUST read raw body via
req.text()—req.json()parses and re-encodes, breaking the HMAC. - Build-time
generateStaticParamsis bounded by your rate limit. Usepage_size: 100and paginate if you have more than a few hundred posts.