@gb-npm/cms-sdk
v0.1.1
Published
Data SDK for gb-npm CMS — fetch + ETag + cache + SEO helpers (Node/Worker/Browser)
Downloads
305
Readme
@gb-npm/cms-sdk
Data SDK for the gb-npm CMS. Wraps the read API with fetch, ETag-aware caching, and SEO helpers. Runs in Node, Cloudflare Workers, and the browser.
Install
pnpm add @gb-npm/cms-sdkQuick start
import { createCmsClient } from '@gb-npm/cms-sdk'
const cms = createCmsClient({
apiBase: 'https://cms.example.com',
siteDomain: 'mysite.example.com',
readToken: process.env.CMS_READ_TOKEN
})
const home = await cms.home.get()See the parent README for the full SDK overview.
