Class diagram makerfrom plain language, free.
/ Example
(01)Prompt: A library system with books, members, loans and librarians
classDiagram
direction LR
class Library {
+String name
+String address
+addBook(Book book)
+findBooks(String query) List~Book~
}
class Book {
+String isbn
+String title
+String author
+int year
+isAvailable() bool
}
class Copy {
+String barcode
+CopyStatus status
}
class Person {
<<abstract>>
+String name
+String email
}
class Member {
+String memberId
+Date joined
+borrow(Copy copy) Loan
+returnCopy(Copy copy)
}
class Librarian {
+String staffId
+approveLoan(Loan loan)
+addCopy(Book book) Copy
}
class Loan {
+Date borrowedOn
+Date dueOn
+Date returnedOn
+isOverdue() bool
+fine() Money
}
class Reservation {
+Date placedOn
+cancel()
}
class CopyStatus {
<<enumeration>>
AVAILABLE
ON_LOAN
RESERVED
LOST
}
Library "1" o-- "*" Book : holds
Book "1" *-- "1..*" Copy : has
Person <|-- Member
Person <|-- Librarian
Member "1" --> "*" Loan : makes
Loan "*" --> "1" Copy : for
Member "1" --> "*" Reservation : places
Reservation "*" --> "1" Book : for
Librarian ..> Loan : approves
Copy --> CopyStatus
/ Good for
(02)- Object-oriented designs and domain models
- Inheritance and composition at a glance
- Documenting a codebase's main types
(03)
drop something in
1text, notes, whatever
it turns into a diagram
2usually in a few seconds
tweak it if you want
3export it and move on
/ Other diagram types
(04)- FlowchartSign-up, checkout and approval flows
- Sequence DiagramAPI requests across services
- State DiagramOrder and ticket lifecycles
- ER DiagramDatabase schema design
- User JourneyOnboarding and first-run experiences
- Gantt ChartProject and release schedules
- Pie ChartBudget and cost breakdowns
- Git GraphExplaining a branching strategy
- Mind MapBrainstorming and planning
- TimelineProduct and company history
- Requirement DiagramTracing requirements to components
- Quadrant ChartEffort and impact prioritisation
- C4 DiagramSystem context for new team members
- Sankey DiagramBudget and money flows
- XY ChartMonthly sales or sign-ups
- Block DiagramHigh-level system overviews
- Packet DiagramProtocol and file format documentation
- Kanban BoardSprint snapshots in a README or doc
- Architecture DiagramCloud infrastructure overviews
- Radar ChartComparing products or frameworks
- TreemapBudgets broken down by department
- Ishikawa DiagramRoot cause analysis after an incident
- Venn DiagramComparing products or roles
- Tree ViewProject folder layouts in a README