Skip to Content
Introduction

Welcome to Foir

Foir is a headless content and data platform. Define your data models, manage content through the admin dashboard, and deliver it to your applications via a GraphQL API. Personalize content for different audiences, automate workflows with operations and hooks, and extend the platform with the config system and editor SDK.

What Can You Do?

Define Any Data Structure

Build the data types you need with Models. Use field types like text, images, rich text, references, and more. Create reusable components with inline schemas.

Store and Query Data

Use Records for any kind of data — content pages, blog posts, form submissions, bookings, configurations, product catalogs. Full CRUD access via the GraphQL API and CLI.

Personalize Content

Show different content to different visitors with Variants. Target by device, market, language, or customer segments using targeting rules.

Automate Workflows

Register HTTP endpoints as Operations, trigger them with Lifecycle Hooks when data changes, or run them on a Schedule.

Extend with Code

Define your models, operations, hooks, and editor placements in a foir.config.ts file and push them to the platform with a single command. Build custom editor UIs with the Editor SDK.

Install Apps

Plug in third-party or first-party apps — Shopify, Stripe, redirects, translation, image transforms — by manifest URL. Apps contribute operations, hooks, UI placements, and credentials with one install action; ship one yourself with the Building an App guide.

Find content by meaning with semantic search. Foir generates vector embeddings for your content, enabling natural language search across your project.

Key Features

FeatureDescription
Models & RecordsFlexible data modeling with typed fields
Version HistoryTrack changes and roll back when needed
Publishing WorkflowDraft, preview, schedule, and publish
VariantsServe personalized content based on context
Media LibraryUpload and transform images, video, and files
GraphQL APIQuery exactly the data you need
Config SystemDefine your project as code
Editor SDKBuild custom editor iframes
Operations & HooksAutomate with HTTP endpoints and event triggers (sync + async-callback modes)
AppsInstall pluggable units by manifest URL — credentials, operations, placements
AI & SearchSemantic search and vector embeddings
LocalizationMulti-language support with fallback chains
Customer AuthBuilt-in authentication for your end users

Getting Started

  1. Create an API Key — Connect your application to Foir
  2. Install the CLI — Get the platform CLI with npm install -g @eide/foir-cli
  3. Fetch Content — Query the GraphQL API from your frontend
  4. Define as Code — Set up foir.config.ts for your project

Need Help?

  • FAQ — Common questions answered
  • Guides — Step-by-step tutorials
Last updated on