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.

Creating Your First Metamodel

In this tutorial, you’ll build a custom metamodel — a “Farquind Org Map” — that defines element types for mapping people, teams, and systems at Farquind Yachts. By the end, you’ll have a working M2 with element types, relationship types, notation, and constraints, tested against real Farquind content.

Prerequisites: You’ve completed the core modelling tutorials (2.1–2.6) and are comfortable with the Explorer, Canvas, Palette, and Properties panel.

What you’ll build: An M2 metamodel with three element types (Person, Team, System), two relationship types (Belongs To, Manages), and a test M1 model mapping Farquind’s organisation.

A metamodel defines the building blocks available for modelling. Think of it as a language:

  • Element types define the kinds of things you can model (Person, Team, System)
  • Relationship types define how those things can connect (Belongs To, Manages)
  • Constraints control which connections are valid (a Person belongs to a Team, not the other way around)
  • Notation controls how each type looks on diagrams (shape, colours, icon)

Your metamodel lives at the M2 layer. Users create M1 instances of your types when they build models. For more on this, see Understanding the Four Layers.

  1. Click File > New M2 Metamodel… (or right-click empty space in the Explorer and select New M2 Metamodel…)
  2. Enter the name Farquind Org Map
  3. Leave Kind on Standard. A Common metamodel is for shared types, such as notes and decisions, whose relationships can join the types of any metamodel a model imports. See Common metamodels. The kind can’t be changed later
  4. Click Create

This creates the metamodel with the standard M2 package structure, and the Explorer shows it open at Element Types:

Farquind Org Map/
├── Element Types/
├── Relationship Types/
├── Enumerations/
└── Views/
├── Diagrams/
├── Catalogs/
└── Matrices/

Every element type lives in a layer: a package directly inside Element Types. The Palette shows one group per layer. Our org map has two natural groupings.

  1. Right-click on Element Types and select New Layer…
  2. Name it People & Teams
  3. Create another layer named Technology

An element type can only be created in a layer, and a relationship type only in Relationship Types.

Farquind Org Map/
├── Element Types/
│ ├── People & Teams/
│ └── Technology/
├── Relationship Types/
├── Enumerations/
└── Views/
  1. Right-click on People & Teams and select New Element Type…
  2. Rename it to Person
  3. In the Properties panel’s Appearance section, configure the notation:
    • Shape: Rounded
    • Fill: #81D4FA (light blue). Click the Light swatch and type the hex value; Light and Dark are linked, so the Dark side gets the same colour
    • Icon: use the user icon from Lucide — copy the SVG markup and paste it into the Icon field
  1. Right-click on People & Teams > New Element Type…
  2. Rename it to Team
  3. Configure notation:
    • Shape: Rectangle
    • Fill: #A5D6A7 (light green)
    • Icon: use the users icon from Lucide
  1. Right-click on Technology > New Element Type…
  2. Rename it to System
  3. Configure notation:
    • Shape: Rectangle
    • Fill: #CE93D8 (light purple)
    • Icon: use the monitor icon from Lucide

Leave Border, Text and Fold on Auto: the border is charcoal in light mode and off-white in dark, and the text picks black or white to suit the fill. Use the Preview toggle (☀ Light / ☾ Dark) to check each type in both themes.

Your element types now look like this:

Element Types/
├── People & Teams/
│ ├── Person (rounded, blue, user icon)
│ └── Team (rectangle, green, users icon)
└── Technology/
└── System (rectangle, purple, monitor icon)

This connects a Person to the Team they work in.

  1. Right-click on Relationship Types > New Relationship Type
  2. Rename it to Belongs To
  3. Configure notation in the Appearance section:
    • Line Pattern: Solid
    • Target Marker: Arrow (open)
    • Line colour: leave it on Auto — charcoal in light mode, off-white in dark
  4. Further down, set the direction labels:
    • Source → Target: belongs to
    • Target → Source: has member

This connects a Person to the System they are responsible for.

  1. Right-click on Relationship Types > New Relationship Type
  2. Rename it to Manages
  3. Configure notation in the Appearance section:
    • Line Pattern: Dashed
    • Target Marker: Arrow (open)
    • Line colour: leave it on Auto
  4. Further down, set the direction labels:
    • Source → Target: manages
    • Target → Source: managed by

Without constraints, any element can connect to any other. Let’s restrict the relationships to valid combinations.

  1. Select the Belongs To relationship type
  2. In the Properties panel, find the Constraints section
  3. Add a valid pair: Source: Person, Target: Team
  1. Select the Manages relationship type
  2. Add a valid pair: Source: Person, Target: System

Now users can only draw Belongs To from a Person to a Team, and Manages from a Person to a System. Any other combination is prevented.

  1. Click File > New M1 Model…
  2. Name it M1 Farquind Organisation
  3. Under Import M2 metamodels, tick Farquind Org Map
  4. Click Create Model

The Palette now shows your custom element types.

  1. Right-click on M1 Farquind Organisation > New › Diagram…

  2. Name it Executive & Systems

  3. From the Palette, drag elements to create:

    • Chase Martin (Person) — CEO
    • Theo Gibson (Person) — CTO
    • Maya Hawn (Person) — VP Engineering
    • Software & Digital (Team)
    • Engineering (Team)
    • FQ Vessels (System)
    • FQ Manufacturing (System)
  4. Draw relationships:

    • Chase Martin → Software & Digital (try to draw Belongs To — this won’t be allowed because Chase doesn’t belong to this team. Try connecting Theo Gibson instead — Belongs To works from Person to Team)
    • Theo Gibson Belongs To Software & Digital
    • Maya Hawn Belongs To Engineering
    • Theo Gibson Manages FQ Vessels
    • Maya Hawn Manages FQ Manufacturing
  5. Save with Ctrl+S / Cmd+S

Your metamodel is working. The constraints prevented invalid connections, the notation makes each type visually distinct, and the Farquind org structure is starting to take shape.

  • How to create an M2 metamodel package with the standard structure
  • How to organise element types into layers
  • How to define element types with shape, fill colour, and icon notation
  • How to define relationship types with line patterns, markers, and verbs
  • That every colour has a light and a dark value, and that Auto adapts to both themes
  • How to add pair-wise constraints to restrict valid connections
  • How to test the metamodel by creating an M1 model and diagram

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