Intro
@c4mjs/c4-react
is a library for creating C4 diagrams in React.
It uses React Flow for rendering the diagrams, giving interactive canvases that can be used in any React application.
The interactive zooming and panning features of React Flow make it easy to create and view large diagrams.
Example Uses
- Embedded diagrams in technical documentation
- Building a custom System Catalogue
- Creating a single source of truth for your architecture diagrams and decision records
Features
- Reusable Component Definitions in Javascript/Typescript 🛠️
- Manage Workspaces using Javascript ecosystem tools like NPM 📦
- Embed C4 diagrams in your React applications 🚀
- Downloadable 📥 diagrams using html-to-image & downloadjs
- Supports Light 🌞 and Dark 🌚 themes out of the box
Example
You can see a live example of a system context diagram below, unlock the canvas to move nodes around.