Diagram templates

Start from a working diagram instead of a blank canvas. Every template is plain Mermaid — open it, rename a few nodes, and you're done.

Flowchart templates

Flowchart

A/B test analysis funnel

From experiment completion through results analysis and ship decision.

Flowchart

A/B test result analysis and rollout

Evaluate test data, check statistical significance, rollout or rollback.

Flowchart

API error handling flow

Client-side error handling strategies for API requests and failures.

Flowchart

API versioning strategy

Managing breaking changes while maintaining backward compatibility.

Flowchart

Auto-scaling decision tree

CPU, memory, request volume, and cost trade-off decisions.

Flowchart

Blue-green deployment strategy

Parallel environments, traffic switch, and instant rollback.

Flowchart

Bug triage workflow

Classify, prioritize, and assign incoming bug reports systematically.

Flowchart

Bulk data import pipeline

CSV upload, validation, transformation, database load with rollback on error.

Flowchart

Caching strategy decision tree

Choose between CDN, app cache, database cache, or hybrid approaches.

Flowchart

Canary deployment strategy

Roll out new versions to a small percentage of traffic, then scale up.

Flowchart

CI/CD pipeline

From commit to production with tests and review gates.

Flowchart

Cost optimization runbook

Review spending, identify waste, and optimize cloud infrastructure costs.

Flowchart

Customer churn analysis

Identify why customers leave and where to intervene.

Flowchart

Customer journey map

Awareness through advocacy: touchpoints, emotions, and actions.

Flowchart

Customer onboarding funnel

From signup to activated, paying customer.

Flowchart

Customer retention funnel

Track user progression through retention stages and churn points.

Flowchart

Data pipeline (ETL)

Extract, transform, and load with quality checks.

Flowchart

Database backup and recovery process

Disaster recovery decision flow from incident to restore.

Flowchart

Database indexing strategy

Decision tree for choosing single-column, composite, and specialized indexes.

Flowchart

Database migration flow

Safe schema changes with validation, rollback, and production cutover.

Flowchart

Database query optimization workflow

Identify slow queries, profile bottlenecks, and apply fixes.

Flowchart

Database read replica failover strategy

Detect primary lag, promote replica, re-replicate, and minimize downtime.

Flowchart

Database reconnect retry pattern

Automatic reconnection with exponential backoff and circuit breaker.

Flowchart

Database sharding strategy

Horizontal scaling with hash-based shard selection.

Flowchart

Database transaction lifecycle

ACID compliance: isolation levels, commit, rollback, and conflict detection.

Flowchart

Decision tree

A simple yes/no decision framework.

Flowchart

Deployment rollback decision tree

Incident detection, severity assessment, and rollback trigger criteria.

Flowchart

Disaster recovery plan

Detection, failover, validation, and restoration after service outage.

Flowchart

E-commerce checkout flow

Cart, shipping, payment, and order confirmation steps.

Flowchart

Email campaign journey

Segmentation, send, engagement tracking, and re-engagement loop.

Flowchart

Employee onboarding process

From signed offer to confirmed hire in 90 days.

Flowchart

Error handling and recovery flow

API error response paths and recovery strategies.

Flowchart

Event-driven notification system

Event publisher, queue, consumers, and retry/failure handling.

Flowchart

Feature flag rollout

Staged rollout from internal users to 100% with a kill switch.

Flowchart

Feature request prioritization workflow

Intake, triage, prioritization, and roadmap placement.

Flowchart

Fraud detection and prevention workflow

Real-time detection, risk scoring, blocking, and manual review of suspicious transactions.

Flowchart

GraphQL mutation error recovery

Mutation execution with validation, failure paths, and rollback handling.

Flowchart

GraphQL schema versioning strategy

Handling schema evolution, deprecation, and client migrations.

Flowchart

Idempotency key verification flow

Detect duplicate requests and return cached results safely.

Flowchart

Incident escalation protocol

Steps from detection through alert routing, assignment, and escalation.

Flowchart

Incident response runbook

Triage, mitigate, and review production incidents.

Flowchart

Incident severity classification

Assess impact and urgency to classify severity and route to the right on-call tier.

Flowchart

Input validation and sanitization flow

Validate format, sanitize dangerous content, protect against injection attacks.

Flowchart

Insurance claims process

From claim submission through fraud checks to payout.

