C4 component diagram template
C4 level 3: the components inside one container, what each is responsible for, and how they reach databases and external systems.
Use this templateFree, opens in your browser. No sign-up.
What's on the board
- API application [container boundary]
- Sign-in controller [Component: REST] Issues JWTs · Orders controller [Component: REST] /v1/orders · Payments webhook [Component: REST] Stripe events · Security component [Spring Security] Checks tokens + roles · Order service [Component] Pricing, stock checks, status · Payment component [Stripe SDK wrapper] · User repository [JPA] · Order repository [JPA]
Also on the board
- Web app [Container: React SPA]
- Mobile app [Container: iOS / Android]
- Payment provider (Stripe) [External]
- Legend
- Container
- Component
- Database [Container: PostgreSQL]
- Message queue [Container: RabbitMQ]
- External system
- C4 level 3: zoom into one container. Show components and their responsibilities, not…
How to use this template
- Click Use this template. It opens in the Kelvo app as a new board, saved in your browser.
- Double-click any box to change its text. Replace the examples with your own content.
- Sketch, then convert. Draw boxes and arrows with the pen, select the strokes and click Convert sketch: they become real boxes and links.
- Ask Kelvo right on the board (Pro). With Pro, type @kelvo and what you want in any box or text, for example “@kelvo add error handling”, and press Enter. The change is made there and the request disappears; ⌘Z undoes it.
- One page per level. Put the C4 context view on one page and the container view on the next, so each diagram stays readable.
Good for
- architect
- c4
- architecture
- components
- Agreeing on boundaries and responsibilities between services
- Recording why a design was chosen (and what was rejected)
- Comparing integration options side by side
Related templates
C4 system context diagram
C4 level 1: the system in scope, the people who use it and the external systems it depends on, with a legend.
C4 container diagram
C4 level 2: the apps, APIs, databases and queues inside the system boundary, with the technology on each link.
Microservices with API gateway
Clients behind an API gateway, services that each own their database, and an event bus for asynchronous work.
Event-driven architecture
Producers publish facts to a broker; independent consumers react — with the design rules that keep it reliable.
LLM application architecture
Production building blocks around a model: gateway, guardrails, orchestrator, cache, vector DB, tools and observability.
LLM agent loop
How a tool-using agent plans, calls tools, observes results and updates memory until the goal is met, with guardrails.