@adenta/cms
v1.1.1-0
Published
A blank template to get started with Payload 3.0
Downloads
7
Readme
@adenta/cms
⚠️ WARNING: This package is currently in active development and is NOT stable for production use. Breaking changes may occur without notice.
Content Management System built with Payload CMS and Supabase. Provides a modern, headless CMS with PostgreSQL database, authentication, and admin interface.
🚧 Status: Work in Progress
This package is under active development. The API is not stable and may change significantly between versions. Use at your own risk.
The intended solution should feel like below
📦 Installation
npm install @adenta/cms
# or
yarn add @adenta/cms
# or
pnpm add @adenta/cms🔧 Requirements
- Node.js >= 18.20.2
- PostgreSQL or Supabase
- pnpm >= 9.0.0
📖 Quick Start
import { createCMS } from '@adenta/cms'
const cms = createCMS({
database: {
type: 'postgres',
url: process.env.DATABASE_URL
},
collections: [
{
name: 'posts',
fields: [
{
name: 'title',
type: 'text',
required: true
},
{
name: 'content',
type: 'richText'
}
]
}
]
})
export default cms🛠️ Features
Database Adapters
// PostgreSQL
const postgresConfig = {
type: 'postgres',
url: process.env.DATABASE_URL
}
// Supabase
const supabaseConfig = {
type: 'supabase',
url: process.env.SUPABASE_URL,
key: process.env.SUPABASE_ANON_KEY
}Collections
import { CollectionConfig } from '@adenta/cms'
const Posts: CollectionConfig = {
name: 'posts',
fields: [
{
name: 'title',
type: 'text',
required: true
},
{
name: 'slug',
type: 'text',
unique: true
},
{
name: 'content',
type: 'richText'
},
{
name: 'featuredImage',
type: 'upload',
relationTo: 'media'
}
]
}Authentication
import { auth } from '@adenta/cms'
// Login
const user = await auth.login({
email: '[email protected]',
password: 'password'
})
// Register
const newUser = await auth.register({
email: '[email protected]',
password: 'password',
name: 'John Doe'
})🚀 Development
# Start development server
pnpm start
# Build for production
pnpm build
# Run tests
pnpm test📚 Documentation
For detailed documentation, visit docs.adenta.dev
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide before submitting pull requests.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Related Packages
@adenta/core- Core utilities and shared functionality@adenta/cli- Command-line interface tools@adenta/ui- React UI components
📊 Version History
See CHANGELOG.md for a complete list of changes.
Note: This package is part of the Adenta ecosystem. For more information, visit adenta.dev.
