Archyno

Export demo

Export demo: a real model, a real file

Two pre-built models and the 8 formats the editor exports. 7 of them produce a real file in this browser, with no account and nothing to install, and every one tells you what it drops before it runs. To build your own model, open the editor with the link below. You need an account only to keep it in a workspace.

See the editor, no signup

A UML class model: an Order composed of Payments, with Card and BankTransfer specialising Payment.

11..*Order- id: UUID- placedAt: Instant+ total(): MoneyPayment- amount: Money- status: Status+ authorize(): AuthResult+ refund(amount: Money)Card- last4: StringBankTransfer- iban: String

Both diagrams are views onto a model, not drawings. That separation is what lets the exports below carry meaning rather than shapes.

Choose a format

What this export drops

Lossless. This is the model itself, not a translation of it.

Preview

{
  "id": "uml-payments",
  "name": "Payments",
  "notation": "uml",
  "summary": "A UML class model: an Order composed of Payments, with Card and BankTransfer specialising Payment.",
  "elements": [
    {
      "id": "order",
      "name": "Order",
      "kind": "class",
      "attributes": [
        {
          "name": "id",
          "type": "UUID",
          "visibility": "private"
        },
        {
          "name": "placedAt",
          "type": "Instant",
          "visibility": "private"
        }
      ],
      "operations": [
        {
          "name": "total",
          "returns": "Money",
          "visibility": "public"
        }
      ]
    },
    {
      "id": "payment",
      "name": "Payment",
      "kind": "class",
      "attributes": [
        {
          "name": "amount",
          "type": "Money",
          "visibility": "private"
        },
        {
          "name": "status",
          "type": "Status",
          "visibility": "private"
        }
      ],
      "operations": [
        {
          "name": "authorize",
          "returns": "AuthResult",
          "visibility": "public"
        },
        {
          "name": "refund",
          "parameters": [
            {
              "name": "amount",
              "type": "Money"
            }
          ],
          "visibility": "public"
        }
      ]
    },
    {
      "id": "card",
      "name": "Card",
      "kind": "class",
      "attributes": [
        {
          "name": "last4",
          "type": "String",
          "visibility": "private"
        }
      ]
    },
    {
      "id": "transfer",
      "name": "BankTransfer",
      "kind": "class",
      "attributes": [
        {
          "name": "iban",
          "type": "String",
          "visibility": "private"
        }
      ]
    }
  ],
  "relationships": [
    {
      "id": "order-payment",
      "from": "order",
      "to": "payment",
      "kind": "composition",
      "sourceMultiplicity": "1",
      "targetMultiplicity": "1..*"
    },
    {
      "id": "card-payment",
      "from": "card",
      "to": "payment",
      "kind": "generalization"
    },
    {
      "id": "transfer-payment",
      "from": "transfer",
      "to": "payment",
      "kind": "generalization"
    }
  ],
  "view": {
    "width": 940,
    "height": 340
  },
  "layout": {
    "order": {
      "x": 40,
      "y": 118,
      "w": 230,
      "h": 108
    },
    "payment": {
      "x": 370,
      "y": 96,
      "w": 250,
      "h": 152
    },
    "card": {
      "x": 720,
      "y": 40,
      "w": 190,
      "h": 66
    },
    "transfer": {
      "x": 720,
      "y": 238,
      "w": 190,
      "h": 66
    }
  }
}

What differs from the editor

PDF is written by the editor, as one page around the picture of your diagram; this demo does not write it. Code is the other way round: the demo writes TypeScript from the class model, but the editor cannot export code yet. Code generation is planned.