Flowchart

Kubernetes deployment pipeline

Build, push, rolling update, and rollback on failed probes.

Flowchart

Load balancer request routing

How requests are distributed across backend servers.

Flowchart

Load testing strategy flowchart

Plan baseline, ramp up, spike, and soak tests to validate system performance.

Flowchart

Log aggregation pipeline

Collect, parse, enrich, and store logs from multiple services.

Flowchart

Merge conflict resolution flow

Detecting, resolving, and testing concurrent branch merges.

Flowchart

Microservices architecture

Gateway, services, databases, and an async message queue.

Flowchart

Mobile app release flow

Code review, build, beta testing, app store submission, and rollout.

Flowchart

Network topology diagram

Internet, regions, load balancers, subnets, and security boundaries.

Flowchart

Order fulfillment process

E-commerce order from checkout to delivery.

Flowchart

Payment processing flow

From checkout through authorization, capture, and settlement.

Flowchart

Product discovery cycle

From customer problem to validated requirements and feature spec.

Flowchart

Refund and dispute resolution

Chargeback and refund request journey from initiation to resolution.

Flowchart

Release management workflow

Build, test, stage, and promote code to production safely.

Flowchart

Request timeout and retry pattern

Handle slow/failing requests with exponential backoff and max retries.

Flowchart

Role-based access control decision

Authorization logic: user roles, permissions, and resource access checks.

Flowchart

SaaS contract negotiation workflow

From RFQ through legal review, pricing, and signature.

Flowchart

Saga pattern: distributed transaction

Choreography-based saga with compensating transactions on failure.

Flowchart

Secrets management and rotation

Credential storage, access, and automated rotation workflow.

Flowchart

Security access review workflow

Periodic user access audits with remediation and approval.

Flowchart

Service degradation strategy

Detect failures, trigger graceful fallbacks, maintain partial service.

Flowchart

Service health check loop

Monitoring, alerting, and recovery when services become unhealthy.

Flowchart

Support escalation path

Route tickets from first response to engineering.

Flowchart

Team standup meeting flow

Daily standups: sharing updates, surfacing blockers, planning next steps.

Flowchart

Test pyramid strategy

Unit, integration, and E2E test distribution and execution flow.

Flowchart

Trial to paid conversion funnel

Free trial activation, engagement, and upgrade decision points.

Flowchart

User retention analytics funnel

Track cohorts from signup through returning users, segment by behavior.

Flowchart

User signup flow

Signup with email verification and error paths.

Flowchart

Vendor RFP evaluation workflow

Request for proposal evaluation from criteria scoring to final selection.

Flowchart

Vendor risk assessment workflow

Evaluate vendor viability and risk factors before contracting.

Flowchart

Vendor selection decision tree

Evaluate options, score criteria, negotiate terms, and decide on a vendor.

Flowchart

Zero-downtime database migration

Dual-write, shadow-read, backfill, and cutover strategy for production data.

Sequence templates

Sequence

Account provisioning sequence

Multi-system flow for setting up new customer accounts.

Sequence

API gateway request routing

Gateway routing requests to microservices based on path and headers.

Sequence

API rate limiting sequence

Client, gateway, and limiter handling a 429 with Retry-After.

Sequence

API request lifecycle

Client, gateway, service, database, and back.

Sequence

API token authentication sequence

Client obtaining and using bearer tokens for API requests.

Sequence

Async job queue pattern

Producer queues work, consumer processes it, with retry and dead-letter paths.

Sequence

Cache invalidation sequence

Client, application, cache, and database coordinating fresh data.

Sequence

Circuit breaker pattern

Fail fast and recover gracefully when downstream services fail.

Sequence

Container health check sequence

Orchestrator probes containers, handles failures and restarts.

Sequence

Contract testing sequence

Consumer and provider verifying API contracts in isolation.

Sequence

CORS preflight request sequence

Browser-to-server handshake for cross-origin requests.

Sequence

Customer incident lifecycle sequence

Communication flow from detection through acknowledgment, investigation, resolution, and closure.

Sequence

Database connection pooling

Application server connections routed through a pool to the database.

Sequence

Distributed request tracing

Trace a request across microservices using trace IDs and span metadata.

Sequence

DNS resolution sequence

Client query through recursive resolvers to authoritative nameservers.

