Official Node.js SDK

The high-precision companion for industrial-grade SaaS applications.

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-sdk

Core Method Reference

The CMSClient class encapsulates all communication with the Anycast Delivery network. Initialize it once and reuse across your application.

MethodInputResponse Type
new CMSClient(apiKey)stringCMSClient Instance
client.getEntries(modelSlug)stringPromise<CMSEntry[]>
client.getEntry(modelSlug, id)string, stringPromise<CMSEntry>
client.getEntryBySlug(modelSlug, slug)string, stringPromise<CMSEntry>
Technical Specification Matrix
Refreshed: 2026-04-07T12:20
Logic Architect: Vishwanath Hatti
Improve this documentation
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');
Live Edge Delivery Network
v1.0.0-neural