@easy-cms/core

Embedded, code-first headless CMS for Nuxt and Next.js
25,029 2
Install
npm install @easy-cms/core
Latest Version:1.4.2
Vue:3
License:MIT
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: scton54

@easy-cms/core

The core of Easy CMS: the config, the typed Local API, the REST handler, auth and access control, hooks, drafts and versions, localization, uploads, webhooks and plugins. Part of Easy CMS, the embedded, code-first headless CMS for Nuxt and Next.js.

Install

Start with npm create easy-cms@latest, which installs this package with a framework adapter and a database adapter. By hand:

npm install @easy-cms/core @easy-cms/db-sqlite

Or pnpm add, yarn add or bun add.

Usage

// easy-cms.config.ts
import { type CollectionDocument, defineConfig, isAdmin } from '@easy-cms/core'
import { sqlite } from '@easy-cms/db-sqlite'

const config = defineConfig({
  secret: process.env.EASY_CMS_SECRET!,
  db: sqlite({ url: 'file:./cms.db' }),
  collections: [
    {
      slug: 'posts',
      drafts: true,
      access: { read: () => true, update: isAdmin },
      fields: [
        { name: 'title', type: 'text', required: true },
        { name: 'slug', type: 'slug', from: 'title' },
        { name: 'body', type: 'richText' },
      ],
    },
  ],
})

export default config
export type Post = CollectionDocument<typeof config, 'posts'>

The Nuxt and Next.js adapters (or easy-cms serve) serve the admin and REST API from this config; useEasyCMS() / getEasyCMS(config) give you the Local API, typed from it.

From 1.0, breaking changes come only in a major release, with an upgrade guide. See Versions and deprecations and the changelog.

Links

Configuration · Local API · Documentation (ภาษาไทย) · GitHub

MIT License

Related Packages

@preprio/toolkit

Prepr personalization, A/B testing and preview toolkit for React, Next.js, Nuxt,...

8,356 1
create-easy-cms

Add Easy CMS to a Nuxt or Next.js project

14,568 2
@easy-cms/nuxt

Nuxt module for Easy CMS

13,929 2
@inneropen/marvin-sdk

Official TypeScript SDK for Marvin CMS

19,254 0
@a83/orbiter-client

Framework-agnostic client for Orbiter CMS — SvelteKit, Next.js, Nuxt, Remix

917 17

Version History

Version Released License
1.4.2 MIT
1.4.1 MIT
1.4.0 MIT
1.3.0 MIT
1.2.0 MIT
Pre-releases (1)
Version Released License
1.0.0-rc.0 MIT