# Map card

The homelab as a tree: the internet, each network, the machines on it and what runs on each, every one with a dot for whether it's working. While the machines fit side by side they hang from their network on lines; where they don't, each network is a heading over a grid of them. A long list folds into "+12 containers", and hover or focus says what a node is and where it answers.

## Variations

1 sample, each at every size that draws differently, then in chat, in the light theme, and as a ring where it has a headline.

### map

## Fields

Every card also takes the [fields all cards share](/cards/#fields-all-cards-share).

| Field | Type | What it does |
|---|---|---|
| `type` | `'map'` |  |
| `nodes` | `MapNode[]` |  |
| `empty?` | `string` |  |

### MapNode

| Field | Type | What it does |
|---|---|---|
| `id` | `string` |  |
| `label` | `string` |  |
| `kind` | `MapKind` |  |
| `parent?` | `string` |  |
| `state?` | `ServiceState` |  |
| `detail?` | `string` |  |
| `address?` | `string` |  |
| `href?` | `string` |  |
| `icon?` | `string` |  |
| `from?` | `string` |  |
| `same?` | `string` |  |

from: the integration it came from (its key), so a map can be narrowed to what someone may see; a machine without one is only known by what's on it · same: another node's id, when this is that one seen twice (a check of a service, its container): drawn as part of it

## Used by

[Network](/integrations/network/)