Architecture Icon Packs
ArchRepo includes five built-in icon packs — covering AWS, Azure, Microsoft 365, common open-source technologies, and generic architecture concepts. You can use these icons in both architecture-beta and flowchart diagrams to represent services and components without any extra setup.
Syntax
The syntax for referencing icons differs between diagram types.
architecture-beta
Declare a service or group with the icon reference inside parentheses:
architecture-beta
service id(packname-iconname)[Label]
group id(packname-iconname)[Group Label]The icon reference follows the pattern packname-iconname — for example aws-lambda, azure-sql, or arch-user.
flowchart
Use the expanded node syntax with @{ } to attach an icon to a node:
flowchart LR
id@{ icon: "packname-iconname", label: "Label", form: "square" }icon— the icon reference in the format"packname-iconname"(quoted string)label— the text displayed beneath the iconform— shape of the node;"square"works well for icon nodes
Example Diagrams
Cloud Integration
This diagram shows an end-user calling an Azure API Management gateway, which routes requests to an AWS S3 bucket and an Azure SQL database. A Lambda function handles backend processing inside the AWS region.

architecture-beta
group aws_region(arch-cloud)[AWS Region]
group azure_tenant(azure-logo)[Azure Tenant]
service fn(aws-lambda)[Lambda] in aws_region
service s3(aws-s3)[S3] in aws_region
service apim(azure-api-management)[API Management] in azure_tenant
service db(azure-sql)[SQL Database] in azure_tenant
service usr(arch-user)[End User]
usr:R --> L:apim
apim:R --> L:s3
apim:B --> T:dbTechnology Stack
This diagram shows a client calling through an Nginx gateway to a REST API, which publishes events to Kafka and persists data to MongoDB.

architecture-beta
service gw(tech-nginx)[Nginx Gateway]
service api(arch-api)[REST API]
service broker(tech-kafka)[Kafka]
service db(tech-mongodb)[MongoDB]
service client(arch-user)[Client]
client:R --> L:gw
gw:R --> L:api
api:R --> L:broker
api:B --> T:dbFlowchart with Icons
This diagram uses the flowchart type with icon pack nodes to show a user authenticating through an API gateway backed by an identity provider.
![]()
flowchart LR
user@{ icon: "arch-user-circle", label: "Person", form: "square" }
browser@{ icon: "tech-web-browser", label: "Web Browser", form: "square" }
api@{ icon: "azure-api-management", label: "Azure API Management", form: "square" }
idp@{ icon: "azure-active-directory", label: "Microsoft Entra ID", form: "square" }
user -->|Interacts| browser
browser -->|API Request| api
api -->|Authenticate / Authorise| idp
idp -->|Token Response| api
api -->|API Response| browserAvailable Icons
AWS (20 icons)
Amazon Web Services infrastructure and managed services.
Reference syntax: (aws-iconname) — for example (aws-s3)
aws-s3aws-lambdaaws-ec2aws-rdsaws-api-gatewayaws-cloudfrontaws-sqsaws-snsaws-dynamodbaws-eksaws-ecsaws-cognitoaws-iamaws-cloudwatchaws-vpcaws-elasticacheaws-route53aws-elbaws-kinesisaws-glueAzure (24 icons)
Microsoft Azure cloud platform services.
Reference syntax: (azure-iconname) — for example (azure-active-directory)
azure-active-directoryazure-app-serviceazure-functionsazure-blob-storageazure-sqlazure-cosmos-dbazure-service-busazure-event-hubsazure-api-managementazure-kubernetesazure-key-vaultazure-virtual-networkazure-data-lakeazure-postgresqlazure-data-factoryazure-databricksazure-devopsazure-monitorazure-security-centerazure-network-watcherazure-load-balancerazure-container-registryazure-pipelinesazure-logoMicrosoft 365 (5 icons)
Microsoft 365 productivity applications.
Reference syntax: (ms-iconname) — for example (ms-word)
ms-wordms-excelms-sharepointms-powerappsms-powerbiTechnology (11 icons)
Common open-source and SaaS technology platforms.
Reference syntax: (tech-iconname) — for example (tech-mongodb)
tech-mongodbtech-kafkatech-rabbitmqtech-nginxtech-postgresqltech-jsontech-web-browsertech-pdf-brandedtech-databrickstech-snowflaketech-salesforceGeneric Architecture (25 icons)
Platform-neutral concepts: users, devices, data formats, and system components.
Reference syntax: (arch-iconname) — for example (arch-laptop)
arch-laptoparch-desktoparch-mobilearch-tabletarch-userarch-managerarch-supportarch-certificatearch-securityarch-server-networkarch-csvarch-xmlarch-webarch-pdfarch-message-queuearch-data-streamarch-credentialsarch-certificate-filearch-user-circlearch-usersarch-emailarch-cloudarch-databasearch-settingsarch-apiTips
- Use
arch-*icons for platform-neutral concepts — users, servers, APIs, queues, and data stores — so the diagram stays readable regardless of which cloud or technology is involved. - Mix packs freely. A single diagram can use
aws-*,azure-*, andarch-*icons side by side. - Mermaid also includes a small set of built-in icons (
cloud,server,database,disk,internet) that work without a pack prefix, for quick sketches.