Skip to content

Farkitect is in early access. New features arrive most weeks, and these pages are updated with them. See What's New for the latest.

.farki File Format

The .farki format is Farkitect’s native interchange format — human-readable JSON for importing and exporting models.

{
"$format": "farki/0.17",
"scope": "package",
"metadata": { ... },
"package": { ... }
}
Field Required Description
$format Yes Format version identifier. Exports emit "farki/0.17"; imports also accept the older "farki/0.16", "farki/0.15", "farki/0.14", "farki/0.13", "farki/0.12", "farki/0.11", "farki/0.10", "farki/1.9", "farki/1.8", "farki/1.7", "farki/1.6", "farki/1.5", "farki/1.4", "farki/1.3", "farki/1.2" and "farki/1.1" (see Format versions)
scope Yes "package" (single package tree) or "project" (complete project)
metadata Yes File metadata including creation timestamp and content summary
package Package scope The root package (when scope = “package”)
packages Project scope Array of root packages (when scope = “project”)
mofCore No Project scope, since 0.13: MOF Core’s permanent ids by name, which Restore Project keeps
inclusions No Project scope, since 0.16: the project’s included metamodels
"metadata": {
"createdAt": "2026-03-15T00:00:00.000Z",
"summary": [
{
"name": "M2 ArchiMate 3.2",
"layer": "M2",
"elementCount": 61
}
]
}

Project-scope files may also include name, description, and sourceProject.

{
"name": "M1 Farquind Applications",
"layer": "M1",
"imports": ["M2 ArchiMate 3.2"],
"elements": [ ... ],
"diagrams": [ ... ],
"catalogs": [ ... ],
"boards": [ ... ],
"charts": [ ... ]
}
Field Required Description
name Yes Package name
notes No Markdown description
layer Yes "M3", "M2", or "M1"
packageKind M2 only "standard" or "common"
version No M2 root only: the metamodel’s version, e.g. "4.1". Shown in its Properties and in the record of each upgrade
imports No Array of M2 package names this package uses
elements No Array of child elements
diagrams No Array of diagrams
catalogs No Array of catalogs
boards No Array of board (Kanban) views
charts No Array of chart views
{
"name": "FQ Vessels",
"type": "Class",
"$id": "fq-vessels",
"classifier": "M2 ArchiMate 3.2:Application Component",
"notes": "Fleet telemetry and diagnostics platform.",
"propertyValues": {
"Lifecycle Status": "active"
}
}
{
"name": "Customer Systems",
"type": "Package",
"$id": "customer-systems",
"elements": [ ... ]
}
{
"name": "FQ Orders serves Fleet Dashboard",
"type": "Relationship",
"source": "fq-orders",
"target": "fleet-dashboard",
"$id": "fq-orders-serves-fleet-dashboard",
"classifier": "M2 ArchiMate 3.2:Serving"
}

A relationship may join an element of another model. In a project-scope file the end in the other model names that model’s top-level package:

{ "name": "CRM serves Sales", "type": "Relationship", "source": "crm", "target": "sales", "targetPackage": "M1 Business" }
Field Description
sourcePackage, targetPackage The top-level package holding source or target, when it isn’t the one the relationship is in
  • On import, such an end is joined once every package in the file is in; one whose package wasn’t imported (one with that name was already there) is left out, and the import says how many.
  • A package-scope file can’t carry them: they’re left out on export, and Farkitect says how many. Export the whole project to keep them. Replacing a model from a package file keeps its relationships with other models in the project (see How to modify a model with FarkiBot).
{
"name": "Entity",
"type": "Class",
"$id": "entity",
"nestedElements": [
{
"name": "customerId",
"type": "Class",
"$id": "customer-id",
"classifier": "M2 Logical Data Model:Attribute",
"propertyValues": {
"Data Type": "integer",
"Is Primary Key": "true"
}
}
]
}

A project that includes a metamodel from another project of its organisation holds a read-only copy of it, each element linked to the original’s by originUid. A project file lists such copies, so a backup, Clone Project or Create Project from File can include each again:

