@butterflypress/core
Framework-agnostic HTTP client, AST camelCase normalizer, OpenAPI-generated TypeScript types, rich text sanitizer, and semantic attribute resolvers.
Client & Normalizer Usage ts
import {
createButterflyPressClient,
normalizePagePayload,
processRichText,
buildThemeInlineStyle
} from "@butterflypress/core"
const client = createButterflyPressClient({ apiBaseUrl: "https://cms.example.com" })
const page = await client.getPageByPath("/")
const safeHtml = processRichText("<p>Hello <strong>World</strong></p>")