Templates / flowchart
Event-driven order fulfillment
An order event triggering inventory reservation, payment, packing, and shipping, with a failure-compensation branch.
Preview
Mermaid 11 renderer
Rendering preview...
Mermaid source
flowchart
flowchart LR
orderPlaced([Order placed event]) --> reserve[Reserve inventory]
reserve --> charge[Charge payment]
charge --> pack[Pack order]
pack --> ship[Ship order]
ship --> notify([Order shipped event])
charge -->|payment failed| release[Release inventory]
release --> cancel([Order cancelled event])More templates
flowchartArchitecture
Microservices architecture
A service map with an API gateway, core services, and shared infrastructure. A solid starting point for README architecture sections.
sequenceDiagramProcess
User login sequence
A login flow with token issuance and a failure branch. Useful for documenting auth endpoints and session behavior.
stateDiagram-v2Process
Order state machine
Lifecycle states for an e-commerce order, from creation to fulfillment, with cancellation and refund paths.