"inclusions": [
{ "package": "M2 ArchiMate 4", "origin": "k57…", "sourceProject": "jx7…", "version": 3, "offeredOn": true }
]
Field Description
package The copy’s top-level package, by name
origin The original’s top-level package, by permanent id
sourceProject The project it was included from: the original’s, or one offering its copy on
version The version it holds
offeredOn Whether projects below may include this copy in turn

On import, the copy is included again only when the project could include it now: the original still exists and is offered, it comes from a project of the same organisation that the person importing can view and that still offers it (else straight from the original), the person is an admin of the project, and the copy in the file still holds that version, apart from retired definitions. Otherwise it comes back as the project’s own metamodel, editable, and the import says why.

Every element has a $id — a unique, human-readable identifier within the file.

Rule Example
Unique within the file No two elements share a $id
Kebab-case fq-vessels, customer-segment
Used for cross-references Relationships reference source/target by $id
Stable Renaming in the UI doesn’t change $id

A diagram, catalog or board may also have a $id, which a view link uses to refer to it. Those are a separate set: a view’s $id must be unique among the file’s views, and may match an element’s.

Since farki/0.13, every element written by an export (the root package included) also carries a uid: its permanent id in Farkitect, 26 lowercase letters and digits. It is not a reference. Nothing in the file refers to an element by its uid; references always use $id.

{ "name": "Customer", "type": "Class", "$id": "customer", "uid": "0f08fza5n3g24hqrkbw0hsr51w", "classifier": "M2 C4 Model:Person" }
Import What happens to each uid
File › Import, Farketplace, Import as Copy Ignored: every element gets a new one
Restore Project Kept, unless another element already has it; MOF Core keeps the ids in the file’s mofCore list
Replace, and FarkiBot’s Modify M1 Each element that matches one in the model being replaced (by $id, else by type and name) keeps that element’s id; the others get new ones

A uid that isn’t well-formed is treated as missing. Leave uid out when you write a file by hand: Farkitect makes one.

Since farki/0.17, every view (diagram, catalog, board and chart) has a uid too, kept and made by the same rules. A Replace keeps a view’s id when the view is in the same element and has the same kind and name.

Since farki/0.17, a model’s elements and relationships also name their type and property types by permanent id, beside the readable names:

{ "name": "Customer", "type": "Class", "classifier": "M2 C4 Model:Person", "classifierUid": "0q3m…",
"propertyValues": { "Description": "Buys things" }, "propertyUids": { "Description": "1c7e…" } }

For a metamodel included from another project, these are the original’s ids, so they mean the same in every project; they are there for sharing a model between projects. Every other import ignores them, and a file without them is just as valid. Leave them out when you write a file by hand.

M1 elements reference their M2 type using Package Name:Type Name:

"classifier": "M2 Business Model Canvas:Customer Segment"

Flat object mapping property names to values:

"propertyValues": {
"Lifecycle Status": "active",
"Start Date": "2025-06-15",
"Is Required": "true"
}

Enumeration values use the machine value, not the display name.

Every value is a string, in its data type’s stored form:

Data type Stored form Example
Boolean true or false "true"
Integer, UnlimitedNatural digits, no separators (* for unlimited) "42"
Real plain decimal, no separators or exponent "1250.5"
Date YYYY-MM-DD "2027-06-02"
DateTime UTC, ISO 8601 ending in Z "2027-06-02T08:00:00Z"
String any text "Head office"

On import, a value written another way is stored in this form when its meaning is clear, as the app and the API would store it: "Yes" as true, "2026/11/20" as 2026-11-20, and a date and time with no time zone, such as "2027-06-02T09:00", as 2027-06-02T09:00:00.000Z, read as UTC. If the time was local, convert it to UTC in the file first. The import says how many values it converted. A value that can’t be read is kept as written, and the integrity check reports it, saying what’s wrong; Align Values… fixes it.

{
"name": "Application Overview",
"notation": "M2 ArchiMate 3.2",
"viewport": { "panX": 0, "panY": 0, "zoom": 1.0 },
"nodes": [
{ "element": "fq-orders", "x": 100, "y": 200, "width": 160, "height": 80 },
{ "element": "fleet-dashboard", "x": 400, "y": 200, "width": 160, "height": 80 }
],
"edges": [
{ "sourceElement": "fq-orders", "targetElement": "fleet-dashboard", "relationship": "fq-orders-serves-fleet-dashboard" }
]
}

