Current status: expect alpha software and out of date docs.
Alinea is a modern content management system.
- Content is stored in flat files and committed to your repository
- Content is easily queryable through an in-memory SQLite database
- Content is fully typed
Get started
Install alinea in your project directory
npm install alineaInitialize alinea's config file
npx alinea initOpen the dashboard to have a look around
npx alinea serveStart configuring types and fields →
Examples
Configure
Configure alinea in alinea.config.tsx
const BlogPost = alinea.type('Blog post', {
title: alinea.text('Blog entry title'),
body: alinea.richText('Body text')
})Query
Retrieve content fully-typed and filter, order, limit and join as needed.
Select only the fields you need.
import {initPages} from '@alinea/content/pages'
const pages = initPages()
console.log(
await pages
.whereType('BlogPost')
.where(post => post.author.is('Me'))
.select(post => ({title: post.title}))
)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.
Deploy anywhere
Alinea supports custom backends that can be hosted as a simple Node.js process or on serverless runtimes.
How to contribute to this project
Have a question or an idea? Found a bug? Read how to contribute.