ButterflyPress
SDK Reference

@butterflypress/astro

Recursive Astro BlockRenderer, mechanical primitives (BpImage, BpRichText, BpAction, BpForm), and routing/SEO helpers.

Astro Page Example astro
---
import BlockRenderer from "@butterflypress/astro/components/BlockRenderer.astro"
import { streamComponents } from "@/components/blocks/registry"
const page = await client.getPageByPath("/")
---

<BlockRenderer blocks={page.body} components={streamComponents} />