An edge names the elements behind its two nodes (sourceElement, targetElement) and the relationship it draws (relationship), all by $id. Its lineStyle is the edge’s routing ("direct", "custom", "tree-vertical"…), not its dash pattern.

Diagram nodes and edges may also carry per-diagram label overrides, emitted only when set:

Field On Description
showLabel node / edge false hides the label on this diagram (default shown)
labelOffset node / edge { x, y } position of a dragged label, relative to its default anchor
labelSize node / edge { width, height } of a manually resized label

A diagram may show elements of other models. In a project-scope file such a node names the other model’s top-level package, and an edge names the packages of its ends and its relationship, when they aren’t the one the diagram is in:

{ "element": "zed", "package": "M1 IT", "x": 400, "y": 0, "width": 100, "height": 50 }
{ "sourceElement": "ann", "sourcePackage": "M1 Sales", "targetElement": "zed", "targetPackage": "M1 IT" }
Field On Description
package node The top-level package holding element, when it isn’t this one
sourcePackage, targetPackage, relationshipPackage edge The same, for the edge’s source, target and relationship
  • On import, such a diagram’s nodes and edges are created once every package in the file is in. A node whose package wasn’t imported (one with that name was already there) is left out, and the import says how many.
  • A package-scope file can’t carry them: they’re left out on export, and Farkitect says how many. Export the whole project to keep them.

A node or edge may override its type’s appearance on this diagram only (the Appearance section). Each field is emitted only when set; an absent field means “use the type’s value”.

Field On Description
fillColor node Fill colour — a colour pair
borderColor node Border colour — a colour pair
textColor node Text colour (name, compartments, icon, outside label) — a colour pair
borderWidth node Border width in pixels
borderStyle node "solid", "dashed", "dotted" or "none"
shadow node true or false
textHAlign / textVAlign node "left" / "center" / "right", "top" / "middle" / "bottom"
lineColor edge Line colour (and filled markers) — a colour pair
labelColor edge Every text on the edge: name, roles, multiplicities, property label — a colour pair
lineWidth edge Line width in pixels
linePattern edge Dash pattern: "solid", "dashed" or "dotted"
{ "element": "fq-vessels", "x": 100, "y": 200, "width": 160, "height": 80,
"fillColor": { "light": "#FFE0B2", "dark": "#B26A00" }, "shadow": false }

The diagram itself may carry showStereotypes, showEdgeLabels (the master switch for relationship labels), showCompartments, showPropertyNames and showEmptyProperties — all booleans, omitted when at their default (true, except showEdgeProperties).

edgeLabelContent says what a shown relationship label reads: "name" (the default, omitted) for the relationship’s name, or "verb" for the source-to-target verb of its type. It has no effect while showEdgeLabels is false.

A diagram may carry links, each a view link to another diagram, a catalog, a board or a chart view:

{
"name": "Start Here",
"links": [
{ "view": "application-overview", "x": 40, "y": 40, "width": 180, "height": 28 },
{ "view": "revenue-streams", "package": "M1 Finance", "x": 40, "y": 80, "width": 240, "height": 60,
"label": "2. Revenue", "border": true }
]
}
Field Description
view The $id of the view linked to. That view carries the same $id: { "$id": "application-overview", "name": "Application Overview", ... }
package The name of the top-level package holding the view, when it is not the one the link is in. Found only in project-scope files
x, y, width, height Position and size on the canvas
label Optional. Shown in place of the view’s name
border Optional. true draws the link as a bordered tile
  • An export gives a $id only to the views that a link points to
  • A package-scope file cannot carry a link to a view outside its package. Such links are left out on export, and Farkitect says how many
  • A project-scope file keeps every link
  • On import, a link whose view is not in the file is skipped with a warning

An M2 file must keep the standard structure:

  • Every element type is inside a layer: a package directly inside the package with packageRole: "elementTypes". A package there is a layer whether or not it says packageRole: "elementTypeLayer"
  • Every relationship type is directly inside the package with packageRole: "relationshipTypes"
  • No package is inside a layer or inside Relationship Types

