Skip to content

nib.config.json

Optional project configuration file that controls navigation, templates, and device frames for your prototypes.

Schema

json
{
  "title": "My Prototype",
  "template": "clean",
  "device": "iPhone 16 Pro",
  "links": [
    {
      "from": "Home",
      "nodeId": "abc123",
      "to": "Settings",
      "transition": "slide-left"
    }
  ]
}

Top-Level Fields

FieldTypeRequiredDefaultDescription
titlestringNoCustom title for the prototype
templatestringNo"clean"Default template: "clean" or "presentation"
devicestringNoDefault device frame name (see nib devices)
linksNibLink[]No[]Navigation links between canvases via hotspots

Each entry in the links array defines a clickable hotspot that navigates between canvases.

FieldTypeRequiredDescription
fromstringYesSource canvas name
nodeIdstringYesNode ID within the source canvas that acts as the hotspot
tostringYesTarget canvas name
transitionstringNoTransition type: "slide-left", "slide-right", "fade", "none"
Full Multi-Link Example
json
{
  "title": "Mobile App Prototype",
  "template": "presentation",
  "device": "iPhone 16 Pro",
  "links": [
    {
      "from": "Splash",
      "nodeId": "splash-cta",
      "to": "Home",
      "transition": "fade"
    },
    {
      "from": "Home",
      "nodeId": "nav-settings",
      "to": "Settings",
      "transition": "slide-left"
    },
    {
      "from": "Settings",
      "nodeId": "back-btn",
      "to": "Home",
      "transition": "slide-right"
    },
    {
      "from": "Home",
      "nodeId": "nav-profile",
      "to": "Profile",
      "transition": "slide-left"
    },
    {
      "from": "Profile",
      "nodeId": "back-btn",
      "to": "Home",
      "transition": "slide-right"
    }
  ]
}

Released under the AGPL-3.0 License.