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
Install alinea in your project directory
npm install alinea
Initialize alinea's config file
npx alinea init
Open the dashboard to have a look around
npx alinea serve
Start configuring types and fields →
Configure
726DConfigure alinea in alinea.config.tsx
const BlogPost = alinea.type('Blog post', {
title: alinea.text('Blog entry title'),
body: alinea.richText('Body text')
})
Retrieve content fully-typed and filter, order, limit and join as needed.
Select only the fields you need.
import {pages} from '@alinea/content/myWorkspace'
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.
Alinea supports custom backends that can be hosted as a simple Node.js process or on serverless runtimes.