@aero-cms/core
v1.2.0
Published
Framework-agnostic HTTP client and types for Aero CMS public content API
Downloads
202
Maintainers
Readme
@aero-cms/core
Türkçe: Paket eşlemesi ve starter tablosu → aero-cms-setup/docs/PACKAGES.md
Framework-agnostic HTTP client and TypeScript types for the Aero CMS public content API.
Use this package directly from any runtime that supports fetch, or via a framework SDK:
| Package | Framework |
|---------|-----------|
| @aero-cms/react-sdk | React / Next.js |
| @aero-cms/vue-sdk | Vue 3 / Nuxt 3 |
| @aero-cms/astro-sdk | Astro |
| @aero-cms/angular-sdk | Angular |
Install
npm install @aero-cms/coreUsage
import { CmsClient } from '@aero-cms/core';
const cms = new CmsClient({
baseUrl: 'http://localhost:5047',
});
const page = await cms.getPage('anasayfa', { lang: 'tr' });
if (page.success) {
console.log(page.data?.title);
}API surface
- Pages:
getPage,getPages - Menus:
getMenu - Settings:
getSettings - Search:
search,suggest - Forms:
getForm,submitForm - Content modules:
getNews,getEvents,getDocuments, … - Component content:
getComponentContent,getAllComponentContent - Utilities:
getMediaUrl,getLanguages,getOrgChart,getSitemap
License
MIT
English summary: This document is in English. Ecosystem map (starters, schema imports, versions): PACKAGES.md#english-summary.
