Start free

Item types


An item type is a ready-made form for one kind of data item. A Product type might have a brand, sizes and a weight; an Event type a start date, a venue and a ticket link. Every item of that type gets the same fields, with the same keys and value formats, so editors fill in a proper form and your frontend always gets the data it expects.

Categories still organise your items. Types decide which fields they have. An item can have one type, or none.

Create an item type

  1. Go to Content -> Data Items and click Item types.
  2. Click New type (or, if the space has none yet, pick a starting point straight away).
  3. Choose how to start:
    • A ready-made type: Product, Blog post, Event, Changelog entry, Team member or FAQ. Each comes with suggested fields you can change before saving.
    • Blank type: add your own fields from scratch.
    • From existing items: pick items that should share a type, and the fields they already have become the suggestions.
  4. Give the type a Name (for example Product, Event or Recipe), and optionally a Description and an Icon.
  5. Under Fields, add each field with a Field name and What goes in it. Each field also gets an API name, the key your frontend reads, and an optional Hint for editors shown under the field.
  6. Click Create type.

A type can have up to 60 fields.

What a field can hold

What goes in it What editors see What your frontend receives
Short text A one-line text box The text
Long text A larger text box The text
Number A number field The number as text, e.g. 12.5
Yes / No A switch true or false, as text
Date A date picker The date as YYYY-MM-DD
Link A web address field A URL starting with http:// or https://
Email An email field The email address
Colour A colour picker A hex colour, e.g. #ff1b09
Icon An icon picker A Lucide icon name, e.g. ArrowRight
Pick from a list A list of the options you set (up to 50) The chosen option
Tags or a list Several short values (up to 50) A JSON array, e.g. ["Small","Medium"]
Several fields together A small group of fields, such as Width and Unit A JSON object, e.g. {"width":"30","unit":"cm"}

A group can hold short text, number, yes/no, date and link fields, up to 20 of them.

Use a type on an item

  1. Create or edit a data item.
  2. Under What is it?, pick the type. Its fields appear in the form. A general item means no type.
  3. Fill in the fields and save. Garchi checks each value against its field, for example that a date is a date and a link starts with http:// or https://.

You can also edit a typed item's fields from Add extra details (the item's metadata): change them and click Save under the type's details.

On a published item, changes to its type fields wait as unpublished changes until you publish, like any other edit. In the item list, the type filter shows only the items of one type.

Edit or delete a type

On the Item types page, each type shows its fields and how many items use it.

  • Click Edit to change its name, description, icon or fields.
  • Click the bin icon, then Delete type, to remove it. Items that used it keep their values and become untyped.

In your frontend

Type values are stored as the item's ordinary metadata, one entry per field, with the field's API name as its key. The content API serves them exactly like any other metadata, in the item's item_meta list of { key, value, type } entries, so you read them the same way:

const meta = Object.fromEntries((item.item_meta || []).map((entry) => [entry.key, entry.value]));

const brand = meta.brand;                        // "Acme"
const onSale = meta.on_sale === "true";          // true or false
const sizes = JSON.parse(meta.sizes || "[]");    // ["S", "M", "L"]

With AI agents

AI agents connected to your space through MCP can list item types and create new ones, and fill in an item's type fields as metadata. Changing or deleting a type is done in the dashboard.