Skip to content

Basic Diagram

A simple three-tier web application with a frontend, API, and database.

# Simple Web Application
node id="user" title="User" shape="person"
group id="app" title="Application" {
node id="web" title="Web App" icon="https://cdn.simpleicons.org/react" shape="browser" {
React SPA
TypeScript
}
node id="api" title="API Server" icon="https://cdn.simpleicons.org/nodedotjs" shape="server" {
Express.js
REST API
}
}
group id="data" title="Data Layer" {
node id="db" title="PostgreSQL" icon="https://cdn.simpleicons.org/postgresql" shape="cylinder" {
Users
Sessions
}
node id="cache" title="Redis" icon="https://cdn.simpleicons.org/redis" shape="cylinder" {
Session Cache
Rate Limits
}
}
edge from="user" to="web" label="HTTPS"
edge from="web" to="api" label="REST"
edge from="api" to="db" label="SQL"
edge from="api" to="cache" label="Cache" style="dashed"
  • Nodes with different shapes: person, browser, server, cylinder
  • Groups for logical organization
  • Content blocks listing details inside nodes
  • Icons from Simple Icons CDN
  • Edges with labels and styles (dashed for optional connections)

Copy the code above and paste it into the Topolix editor to see it rendered interactively.