Skip to content

// docs › drawing and editing

Drawing and editing

This page covers the four kinds of thing on the canvas: services, containers, rails and shapes, then the icon packs. Steps marked With a mouse: or On a touch screen: apply only there.

Open the editor

On this page
  1. Services
  2. Containers
  3. Rails
  4. Shapes
  5. Icon packs

Services

A service is one box with an icon and a name, such as a Lambda function or a Kubernetes pod. Place one from the Services drawer (the Add sheet on a phone).

How a service card is laid out

  • The icon sits in a fixed badge centered in its own row at the top of the card (aligned left or right if you chose a side). The name goes under it, across the card's full width, and the type caption sits in a strip along the bottom. Nothing is centred up and down, so a long name can never push the icon out or the caption onto the border.
  • A name shows on at most two lines, broken between words (never inside a word such as HTTPRoute). A longer name is drawn one size smaller, then cut with "…". The full name is kept: hover over it, or open the inspector, to read it.
  • The caption is one short line: a leading Amazon, AWS, Azure or Google Cloud is dropped (the icon already says whose it is).

Card size

  • Every service card has a size class: S, M (the default) or L. The class sets the card's box (140 × 93, 180 × 120 or 240 × 160) and its icon, name and caption sizes together, so one size per diagram keeps rows lined up.
  • Choose it on the quick bar: its size button shows the card's letter. Open it and pick S, M or L under Card size. The inspector's Details tab has the same row. XL makes the box bigger and keeps the L look. Reset to default returns the card to M.
  • Select a service to see its size grip, on the top corner the icon leaves free (away from an outside label). Drag the grip and the service grows or shrinks about its centre, between 50% and 300% of its normal size. A readout shows the percentage. A box sized by hand keeps its class; a box too small for its class is drawn at the next class down, so nothing overflows.
  • The grip hides when several items are selected, when the service is locked, and while you are placing or drawing a rail.

