This document demonstrates various UML diagram types using Nomnoml (offline rendering).
#title: Animal Class Hierarchy
#direction: down
[Animal|
age: int;
gender: string|
isMammal();
mate()
]
[Duck|
beakColor: string|
swim();
quack()
]
[Fish|
sizeInFeet: int|
canEat()
]
[Zebra|
is_wild: bool|
run()
]
[Animal] <:- [Duck]
[Animal] <:- [Fish]
[Animal] <:- [Zebra]#title: Web Request Flow
#direction: right
[User] -> [Browser]
[Browser] -> [Server]
[Server] -> [Database]
[Database] --> [Server]
[Server] --> [Browser]
[Browser] --> [User]#title: Application Use Cases
#direction: right
[<actor> User]
[<actor> Admin]
[User] - [Login]
[User] - [View Dashboard]
[User] - [Edit Profile]
[Admin] - [Manage Users]
[Admin] - [View Reports]
[Admin] - [System Settings]
[Manage Users] --> [Login]
[View Reports] --> [Login]#title: User Login Activity
#direction: down
[<start> Start] -> [User Login]
[User Login] -> [<choice> Valid?]
[Valid?] yes -> [Load Dashboard]
[Valid?] no -> [Show Error]
[Load Dashboard] -> [Display Data]
[Display Data] -> [User Action]
[User Action] -> [<choice> Success?]
[Success?] yes -> [Update DB]
[Success?] no -> [Show Error]
[Update DB] -> [<end> End]
[Show Error] -> [<end> End]#title: System Architecture
#direction: right
[<package> Frontend|
[React App]
[UI Components]
]
[<package> Backend|
[API Server]
[Business Logic]
]
[<database> Database|
[PostgreSQL]
]
[React App] -> [UI Components]
[React App] --> [API Server]
[API Server] -> [Business Logic]
[Business Logic] -> [PostgreSQL]#title: Process State Machine
#direction: right
[<start> Start] -> [Idle]
[Idle] -> [Processing]
[Processing] -> [Idle]
[Processing] -> [Completed]
[Processing] -> [Error]
[Error] -> [Processing]
[Error] -> [Idle]
[Completed] -> [<end> End]Note: These UML diagrams are rendered using Nomnoml - a lightweight, offline JavaScript library. No internet connection required!