alinea
v1.0.11
Alinea is a modern content management system.
Install Alinea in your project directory
npm install alineaInitialize Alinea's config file
npx alinea init --nextOpen the dashboard to have a look around
npx alinea devStart configuring types and fields →
Configure Alinea in cms.tsx
import {Config, Field} from 'alinea'
const BlogPost = Config.document('Blog post', {
fields: {
title: Field.text('Blog entry title'),
body: Field.richText('Body text')
}
})
const Blog = Config.document('Blog', {
contains: [BlogPost]
})Type options and fields →
Retrieve content fully-typed and filter, order, limit as needed.
Select only the fields you need.
import {Query} from 'alinea'
console.log(
await cms.get({
type: Blog,
select: {
title: Blog.title,
posts: Query.children({
type: BlogPost,
select: {
title: BlogPost.title
}
})
}
})
)See the full api →
Content is available during static site generation and when server side querying.
Content is bundled with your code and can be queried with zero network overhead.
How alinea bundles content →
Alinea supports custom backends that can be hosted as a simple Node.js process or on serverless runtimes.
Setup your backend →
Have a question or an idea? Found a bug? Read how to contribute.