Icon size and place

  • In Size and icon (or the inspector's Label tab), choose Icon size: Small, Medium (the default) or Large. It sets the badge to the S, M or L badge.
  • The Icon place pad moves the badge: a place on the right puts it in the top-right corner. With the label outside the card, the icon alone is placed in one of nine places in the box.

Label place

  • A service's name sits inside its card unless you move it. Open the quick bar's Aa (Words and label place) or the inspector's Label tab and pick a square on the Label place pad: one of eight places round the card, or the middle for inside.
  • Caption on this card hides or shows this card's caption; the status bar's Badges switch does it for every card.
  • Auto-layout and exports leave room for a label outside the card.

Label callouts

  • Select a service whose label is outside its card and drag the label anywhere: it becomes a callout, with a dotted leader from the card's nearest edge to the label. Each drag is one undo step.
  • Under the pad, choose the callout's Leader (Dotted or Solid), or press Put back. Dragging the label back onto its card, or picking a place on the pad, also puts it back.
  • Callouts appear in exports, in view links and in pictures made by the API.

Info boxes

  • An info box is a small table beside a service or container, showing fields such as instance type, CIDR or port.
  • Open the inspector's Data tab and press Add field. Give it a name and a value, then tick it to show it in the info box. Move fields up or down to set their order.
  • Under Info box, choose its Place (Below, Above, Left or Right), its Rows style (Plain, Dotted leaders, Striped, Grid or Header), whether to Show field names, and its Text size. The text size is a share of the card's name size (so an info box on an S card is smaller than one on an L card) and is never larger than the name.
  • To make a callout, select the service and drag its info box away. A line points from the service's nearest edge to the box (a box in its place shows a line too when its Callout line was chosen). Choose the Callout line (Dotted, Solid or None) in the Data tab, or press Put back to return the box to its place.
  • Info boxes appear in exports and in view links.

Containers

A container holds other items, such as a VPC, a subnet or a Kubernetes namespace. It has a name tab on its border.

  • Select a container by its name tab or its border.
  • A container is see-through: its inside never moves it, selected or not, so you can't pick up a VPC by accident.
  • Drag inside a container to do what you would on empty canvas: a finger pans, a mouse draws a selection box round the services there.
  • Move a container, with everything inside, by dragging its name tab or its border. The pointer shows a move cursor on the border.
  • On a touch screen: tap the container first, then drag its tab or border. Before the tap, a drag pans.
  • On a touch screen: tap empty space inside a container to select the innermost one; a small label names it. Tap the same spot again to step out to the container round it, and again to clear.
  • On a touch screen: press and hold inside nested containers to get a list of everything under your finger, and pick the one to select.
  • With a mouse: click inside the selected container to keep it selected; double click there to open the inspector on it.
  • Drag the squares round its border to resize it: four corners and the middle of each side, so you can still reach a side when the corners are off screen.
  • Double click (or double tap) the name tab to rename it.
  • The tab can sit in 17 places: pick one on the Tab place pad in the quick bar's Aa or the inspector's Label tab.

Attaching to a container

  • To put an item into a container round it, right-click it (on a touch screen or a phone, long-press it) and choose Attach to and the container's name.
  • Detach from takes it out of its container into the one round that; Detach to top takes it out of every container.

Layers

  • Where items overlap, right-click one (on a touch screen, long-press it) and choose Bring to front, Move forward, Move backward or Send to back.
  • On a phone the same four are the Layer row of the long-press sheet.
  • A shape's inspector has the same Layer choices. Items inside a container are ordered with their container.

Locking

  • Lock a finished container, or any item, so it stays put while you work round it. Choose Lock on the quick bar, or right-click the item and choose Lock. With several items selected the button reads, for example, Lock 3 items.
  • A locked item cannot be selected, moved or resized. Clicks, taps and selection boxes pass through it as if it were empty canvas, and its rails stay attached.
  • With a mouse: pointing at a locked item shows a padlock and a dashed outline. They never appear in exports.
  • To unlock, right-click the item (on a touch screen or a phone, long-press it) and choose Unlock.
  • Items inside a locked container can still be selected and moved. Each lock and unlock is one undo step.
  • To lock or unlock every container at once, choose Lock all containers (or Unlock all containers) in Settings ▸ Diagram, or on a phone in More ▸ This diagram. On a touch screen it is also in the menu you get by pressing and holding empty canvas. It is one undo step.

Rails

A rail connects two items.

Drawing a rail

  • With a mouse: point at a service to see its connection pads, then drag from a pad to a pad on another item. Dragging from a pad that already holds a rail moves that rail's end instead; hold Alt to draw a new rail from it.
  • On a touch screen: tap Rail (in the bottom toolbar on a phone, beside Select many on a tablet). Then tap the first item, tap one of its pads, and tap the second item (or one of its pads). That makes the rail. Tap Done or press Escape to leave Rail mode.
  • In Rail mode, tapping empty canvas drops what you have picked so far. Two fingers still move and zoom the view, so you can zoom in to reach a small pad.
  • In a Clean diagram (Settings ▸ Diagram ▸ Rails), a rail you draw from pad to pad keeps those two sides.
  • In a Clean diagram, a rail made by tapping an item's body takes the sides that face each other.

Changing the route

  • Select a rail to see a handle on each straight run and a dot on each corner.
  • On a touch screen, tap a rail to select it. A drag that starts on a rail always moves the canvas, never the rail, so panning past rails can't bend them.
  • With a mouse: drag a run's handle to move that run, or drag a corner dot to move the corner; click the dot to flip the step.
  • On a touch screen: tap a handle or corner dot first (it pulses), then drag it. Tap a pulsing corner dot again to flip the step. A drag on a handle or dot you haven't tapped moves the canvas.
  • On a touch screen, a still tap on a handle you have already tapped offers Straighten: the new route shows dotted, and Confirm applies it.
  • Reroute clears your hand-made route and lets archhy route the rail again.
  • Straighten makes every run of a bent rail level or plumb, as one undo step; on a rail that is already straight it says so.
  • Both are in the rail menu: right-click a rail with a mouse, or long-press a rail on a touch screen or a phone. Both are also in the rail inspector.
  • In a Clean diagram, dragging a run starts from the Clean route as drawn; one Undo puts the Clean route back.

Moving an end

  • With a mouse: drag the rail's end from its pad to a pad on another item.
  • On a touch screen: select the rail and tap Move start or Move end. Then tap a pad, or a service (the rail joins its facing side). The rail keeps its label and style. Tap the pill again, or empty canvas, to cancel.

Labels and line styles

  • Add a label with the quick bar's Aa (Label) or the inspector. Drag the label to slide it along the rail; it keeps its place when the rail is re-routed. Reset label position puts it back: it is in the rail menu (right-click a rail, or long-press a rail) and the inspector.
  • The quick bar's Line width and style sets the width and Solid, Dashed or Dotted. Arrowheads sets each end: None, Triangle, Open, Square or Circle.
  • The rail inspector's Colors tab has the same line style, and can animate the rail.

Shapes

Open Draw (in the left column, or the bottom toolbar on a phone) for Rectangle, Square, Sticky Note, Circle, Oval, Triangle, Pentagon, Hexagon, Star (5), Star (8), Markdown, Line, Arrow, Custom polygon, Image and PDF.

  • Press a shape to arm it, then click or tap the canvas. With a mouse you can also drag it onto the canvas. Press it again to disarm it.
  • Double click (or double tap) a shape to edit its text.
  • On a phone, a sticky note or markdown goes where you tap, with its text open for typing.
  • Markdown shapes format their text; see "Markdown guide".
  • Stacked text boxes move together. When text boxes (markdown boxes, or rectangles and squares with text) sit one under another in a column, up to 24 px apart, making the top one taller or shorter (by its resize squares, with a mouse or a finger, or its Height in the Inspector) moves the ones under it by the same amount and keeps their gaps. One Undo puts them all back. Nothing else moves, and a locked box stops the stack there.

Turning a shape

  • A selected shape has a turn knob above it. Drag it to turn the shape in 15° steps; the angle shows while you turn.
  • The inspector's Layout tab takes any angle. The quick bar's Turn: rotate or mirror offers Rotate 90°, Rotate −90° and Mirror.
  • Services, containers, PDFs and lines do not turn.

Lines and arrows

  • Arm Line or Arrow and drag from one end to the other. A click or tap draws a level line.
  • Ends snap to level, plumb, 30°, 45° and 60°, and to other shapes' corners. With a keyboard, Shift locks 0°, 45° or 90°, and Alt draws freely.
  • A selected line has a handle on each end: drag one to move that end. Choose each end's head with the quick bar's Arrowheads.

Custom polygons

  • Arm Custom polygon, then click or tap each corner. Close it on the first corner, or press Done, to finish. Escape throws it away.
  • Select it to edit: drag a corner to move it; press + on an edge (or double click the edge) to add a corner; pick a corner and press × to remove it. A polygon always keeps at least three corners.

Images and PDFs

  • Arm Image or PDF in Draw, or paste an image, then use the inspector's Upload… or Replace….
  • File ▸ Insert image… and File ▸ Insert PDF… pick a file and place it in one step. On a phone: More ▸ Insert image or PDF.
  • For an image, choose Fit (the whole image), Fill (crops to cover the box) or Stretch (fills the box, may distort). Reset box to image gives the box the image's proportions.
  • For a PDF, Extract pages… turns its pages into image shapes, laid out by Extract layout: Vertical, Horizontal or Grid.

Icon packs

The Services drawer's chips choose which icons it lists. One diagram can hold AWS, Azure, Google Cloud and Kubernetes items side by side.

Built in

  • AWS, Azure, Google Cloud and Kubernetes are built in for everyone, signed in or not.
  • AWS lists every service in AWS's July 2025 Architecture Icons: first the AWS items archhy has always had (EC2, Lambda, S3, VPC and the other containers), then about 300 more by AWS category (Application Integration, Artificial Intelligence, Analytics, Networking & Content Delivery, Security, Identity & Compliance and the rest), plus AWS groups such as AWS Account and Corporate Data Center under Containers. Search finds them by name or everyday short name: eventbridge, kafka, eks, alb, kms, tgw.
  • Kubernetes is grouped as Control plane, Workloads, Networking, Config & storage, Access and Containers (Cluster, Control plane, Node, Namespace, Container runtime). Search finds items by kubectl short name too.
  • Ask the AI for "a Kubernetes cluster with a control plane and two worker nodes" and it uses the same items.

Import an icon pack

  • Choose Import… in the chips, then Choose file and pick a zip of SVG icons. On a phone this opens the system file picker.
  • Check the summary (icons found, files skipped and why) and choose Import.
  • The vendors' official zips work: Azure architecture icons (learn.microsoft.com/en-us/azure/architecture/icons) and Google Cloud icons (cloud.google.com/icons). Any other zip of SVG files becomes a custom pack named after the file.
  • The zip is read in your browser and the icons are kept on this device only. Nothing is uploaded. A diagram stores the names of the icons it uses, never the images.
  • Every SVG is checked: a file with script, embedded documents or images, event handlers, or a reference to anything outside the file is skipped and counted.
  • Limits: a 30 MB zip, 3,000 icons, 300 kB per icon and 8 imported packs.
  • Signing out removes imported icons from this device. Import them again after signing back in.
  • You are responsible for having the right to use the files you import.

When a diagram uses icons you do not have

  • Items whose icon pack is not on this device are drawn with a generic icon and their own label. A notice above the canvas says how many and offers the import.
  • Nothing is lost: the items keep their names when you save. Exports say how many items had a generic icon.

Icon credits and trademarks

  • AWS icons: AWS Architecture Icons (aws.amazon.com/architecture/icons). AWS and the AWS service names and icons are trademarks of Amazon.com, Inc. or its affiliates.
  • Microsoft Azure icons: Azure architecture icons. Microsoft, Azure and the Azure service names and icons are trademarks of the Microsoft group of companies.
  • Google Cloud icons: Google Cloud icons. Google Cloud and the Google Cloud product names and icons are trademarks of Google LLC.
  • Kubernetes icons: the Kubernetes Icons Set (github.com/kubernetes/community/tree/master/icons), © The Kubernetes Authors, used under the Apache License 2.0; the licence and a notice ship beside the icons. Kubernetes is a registered trademark of The Linux Foundation; archhy does not use the Kubernetes logo.
  • archhy is not affiliated with or endorsed by Amazon, Microsoft, Google or The Linux Foundation. Vendor icons are drawn uncropped, unrotated and in their own proportions, and are used only to represent the vendors' own services.