A file that breaks this is refused, and the message names the type. A class given without a notation counts as an element type. An M2 file is imported at the top level only, never inside another package.

M2 element types include additional fields:

Field Description
notation Visual appearance (shape, colours, icon, compartments) — see Colour values and the notation reference
palette Palette configuration (usually {})
properties Array of Property definitions
constraints Relationship constraints (validPairs)
packageRole Sub-package role (elementTypes, relationshipTypes, etc.)
formerNames Names this type had in earlier versions, e.g. ["Contract"]. An upgrade treats a matching old type as renamed, so models keep using it. Also allowed on properties, enumerations and enumeration values
propertyOrder The order of the type’s property types, own and inherited, as $ids, e.g. ["street", "city", "postcode"]. Every list of them follows it; property types not listed come after, alphabetically. Omitted means alphabetical. Each type’s order is its own: a subtype does not take its supertype’s
retired { "since": "4.1", "reason": "…" } — kept only because existing models use it; hidden from the palette and pickers. Written by Farkitect during an upgrade; don’t add it yourself. Also appears on properties, enumerations and enumeration values

A new version of a metamodel upgrades most smoothly when it says what changed:

{
"name": "M2 ArchiMate 4",
"layer": "M2",
"packageKind": "standard",
"version": "4.1",
"elements": [
{
"name": "Physical Equipment",
"type": "Class",
"$id": "equipment",
"formerNames": ["Equipment"],
"notation": { "type": "element" }
}
]
}

Enumeration values take the same field: { "name": "All", "value": "and", "formerNames": ["And"] }. An enumeration value may only have name, value, formerNames and retired.

Every colour in a .farki file — in an element type’s or relationship type’s notation, and in a diagram’s appearance overrides — is a pair: one value for the light theme and one for the dark theme.

"fillColor": { "light": "#AFCFD8", "dark": "#AFCFD8" }
  • A missing side means Auto for that theme: the theme’s default, or a colour worked out from another (see How colours work in light and dark mode). An absent field means Auto in both themes.
  • Colours are CSS colours, normally #RRGGBB.
  • When importing, a plain string is also accepted and means the same colour in both themes: "fillColor": "#AFCFD8". Exports always write the pair.

The colour fields in notation:

Field On Description
fillColor element type Fill
borderColor element type Border
foldColor element type The folded corner (when foldCorner is true)
textColor element type Text, icon and outside label
lineColor relationship type Line and filled markers
labelColor relationship type Every text on the edge

A relationship type’s dash pattern is linePattern ("solid", "dashed", "dotted").

"notation": {
"type": "relationship",
"linePattern": "dashed",
"lineColor": { "light": "#16A34A", "dark": "#4ADE80" },
"targetMarker": { "shape": "arrow" }
}

Leave lineColor, borderColor, foldColor and textColor out unless the notation needs a specific colour: Auto gives charcoal lines and borders in light mode and off-white in dark, a fold shaded from the fill, and text that contrasts with the fill.

A board is a Kanban view of the instances of one element type, grouped into columns by an enumeration property.

{
"name": "Application Component Board",
"classifier": "M2 ArchiMate 3.2:Application Component",
"groupByProperty": "prop:lifecycle-status",
"columnConfig": {
"order": ["__none__", "active", "retiring"],
"hidden": [],
"limits": [{ "key": "active", "max": 8 }]
},
"cardConfig": { "properties": ["prop:owner"], "followTypeOrder": true },
"sortState": [{ "id": "name", "desc": false }],
"cardRanks": [{ "element": "fq-vessels", "rank": 1000 }],
"cardFormats": [{ "element": "fq-vessels", "fillColor": { "light": "#fde68a", "dark": "#78350f" }, "shadow": true }]
}
Field Description
classifier The element type whose instances become cards (Package:Type)
groupByProperty The enumeration property that defines the columns, as a portable prop:{$id} slug
columnConfig Column order / hidden / collapsed (by literal storage value; "__none__" is the “(No value)” column), limits, and width
cardConfig.properties Which property values appear on cards (prop:{$id} refs)
cardConfig.followTypeOrder true: card fields show in the type’s propertyOrder. Otherwise in the order of cardConfig.properties, the board’s own
sortState / filterState Card ordering and name filter
cardRanks Manual card order ({$id} refs) when the board uses Manual sort
cardFormats A card’s appearance on this board only: element ($id) with any of fillColor, borderColor, textColor (see Colour values), borderWidth, borderStyle (solid, dashed, dotted, none), shadow