Sequence

GraphQL API query sequence

Client, server, and resolver layers in a GraphQL request.

Sequence

GraphQL subscription flow

Client subscribes, server establishes WebSocket, pushes real-time updates.

Sequence

JWT token validation sequence

Client requests protected resource using access token, server validates signature.

Sequence

Kubernetes container lifecycle

Startup, liveness checks, readiness gates, and termination.

Sequence

Message queue retry logic

Publish-subscribe with exponential backoff and dead-letter queues.

Sequence

Microservice request flow

API gateway fanning out to services with a cache.

Sequence

ML model training pipeline

Data ingestion, preprocessing, training, validation, and deployment steps.

Sequence

Multi-provider API integration with fallbacks

Try primary provider, fallback to secondary, log failures for audit.

Sequence

OAuth login sequence

User, app, and identity provider exchanging tokens.

Sequence

Queue topology and message routing

Message broker architecture with topic subscriptions and dead-letter handling.

Sequence

Real-time notification delivery system

Web sockets, message broker, and delivery handlers in action.

Sequence

Sales pipeline deal progression sequence

Prospect discovery through close, with stakeholder touchpoints.

Sequence

Service mesh communication

Microservices calling each other with retries, timeouts, and circuit breakers.

Sequence

Session management flow

User sessions from login through expiry and refresh.

Sequence

Session token refresh flow

Access token expiry, refresh token exchange, and silent re-authentication.

Sequence

Slack bot message flow

Bot receives command, processes, and sends formatted response.

Sequence

Third-party API integration sequence

Request, webhook callback, retry, and fallback handling.

Sequence

TLS handshake sequence

Client and server establishing an encrypted connection.

Sequence

Token bucket rate limiting

Tokens refill, requests consume, overflow rejected.

Sequence

Webhook delivery and retry pattern

Event delivery with exponential backoff and failure handling.

Sequence

Webhook delivery with retries

Provider, queue, and endpoint with backoff retries.

Sequence

Webhook security verification

Validate webhook signatures and detect spoofed or replayed webhooks.

Sequence

Webhook signature verification sequence

Validate webhook authenticity before processing events.

Class templates

ER templates

State templates

State

A/B testing experiment lifecycle

States from hypothesis through rollout and analysis.

State

Code review workflow

Pull request states from creation through merge or closure.

State

Compliance audit trail state machine

Track changes, approvals, and compliance checkpoints as states.

State

Content moderation workflow

User reports, automated checks, review queue, and enforcement.

State

Content publishing workflow

Draft to review to scheduled to published, with editorial and legal gates.

State

Customer feedback loop and NPS tracking

Collect, categorize, and act on customer feedback at scale.

State

Data retention and compliance

State machine for customer data lifecycle under GDPR and privacy laws.

State

Dependency resolution algorithm

How package managers resolve and download nested dependencies.

State

Error budget state machine

Track SLO compliance and error budget depletion through states.

State

Feature deprecation lifecycle

State machine from announcement through removal, with user communication milestones.

State

Feature flag emergency rollback

Detect problems, decide action, roll back or kill the feature.

State

Incident state machine

States and transitions during an incident from detection to postmortem.

State

Multi-step approval workflow

Submission, review, approval, rejection, and completion states.

State

Rate limit state machine

Track quota consumption, backpressure, and recovery states.

State

Release readiness checklist

State machine for go-live criteria and rollout progress tracking.

State

Request retry strategy

State machine for exponential backoff, jitter, and circuit breaker integration.

State

Retrospective action items state machine

Tracking action items from retrospective through closure.

State

Scheduled job monitoring state machine

Job lifecycle from scheduled through execution, failure recovery, and completion.

State

SLA response state machine

Track support ticket states from submission through response and resolution SLAs.

State

Subscription downgrade lifecycle

State transitions when a user downgrades from paid to free plan.

State

Subscription lifecycle (state)

Trial, active, past due, canceled — and back.

State

Subscription lifecycle state machine

Plan upgrades, downgrades, cancellation, and grace period recovery.

State

System failover and recovery

State transitions during primary failure, failover, and recovery to primary.

State

User authentication states

Signed out, MFA, session expiry, and silent refresh.

State

Webhook event processor state machine

Event ingestion, processing, retry, and idempotency states.

Gantt templates

Pie templates

Git templates