Templates / classDiagram
Plugin architecture classes
A pluggable host interface pattern where plugins implement a common lifecycle hook.
Preview
Mermaid 11 renderer
Rendering preview...
Mermaid source
classDiagram
classDiagram
class PluginHost {
+List~Plugin~ plugins
+register(plugin)
+runHook(name, context)
}
class Plugin {
<<interface>>
+string name
+onLoad(host)
}
class LoggingPlugin {
+onLoad(host)
}
class AnalyticsPlugin {
+onLoad(host)
}
Plugin <|.. LoggingPlugin
Plugin <|.. AnalyticsPlugin
PluginHost "1" --> "*" PluginMore 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.