Enum literals and properties are stored as portable slugs so a board survives round-tripping through .farki even if display names change. A board whose groupByProperty can’t be resolved on import is dropped with a warning.

A catalog, board or chart view may carry a scope: the part of the project it shows (How to limit a view to part of the project). Packages are named by their path of names from the top-level package:

"scope": {
"include": [["M1 Backlog"], ["M1 DocX"]],
"exclude": [["M1 Backlog", "Features", "Archive"]]
}
Field Description
include Packages shown, with everything below them
exclude Packages left out, with everything below them. The rule on a package or nearest above it decides, so a package can be included again inside one that is excluded
  • No scope: the view shows every model in the project, including ones added later. This is how a catalog or board in a file before 1.9 is read. For a chart view in a file before 0.10, see Chart views.
  • "scope": {}: a scope that names no package, so the view shows nothing.
  • Only model (M1) packages can be in a scope.
  • On import, the paths are matched once every package in the file is in. A path that matches nothing is left out, with a warning. With none matched, the view shows the model it is in.

A chart view is a chart FarkiBot drew, kept in a package. It holds a Vega-Lite specification that names Farkitect’s chart tables and holds no data: the chart is drawn from the model each time it is shown. Packages and elements may carry charts, as they carry boards.

{
"$id": "elements-by-type",
"name": "Elements by type",
"spec": {
"title": "Elements by type",
"data": { "name": "elements" },
"mark": "bar",
"encoding": {
"x": { "field": "type", "type": "nominal", "sort": "-y" },
"y": { "aggregate": "count", "type": "quantitative" }
}
},
"request": "Elements by type",
"note": "Most of the model is Value Propositions.",
"scope": { "include": [["M1 Farquind Business Model Canvas"]] }
}
Field Description
$id Present when a view link points at the chart view
name Required. Its name
notes Optional. Markdown notes
spec Required. The specification, as JSON. It must read only the chart tables, by name ({"data": {"name": "elements"}}), and must not use url, datasets, the href channel or the image mark. A file with a chart that breaks these rules is refused, naming the chart
request Optional. What FarkiBot was asked
note Optional. The note FarkiBot wrote with the chart
scope Optional. The part of the project it charts, as a view scope. No scope: every model in the project

Before 0.10 a chart view had dataFrom in place of scope: "model", the default, left out, for the model it is in, or "project" for every model. An older file is still read that way: no dataFrom becomes a scope of the model the chart view is in, and "project" becomes every model.

The tables and their columns are listed in the FarkiBot reference. A chart refers to columns by name, so nothing in it changes on import or copy; a chart whose columns are gone imports, and says it can’t be drawn when opened.

When a package contains attachments (images or files) and you export with attachments, Farkitect writes a .farki.zip archive instead of a plain .farki:

mypackage.farki.zip
├── model.farki # the JSON model (as above)
└── files/
└── <element-$id>/<fileName> # one folder per attachment-carrying element

Inside model.farki, each attachment-carrying element gains an attachmentFile descriptor (M1 only):

"attachmentFile": {
"fileName": "architecture.xlsx",
"mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"size": 245760
}

On import, a .farki.zip is auto-detected and its payloads are restored to the matching elements. A plain .farki (the “Model only” export) omits the payloads; the descriptor is stripped and the model still loads, just without the files.

