Documentation
Guides, concepts, and the full API of qino, the type-safe content pipeline for Markdown, MDX, and JSON.
Guide
Install qino, lay out a project, and run the CLI.
- PhilosophyWhy qino is a flat-file CMS and what it deliberately leaves out.
- InstallationAdd @qino/cms to a project and create a first collection.
- Project structureThe qino/ folder, the entry file, and where definitions live.
- Content folderAllowed file types and how collections, trees, and items are laid out on disk.
- FrontmatterHow YAML frontmatter is parsed and which values become which types.
- CLIThe qino command, what each subcommand checks, and how to wire it into a build.
- Agent-ready contentServe AI agents Markdown at your pages' URLs, and build llms.txt from your content.
- CloudConfigure how the qino cloud UI publishes, searches, sorts, hides fields, and saves uploads.
Migration
Move an existing content layer to qino, one tool at a time.
Concepts
The mental model behind collections, trees, items, schemas, relations, views, and types.
- CollectionsA flat folder of similarly shaped entries with one schema.
- TreesHierarchical, ordered content backed by nested folders and anchor files.
- ItemsA single well-known content file with its own role.
- SchemasHow entries are validated and what qino adds or reserves.
- RelationsTyped references between entries and how they resolve.
- MediaDeclare media fields, read images ready for next/image, and check media files with qino check.
- ViewsNamed shapes of the same content, with resolution, augmentation, filtering, and sorting.
- Entry pipelineThe order in which qino reads, validates, and shapes an entry, and where to transform data.
- TypesInferred entry types and generated slug types.
API Reference
Every public function and type in @qino/cms, with inputs, outputs, and errors.
- initQinoInitialize the instance that all definitions hang off.
- defineCollectionDefine a flat directory of entries that share one schema.
- defineTreeDefine hierarchical, ordered content backed by nested folders.
- defineItemDefine a single content file with its own role.
- viewThe helper passed to the views factory, and every option it accepts.
- negotiateMarkdownAnswer a request with page Markdown when it asks for Markdown, or with null so the page renders.
- TypesEvery type exported from @qino/cms.
- ErrorsEvery error message qino can throw, what causes it, and how to fix it.
Examples
Reference apps that use qino with popular frameworks.
What's new
0.25
- Removes the
rawfield from Markdown entries. #367 - Adds page Markdown to trees and items, as collections have it. #367
- Adds page Markdown to collections: a standalone Markdown version of each entry page, to serve to AI agents. #367
- Adds
cli.build.llmsTxt, which makesqino buildwritellms.txtat the root ofmediaFolder, from a template you write. #367 - Adds
llms-full.txtto whatqino buildwrites withcli.build.llmsTxton, at the root ofmediaFolder, so an agent can read every entry page in one request. #367 - Adds page Markdown for index pages. #367
- Adds
markdownComponentsto thepagesof collections and trees: functions, by component name, whose output replaces an MDX component in page Markdown. #367 - Adds
negotiateMarkdown, which answers agents that ask for Markdown from any route or middleware that works with WebRequestandResponseobjects, such as TanStack Start handlers and Next.js route handlers. #367 - Fixes reading entries with image fields on serverless hosts, which ship neither
mediaFoldernor sharp's native binary:qino buildnow records each image in.qino/images.jsoninside the content folder, and a read falls back to it when the file is missing or sharp can't load #381 - Fixes
qino build,qino checkandqino lintloading test files inqino/, which made them fail on a test that imports its runner, such asvitest. #376 - Fixes
_statscounting{#id}heading ids as words. #367 - Fixes
qino checkandqino buildfailing with "Could not parse expression with acorn" on an.mdxfile with a{#id}heading id, while scanning for missing media. #373
- Removes the
0.24
- Adds
incrementalEntriestoinitQino, for long-running dev servers. #345 - Changes
qino buildto checkqino/_generated/config.jsoninstead of rewriting it when theCIenvironment variable is set, as on GitHub Actions and Vercel. #353 - Improves the first listing call under
next devfor collections and trees withmarkdown.statsormarkdown.toc. #349
- Adds
0.23.1