Installation
Install the SDK via npm. It ships with full TypeScript definitions and auto-imports your model types from your FreeCMS project.
npm install freecms-sdkThe high-precision companion for industrial-grade SaaS applications.
Install the SDK via npm. It ships with full TypeScript definitions and auto-imports your model types from your FreeCMS project.
npm install freecms-sdkThe CMSClient class encapsulates all communication with the Anycast Delivery network. Initialize it once and reuse across your application.
import { CMSClient } from 'freecms-sdk';\n\nconst client = new CMSClient('YOUR_KEY');\n\n// Fetch all blog posts\nconst posts = await client.getEntries('blog');\n\n// Fetch a single post by slug\nconst post = await client.getEntryBySlug('blog', 'my-first-post');