Version What changed
farki/0.17 A uid on every view (diagram, catalog, board, chart), and classifierUid and propertyUids on a model’s elements and relationships (see Permanent ids). Nothing else changed, so a 0.16 file is also a valid 0.17 file
farki/0.16 A project file’s inclusions: its included metamodels, so a backup, Clone or Create Project from File includes them again (see Included metamodels). Nothing else changed, so a 0.15 file is also a valid 0.16 file
farki/0.15 A relationship’s sourcePackage and targetPackage: in a project file, an end in another model names that model’s top-level package (see Relationship). Nothing else changed, so a 0.14 file is also a valid 0.15 file
farki/0.14 A model’s importVersions: for each metamodel in imports that its project included from another project, the version it was built for, { "version": 2, "label": "2.0" }. imports stays a list of names. Nothing else changed, so a 0.13 file is also a valid 0.14 file
farki/0.13 Every element may carry its permanent id, uid, and a project file lists MOF Core’s as mofCore (see Permanent ids). Nothing else changed, so a 0.12 file is also a valid 0.13 file
farki/0.12 A diagram’s nodes and edges may name another model’s top-level package (package, sourcePackage, targetPackage, relationshipPackage), so a diagram showing several models survives a project export. Nothing else changed, so a 0.11 file is also a valid 0.12 file
farki/0.11 A package’s or element’s order: its arranged contents, by $id (views as "view:<$id>"). Nothing else changed, so a 0.10 file is also a valid 0.11 file
farki/0.10 A chart view’s scope, in place of dataFrom. A chart view with no scope now shows every model; in older files no dataFrom meant the model it is in, and they are still read that way. From here the numbers are 0.x (0.10, then 0.11 and on) until the format leaves 0.x, so 0.10 is newer than 1.9. A number is never used twice: 1.1 to 1.9 stay the older formats, so leaving 0.x will go to 2.0
farki/1.9 A catalog’s and board’s scope. Nothing else changed, so a 1.8 file is also a valid 1.9 file. An older Farkitect would ignore the scope and show every model
farki/1.8 Chart views: charts on packages and elements, and chartCount in the metadata summary. Nothing else changed, so a 1.7 file is also a valid 1.8 file. An older Farkitect would ignore the chart views
farki/1.7 A String property’s "format": "richtext": its values are Markdown, as notes are. Nothing else changed, so a 1.6 file is also a valid 1.7 file. An older Farkitect would treat such a property as plain text
farki/1.6 A type’s propertyOrder; a board’s cardConfig.followTypeOrder and cardFormats. Nothing else changed, so a 1.5 file is also a valid 1.6 file. Packages no longer carry isReadOnly: editing follows your role in the project, so an older file’s isReadOnly is ignored
farki/1.5 A diagram’s edgeLabelContent: relationship labels can show the type’s verb in place of the relationship’s name. Nothing else changed, so a 1.4 file is also a valid 1.5 file
farki/1.4 View links: a diagram’s links, and an optional $id on a diagram, catalog or board for a link to refer to. Nothing else changed, so a 1.3 file is also a valid 1.4 file
farki/1.3 Colours became light/dark pairs. Renamed: element-type color → fillColor; relationship-type color → lineColor and lineStyle → linePattern; diagram edge color → lineColor. New: textColor, labelColor, and the node and edge appearance overrides textColor, borderStyle, shadow, labelColor, linePattern
farki/1.2 Notation as composable primitives: a silhouette shape plus fillMode, borderStyle, foldCorner and others; relationship markers as { "shape", "fill" }
farki/1.1 Legacy notation: special shapes such as note, text and boundary, and marker strings such as filledDiamond

Older files import without changes on your part — Farkitect converts them on the way in:

  • Every single colour becomes the same colour in both themes, under its new name.
  • A line or border colour that is a neutral grey (for example the old default #DDDDDD) becomes Auto, so it follows the theme: charcoal in light mode, off-white in dark.
  • In the built-in metamodels, the few line colours that carry meaning (for example M2 Common’s green Trace, Realization, Annotation and Dependency lines) get a curated light and dark pair.
  • Every other colour is kept as it is.

Farkitect

Model anything.

“Welcome back — your diagrams have been plotting without you.”


Release 385 · 27 Nov 2026

Top packages: Inclusion and Sharing; Create New Version; Delete from Project

Release
385
Released
27 Nov 2026, 21:29 UTC
Built
27 Nov 2026, 21:30 UTC
Environment
Production
Surface
Docs
Commit
a5968f3
Branch
main