Features

Sharing & export

Plain JSON, a self-contained link, or an image.

FeatureDetails
AutosaveWritten to local storage shortly after you stop editing; the toolbar shows Saved or Saving…
Export JSONDownloads the canonical format — diffable, scriptable, version-controllable
Import JSONValidated on load; unusable parts are dropped rather than breaking the canvas
Share linkCompresses the whole diagram into the URL — no server involved
Export PNGRenders the canvas at 2× on a white background

The file format

One object with a name, a list of nodes and a list of edges. Anything Nautilus does not recognise is dropped on import, so hand-written and script-generated files are safe to load.

{
  "name": "Payments platform",
  "nodes": [
    {
      "id": "api",
      "type": "nautilusNode",
      "position": { "x": 120, "y": 40 },
      "data": {
        "label": "Payments API",
        "icon": "api_server",
        "color": "green",
        "description": "Authorises and captures charges",
        "sim": {
          "capacity": 4000,
          "replicas": 6,
          "latencyMs": 25,
          "errorRate": 0.001
        }
      }
    },
    {
      "id": "sweeper",
      "type": "nautilusNode",
      "position": { "x": 420, "y": 40 },
      "data": {
        "label": "Settlement Job",
        "icon": "cron",
        "sim": {
          "capacity": 500,
          "schedule": { "kind": "cron", "everyMs": 300000, "batch": 200 }
        }
      }
    }
  ],
  "edges": [
    {
      "id": "e1",
      "source": "api",
      "target": "db",
      "type": "deletableEdge",
      "data": {
        "flow": { "op": "QUERY", "path": "charges", "timeoutMs": 250 },
        "sim": { "share": 0.15, "fanout": 1 }
      }
    }
  ],
  "sim": {
    "requestsPerSecond": 10000,
    "timeoutMs": 500,
    "payloadKb": 8,
    "targetUtilization": 0.7,
    "burstFactor": 2
  }
}

Node fields

FieldMeaning
idUnique within the file. Duplicates are dropped on import.
typenautilusNode
positionCanvas coordinates, { x, y }.
data.labelName shown on the node.
data.iconKey from the icon reference.
data.colordefault | blue | green | red | yellow | purple | orange
data.descriptionFree text shown on the node and read by the AI assistant.
data.simLoad model — see below. Optional.

Simulation fields

FieldWhereDefault
sim.capacitynode — requests/second one replica servesunbounded
sim.replicasnode — identical instances1
sim.latencyMsnode — service time before queueing20
sim.errorRatenode — baseline failure rate, 0–10
sim.downnode — failure injection; the node serves nothingabsent
sim.costPerHournode — price of one replica per hour0
sim.hitRatenode — share answered here, not forwarded, 0–10
sim.queuenode — buffers past capacity instead of droppingauto by icon
sim.schedule.kindnode — cron (once per interval) or worker (every replica loops)absent
sim.schedule.everyMsnode — interval between firings, 1 ms to one weekrequired with kind
sim.schedule.batchnode — jobs started per firing1
sim.shareedge — fraction of requests taking this edge, 0–11
sim.fanoutedge — calls made per request1
sim.asyncedge — legacy hand-off flag; flow.op EVENT says the same thingauto into queues

These survive export, import, share links and autosave, so a diagram carries its capacity model with it. Missing fields fall back to the defaults above rather than to zero.

The top-level sim object holds the playground parameters — offered load, timeout budget, payload size, target utilisation and burst factor — so a shared link reproduces the exact scenario instead of resetting to the defaults.

Edge fields

FieldMeaning
idUnique within the file.
source / targetNode ids. Edges pointing at a missing node are dropped on import.
typedeletableEdge
labelOptional text; shown on the badge when no endpoint is set.
animatedOptional boolean, purely visual.
data.flowWhat the connection does — see below.
data.simRouting model — share and fanout.

Request fields

FieldMeaningDefault
flow.opGET, POST, PUT, PATCH, DELETE, CALL, READ, WRITE, QUERY, PUBLISH, EVENT, CONSUME or POLLinferred
flow.pathEndpoint, topic, table or key. Descriptive only — never calledempty
flow.orderPosition among the source's outgoing calls; lower runs firstas drawn
flow.intervalMsPOLL only: time between polls, per replica of the source5000
flow.timeoutMsHow long the caller waits; flagged when the p95 is slowernone

Imports are limited to 2,000 nodes and 4,000 connections, text fields to 2,000 characters, and every number has a ceiling — so a hand-written or generated file cannot ask for infinite load.

Share links are unlisted, not private
The diagram is encoded in the URL itself. Anyone holding the link — or reading a referrer header or a proxy log — has the diagram. Don't share internal architecture this way; export a file instead.