---
title: "Docs"
canonical: "https://www.qino.works/docs"
---

# Docs

## Guide

- [Guide](https://www.qino.works/docs/guide.md): Install qino, lay out a project, and run the CLI.
- [Philosophy](https://www.qino.works/docs/guide/philosophy.md): Why qino is a flat-file CMS and what it deliberately leaves out.
- [Installation](https://www.qino.works/docs/guide/installation.md): Add @qino/cms to a project and create a first collection.
- [Project structure](https://www.qino.works/docs/guide/project-structure.md): The qino/ folder, the entry file, and where definitions live.
- [Content folder](https://www.qino.works/docs/guide/content-folder.md): Allowed file types and how collections, trees, and items are laid out on disk.
- [Frontmatter](https://www.qino.works/docs/guide/frontmatter.md): How YAML frontmatter is parsed and which values become which types.
- [CLI](https://www.qino.works/docs/guide/cli.md): The qino command, what each subcommand checks, and how to wire it into a build.
- [Agent-ready content](https://www.qino.works/docs/guide/agent-ready-content.md): Serve AI agents Markdown at your pages' URLs, and build llms.txt from your content.
- [Next.js](https://www.qino.works/docs/guide/agent-ready-content/next-js.md): Send Markdown requests to a route handler with beforeFiles rewrites, so pages can't answer them first.
- [TanStack Start](https://www.qino.works/docs/guide/agent-ready-content/tanstack-start.md): Serve page Markdown from TanStack Start route handlers, with a global middleware for the Markdown 404.
- [Nitro on Vercel](https://www.qino.works/docs/guide/agent-ready-content/nitro-on-vercel.md): Negotiate Markdown for prerendered pages with header-conditioned Vercel routes in Nitro's config.
- [Cloud](https://www.qino.works/docs/guide/cloud.md): Configure how the qino cloud UI publishes, searches, sorts, hides fields, and saves uploads.

## Migration

- [Migration](https://www.qino.works/docs/migration.md): Move an existing content layer to qino, one tool at a time.
- [Contentlayer](https://www.qino.works/docs/migration/contentlayer.md): Replace contentlayer.config.ts, generated imports, and withContentlayer with qino definitions and getters.

## Concepts

- [Concepts](https://www.qino.works/docs/concepts.md): The mental model behind collections, trees, items, schemas, relations, views, and types.
- [Collections](https://www.qino.works/docs/concepts/collections.md): A flat folder of similarly shaped entries with one schema.
- [Trees](https://www.qino.works/docs/concepts/trees.md): Hierarchical, ordered content backed by nested folders and anchor files.
- [Items](https://www.qino.works/docs/concepts/items.md): A single well-known content file with its own role.
- [Schemas](https://www.qino.works/docs/concepts/schemas.md): How entries are validated and what qino adds or reserves.
- [Relations](https://www.qino.works/docs/concepts/relations.md): Typed references between entries and how they resolve.
- [Media](https://www.qino.works/docs/concepts/media.md): Declare media fields, read images ready for next/image, and check media files with qino check.
- [Views](https://www.qino.works/docs/concepts/views.md): Named shapes of the same content, with resolution, augmentation, filtering, and sorting.
- [Entry pipeline](https://www.qino.works/docs/concepts/pipeline.md): The order in which qino reads, validates, and shapes an entry, and where to transform data.
- [Types](https://www.qino.works/docs/concepts/types.md): Inferred entry types and generated slug types.

## API Reference

- [API Reference](https://www.qino.works/docs/api.md): Every public function and type in @qino/cms, with inputs, outputs, and errors.
- [initQino](https://www.qino.works/docs/api/init-qino.md): Initialize the instance that all definitions hang off.
- [defineCollection](https://www.qino.works/docs/api/collection.md): Define a flat directory of entries that share one schema.
- [getEntries](https://www.qino.works/docs/api/collection/get-entries.md): Read, validate, and shape every entry in a collection.
- [getPaginatedEntries](https://www.qino.works/docs/api/collection/get-paginated-entries.md): Read one page of a collection, with the totals to link the others.
- [getEntry](https://www.qino.works/docs/api/collection/get-entry.md): Read one entry by slug.
- [getAllSlugs](https://www.qino.works/docs/api/collection/get-all-slugs.md): List every slug without reading content.
- [getPageMarkdown](https://www.qino.works/docs/api/collection/get-page-markdown.md): Build the page Markdown of an entry page by slug, or of the index page without one.
- [getMarkdownUrl](https://www.qino.works/docs/api/collection/get-markdown-url.md): The Markdown URL of an entry page by slug, or of the index page without one.
- [defineTree](https://www.qino.works/docs/api/tree.md): Define hierarchical, ordered content backed by nested folders.
- [getTree](https://www.qino.works/docs/api/tree/get-tree.md): Walk the directory and return the nested node structure.
- [getFlatTree](https://www.qino.works/docs/api/tree/get-flat-tree.md): Return every node in depth-first reading order.
- [getEntries](https://www.qino.works/docs/api/tree/get-entries.md): Read every node's content in reading order.
- [getEntry](https://www.qino.works/docs/api/tree/get-entry.md): Read one node's content by slug.
- [getAncestorNodes](https://www.qino.works/docs/api/tree/get-ancestor-nodes.md): The nodes above a slug, from the root down.
- [getNextNode](https://www.qino.works/docs/api/tree/get-next-node.md): The node after a slug in reading order.
- [getPreviousNode](https://www.qino.works/docs/api/tree/get-previous-node.md): The node before a slug in reading order.
- [getPageMarkdown](https://www.qino.works/docs/api/tree/get-page-markdown.md): Build the page Markdown of a node's entry page by slug, or of the index page without one.
- [getMarkdownUrl](https://www.qino.works/docs/api/tree/get-markdown-url.md): The Markdown URL of a node's entry page by slug, or of the index page without one.
- [defineItem](https://www.qino.works/docs/api/item.md): Define a single content file with its own role.
- [getEntry](https://www.qino.works/docs/api/item/get-entry.md): Read the item's file.
- [getPageMarkdown](https://www.qino.works/docs/api/item/get-page-markdown.md): Build the page Markdown of the item's page.
- [getMarkdownUrl](https://www.qino.works/docs/api/item/get-markdown-url.md): The Markdown URL of the item's page.
- [view](https://www.qino.works/docs/api/view.md): The helper passed to the views factory, and every option it accepts.
- [negotiateMarkdown](https://www.qino.works/docs/api/negotiate-markdown.md): Answer a request with page Markdown when it asks for Markdown, or with null so the page renders.
- [Types](https://www.qino.works/docs/api/types.md): Every type exported from @qino/cms.
- [Infer](https://www.qino.works/docs/api/types/infer.md): Name the entry types a primitive produces, per view.
- [Collection, Tree, Item](https://www.qino.works/docs/api/types/primitives.md): The return types of defineCollection, defineTree, and defineItem.
- [Entry metadata](https://www.qino.works/docs/api/types/entry-meta.md): CollectionEntryMeta, TreeEntryMeta, ItemEntryMeta, and AnyEntry.
- [QinoImage](https://www.qino.works/docs/api/types/qino-image.md): An image field once read, shaped like Next's StaticImageData.
- [TreeNode](https://www.qino.works/docs/api/types/tree-node.md): The structural node returned by tree getters.
- [QinoSlugRegistry](https://www.qino.works/docs/api/types/slug-registry.md): The interface that generated slug types augment.
- [MarkdownStats](https://www.qino.works/docs/api/types/markdown-stats.md): Word and character counts of a Markdown or MDX body, added as `_stats` by `markdown.stats`.
- [MarkdownToc](https://www.qino.works/docs/api/types/markdown-toc.md): The headings of a Markdown or MDX body, with their anchor ids, added as `_toc` by `markdown.toc`.
- [PageMarkdownComponent](https://www.qino.works/docs/api/types/page-markdown-component.md): A function whose output replaces an MDX component in page Markdown, set in `markdownComponents`.
- [Errors](https://www.qino.works/docs/api/errors.md): Every error message qino can throw, what causes it, and how to fix it.

## Examples

- [Examples](https://www.qino.works/docs/examples.md): Reference apps that use qino with popular frameworks.
- [Next.js](https://www.qino.works/docs/examples/next-js.md): The reference Next.js app that exercises collections, trees, items, and relations.
