@tentocms/client
v1.3.0
Published
Official TypeScript SDK for TentoCMS
Maintainers
Readme
@tentocms/client
Official TypeScript SDK for TentoCMS. A type-safe client for consuming the TentoCMS public API — works in Node.js, browsers, and edge runtimes.
Installation
npm install @tentocms/clientQuick Start
import { TentoClient } from '@tentocms/client'
const client = new TentoClient({
apiKey: 'tento_pk_1234567890'
})
const pages = await client.pages.list()
const homePage = await client.pages.getBySlug('home')
// Lighter payload: `media: 'url'` returns media as plain URL strings
// instead of the full media object (drops dimensions/alt — see the reference).
const homePageLite = await client.pages.getBySlug('home', { media: 'url' })Full Documentation
- Generated API Reference — canonical, always-in-sync surface (every class, method, option & type), generated from the SDK source with TypeDoc
- SDK Reference & Framework Guides
- Nuxt Integration
- Next.js Integration
- Astro Integration
- Public API Reference
