nextjs-cms

API Reference

Complete reference for configuration, the CLI, and the options shared by every field.

Package entry points

What developers building a CMS typically import:

ImportExports
nextjs-cms/core/configdefineConfig, config types
nextjs-cms/core/sectionssimpleSection, hasItemsSection, categorySection, hook types
nextjs-cms/core/fieldsAll field helpers, fieldGroup, and, or
nextjs-cms/core/typesConditionalRule, ConditionalRulesConfig, and other shared types
nextjs-cms/translations/base/enThe English admin dictionary
nextjs-cms/plugins/definedefinePlugin (for plugin authors)
nextjs-cms/plugins/clientusePluginTRPC (for plugin authors)
nextjs-cms/plugins/derivederivePluginName (for plugin authors)
nextjs-cms/api/pluginrouter, publicProcedure, privateProcedure, pluginProcedure (for plugin authors)
nextjs-cms/db/clientdb, the CMS's Drizzle client (for hooks and plugins)

The package exports more entry points (api/server, auth, core/submit, core/factories, ...). Those are used by the admin application itself and are documented in the Contributing docs.