Diagram Templates
These are reusable D2 starting points for the three most common Brainforge diagram shapes:
system-flow-template.d2process-flow-template.d2timeline-template.d2
Render the folder with:
npm run diagrams:render -- knowledge/engineering/diagram-templatesGenerate preview PNGs for visual inspection:
npm run diagrams:preview -- knowledge/engineering/diagram-templatesSystem Flow
Use when you need to show products, services, data stores, or integrations.
Process Flow
Use when you need to show sequential steps, decisions, and handoffs.
Timeline
Use when you need to show phases, milestones, or staged delivery.
How To Use
- Copy the closest template into the target folder.
- Rename it for the actual topic.
- Replace placeholder labels with the real system, process, or phases.
- Run the render command.
- If the output needs Brainforge polish, refine the published SVG separately.