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
A/B test analysis funnel
From experiment completion through results analysis and ship decision.
A/B test result analysis and rollout
Evaluate test data, check statistical significance, rollout or rollback.
API error handling flow
Client-side error handling strategies for API requests and failures.
API versioning strategy
Managing breaking changes while maintaining backward compatibility.
Auto-scaling decision tree
CPU, memory, request volume, and cost trade-off decisions.
Blue-green deployment strategy
Parallel environments, traffic switch, and instant rollback.
Bug triage workflow
Classify, prioritize, and assign incoming bug reports systematically.
Bulk data import pipeline
CSV upload, validation, transformation, database load with rollback on error.
Caching strategy decision tree
Choose between CDN, app cache, database cache, or hybrid approaches.
Canary deployment strategy
Roll out new versions to a small percentage of traffic, then scale up.
CI/CD pipeline
From commit to production with tests and review gates.
Cost optimization runbook
Review spending, identify waste, and optimize cloud infrastructure costs.
Customer churn analysis
Identify why customers leave and where to intervene.
Customer journey map
Awareness through advocacy: touchpoints, emotions, and actions.
Customer onboarding funnel
From signup to activated, paying customer.
Customer retention funnel
Track user progression through retention stages and churn points.
Data pipeline (ETL)
Extract, transform, and load with quality checks.
Database backup and recovery process
Disaster recovery decision flow from incident to restore.
Database indexing strategy
Decision tree for choosing single-column, composite, and specialized indexes.
Database migration flow
Safe schema changes with validation, rollback, and production cutover.
Database query optimization workflow
Identify slow queries, profile bottlenecks, and apply fixes.
Database read replica failover strategy
Detect primary lag, promote replica, re-replicate, and minimize downtime.
Database reconnect retry pattern
Automatic reconnection with exponential backoff and circuit breaker.
Database sharding strategy
Horizontal scaling with hash-based shard selection.
Database transaction lifecycle
ACID compliance: isolation levels, commit, rollback, and conflict detection.
Decision tree
A simple yes/no decision framework.
Deployment rollback decision tree
Incident detection, severity assessment, and rollback trigger criteria.
Disaster recovery plan
Detection, failover, validation, and restoration after service outage.
E-commerce checkout flow
Cart, shipping, payment, and order confirmation steps.
Email campaign journey
Segmentation, send, engagement tracking, and re-engagement loop.
Employee onboarding process
From signed offer to confirmed hire in 90 days.
Error handling and recovery flow
API error response paths and recovery strategies.
Event-driven notification system
Event publisher, queue, consumers, and retry/failure handling.
Feature flag rollout
Staged rollout from internal users to 100% with a kill switch.
Feature request prioritization workflow
Intake, triage, prioritization, and roadmap placement.
Fraud detection and prevention workflow
Real-time detection, risk scoring, blocking, and manual review of suspicious transactions.
GraphQL mutation error recovery
Mutation execution with validation, failure paths, and rollback handling.
GraphQL schema versioning strategy
Handling schema evolution, deprecation, and client migrations.
Idempotency key verification flow
Detect duplicate requests and return cached results safely.
Incident escalation protocol
Steps from detection through alert routing, assignment, and escalation.
Incident response runbook
Triage, mitigate, and review production incidents.
Incident severity classification
Assess impact and urgency to classify severity and route to the right on-call tier.
Input validation and sanitization flow
Validate format, sanitize dangerous content, protect against injection attacks.
Insurance claims process
From claim submission through fraud checks to payout.
Kubernetes deployment pipeline
Build, push, rolling update, and rollback on failed probes.
Load balancer request routing
How requests are distributed across backend servers.
Load testing strategy flowchart
Plan baseline, ramp up, spike, and soak tests to validate system performance.
Log aggregation pipeline
Collect, parse, enrich, and store logs from multiple services.
Merge conflict resolution flow
Detecting, resolving, and testing concurrent branch merges.
Microservices architecture
Gateway, services, databases, and an async message queue.
Mobile app release flow
Code review, build, beta testing, app store submission, and rollout.
Network topology diagram
Internet, regions, load balancers, subnets, and security boundaries.
Order fulfillment process
E-commerce order from checkout to delivery.
Payment processing flow
From checkout through authorization, capture, and settlement.
Product discovery cycle
From customer problem to validated requirements and feature spec.
Refund and dispute resolution
Chargeback and refund request journey from initiation to resolution.
Release management workflow
Build, test, stage, and promote code to production safely.
Request timeout and retry pattern
Handle slow/failing requests with exponential backoff and max retries.
Role-based access control decision
Authorization logic: user roles, permissions, and resource access checks.
SaaS contract negotiation workflow
From RFQ through legal review, pricing, and signature.
Saga pattern: distributed transaction
Choreography-based saga with compensating transactions on failure.
Secrets management and rotation
Credential storage, access, and automated rotation workflow.
Security access review workflow
Periodic user access audits with remediation and approval.
Service degradation strategy
Detect failures, trigger graceful fallbacks, maintain partial service.
Service health check loop
Monitoring, alerting, and recovery when services become unhealthy.
Support escalation path
Route tickets from first response to engineering.
Team standup meeting flow
Daily standups: sharing updates, surfacing blockers, planning next steps.
Test pyramid strategy
Unit, integration, and E2E test distribution and execution flow.
Trial to paid conversion funnel
Free trial activation, engagement, and upgrade decision points.
User retention analytics funnel
Track cohorts from signup through returning users, segment by behavior.
User signup flow
Signup with email verification and error paths.
Vendor RFP evaluation workflow
Request for proposal evaluation from criteria scoring to final selection.
Vendor risk assessment workflow
Evaluate vendor viability and risk factors before contracting.
Vendor selection decision tree
Evaluate options, score criteria, negotiate terms, and decide on a vendor.
Zero-downtime database migration
Dual-write, shadow-read, backfill, and cutover strategy for production data.
Sequence templates
Account provisioning sequence
Multi-system flow for setting up new customer accounts.
API gateway request routing
Gateway routing requests to microservices based on path and headers.
API rate limiting sequence
Client, gateway, and limiter handling a 429 with Retry-After.
API request lifecycle
Client, gateway, service, database, and back.
API token authentication sequence
Client obtaining and using bearer tokens for API requests.
Async job queue pattern
Producer queues work, consumer processes it, with retry and dead-letter paths.
Cache invalidation sequence
Client, application, cache, and database coordinating fresh data.
Circuit breaker pattern
Fail fast and recover gracefully when downstream services fail.
Container health check sequence
Orchestrator probes containers, handles failures and restarts.
Contract testing sequence
Consumer and provider verifying API contracts in isolation.
CORS preflight request sequence
Browser-to-server handshake for cross-origin requests.
Customer incident lifecycle sequence
Communication flow from detection through acknowledgment, investigation, resolution, and closure.
Database connection pooling
Application server connections routed through a pool to the database.
Distributed request tracing
Trace a request across microservices using trace IDs and span metadata.
DNS resolution sequence
Client query through recursive resolvers to authoritative nameservers.
GraphQL API query sequence
Client, server, and resolver layers in a GraphQL request.
GraphQL subscription flow
Client subscribes, server establishes WebSocket, pushes real-time updates.
JWT token validation sequence
Client requests protected resource using access token, server validates signature.
Kubernetes container lifecycle
Startup, liveness checks, readiness gates, and termination.
Message queue retry logic
Publish-subscribe with exponential backoff and dead-letter queues.
Microservice request flow
API gateway fanning out to services with a cache.
ML model training pipeline
Data ingestion, preprocessing, training, validation, and deployment steps.
Multi-provider API integration with fallbacks
Try primary provider, fallback to secondary, log failures for audit.
OAuth login sequence
User, app, and identity provider exchanging tokens.
Queue topology and message routing
Message broker architecture with topic subscriptions and dead-letter handling.
Real-time notification delivery system
Web sockets, message broker, and delivery handlers in action.
Sales pipeline deal progression sequence
Prospect discovery through close, with stakeholder touchpoints.
Service mesh communication
Microservices calling each other with retries, timeouts, and circuit breakers.
Session management flow
User sessions from login through expiry and refresh.
Session token refresh flow
Access token expiry, refresh token exchange, and silent re-authentication.
Slack bot message flow
Bot receives command, processes, and sends formatted response.
Third-party API integration sequence
Request, webhook callback, retry, and fallback handling.
TLS handshake sequence
Client and server establishing an encrypted connection.
Token bucket rate limiting
Tokens refill, requests consume, overflow rejected.
Webhook delivery and retry pattern
Event delivery with exponential backoff and failure handling.
Webhook delivery with retries
Provider, queue, and endpoint with backoff retries.
Webhook security verification
Validate webhook signatures and detect spoofed or replayed webhooks.
Webhook signature verification sequence
Validate webhook authenticity before processing events.
Class templates
Dependency injection pattern
Class structure for injectable dependencies and container wiring.
Event sourcing architecture
Event store, projections, snapshots, and eventual consistency.
Multi-tenant architecture
Database isolation patterns for SaaS: shared schema, separate databases, and hybrid.
Observability stack architecture
Metrics, logs, traces, dashboards, and alerting for production systems.
Permission hierarchy diagram
Roles, permissions, and inheritance for access control systems.
REST API class diagram
Controllers, services, and repositories.
ER templates
State templates
A/B testing experiment lifecycle
States from hypothesis through rollout and analysis.
Code review workflow
Pull request states from creation through merge or closure.
Compliance audit trail state machine
Track changes, approvals, and compliance checkpoints as states.
Content moderation workflow
User reports, automated checks, review queue, and enforcement.
Content publishing workflow
Draft to review to scheduled to published, with editorial and legal gates.
Customer feedback loop and NPS tracking
Collect, categorize, and act on customer feedback at scale.
Data retention and compliance
State machine for customer data lifecycle under GDPR and privacy laws.
Dependency resolution algorithm
How package managers resolve and download nested dependencies.
Error budget state machine
Track SLO compliance and error budget depletion through states.
Feature deprecation lifecycle
State machine from announcement through removal, with user communication milestones.
Feature flag emergency rollback
Detect problems, decide action, roll back or kill the feature.
Incident state machine
States and transitions during an incident from detection to postmortem.
Multi-step approval workflow
Submission, review, approval, rejection, and completion states.
Rate limit state machine
Track quota consumption, backpressure, and recovery states.
Release readiness checklist
State machine for go-live criteria and rollout progress tracking.
Request retry strategy
State machine for exponential backoff, jitter, and circuit breaker integration.
Retrospective action items state machine
Tracking action items from retrospective through closure.
Scheduled job monitoring state machine
Job lifecycle from scheduled through execution, failure recovery, and completion.
SLA response state machine
Track support ticket states from submission through response and resolution SLAs.
Subscription downgrade lifecycle
State transitions when a user downgrades from paid to free plan.
Subscription lifecycle (state)
Trial, active, past due, canceled — and back.
Subscription lifecycle state machine
Plan upgrades, downgrades, cancellation, and grace period recovery.
System failover and recovery
State transitions during primary failure, failover, and recovery to primary.
User authentication states
Signed out, MFA, session expiry, and silent refresh.
Webhook event processor state machine
Event ingestion, processing, retry, and idempotency states.
Gantt templates
Chaos engineering experiment
Automated chaos test phases: hypothesis, inject failure, observe, recovery.
Feature release timeline
Gantt chart showing design, build, test, and launch phases.
Feature rollout timeline
Staged deployment from internal testers through full availability.
Feature-to-production timeline
From design kickoff through post-launch monitoring, tracked as milestones.
Financial quarter planning timeline
Quarterly planning milestones from strategy through close-out.
Marketing campaign timeline
Campaign planning, launch, and review milestones across teams.
Product roadmap timeline
Gantt chart showing quarterly releases, features, and team dependencies.
Proof-of-concept to production workflow
POC phases, evaluation criteria, and production migration timeline.
Software release phases
Timeline from development freeze through production deployment and post-release.
Sprint plan (Gantt)
Two-week sprint with design, build, and QA.