Creating a diagramming app like draw.io (diagrams.net) or Excalidraw is an exciting project! The choice of framework depends on your goals, team experience, and the features you want to support. Here's a breakdown of suitable frameworks and tools for building such an app:
🔧 Key Requirements for Diagramming Apps
Before choosing a framework, consider these key requirements:
Canvas or SVG rendering
Drag-and-drop interaction
Real-time collaboration (optional)
Undo/redo functionality
Export/import capabilities (e.g., JSON, SVG, PNG)
Custom shapes, connectors, text, etc.
Responsive UI
🖼️ Rendering Technologies (Canvas vs SVG)
1. HTML5 Canvas
Good for high-performance apps with many elements.
Lower-level API; more control but harder to manage interactivity.
Would you like help picking a tech stack based on your specific use case (e.g., real-time collaboration, offline-first, cloud sync)? Let me know your priorities!
User
Okey, fabric is too basic, Paper is some kind of old school way to do web and maybe not very compatible with forms text editors etc. Konva is interesting. But as one of their demos they showcased plonto dev made with konva. Its a good case of designer app. Are there any other open source frrameworks for building something like photoshop online / figma?
Assistant
You're absolutely right to be thinking critically about the tools and frameworks — especially if you're aiming to build a powerful diagramming or design tool like Figma, Photoshop, or even Canva.
Let’s break down your thoughts and then go deeper into modern, open-source frameworks and libraries that can help you build something like Figma or Photoshop online, including real-world examples and alternatives to Konva.js.
✅ Your Observations (and Why They’re Spot On)
Tool
Your Thought
Reality Check
Fabric.js
Too basic
True for complex apps; great for simple canvas editing
Paper.js
Feels old, not form-friendly
It's powerful but has a steeper learning curve and less integration with modern UI stacks
Konva.js
Interesting; used by Plonto.dev
Yes! A solid choice for structured canvas-based editors
🔧 What You Need for a Photoshop/Figma-like App
To build a professional-grade editor, you’ll likely need:
A fast 2D rendering engine using WebGL (with Canvas fallback).
Great for high-performance apps.
Used in games, visualizers, and editors.
Use Case:
If you want of many objects.
User
Okey so in which of this frameworks can i add to "diagraming board" a block which includes some complex ui component like monaco code editor?
Assistant
Great question! If you're building a diagramming or design app and want to embed complex UI components like the Monaco Editor (used in VS Code) inside diagram blocks, your choice of framework becomes more nuanced.
Let’s clarify what this means:
🧩 What You Want:
A canvas-based diagram editor
Ability to place "blocks" on the canvas
One or more blocks contain rich UI components, e.g.:
Monaco Editor
Form inputs
Color pickers
Property panels
This is essentially creating an interactive node-based editor with embedded DOM elements — think of a visual programming tool (like Node-RED), Notion-style blocks, or even a hybrid code-diagram tool.
✅ Frameworks That Support This Use Case
1. Konva.js + React (Best Option)
Why it works: Konva supports React via react-konva, which lets you render regular HTML/DOM elements outside of the canvas, then position them over the canvas using absolute positioning.
You can render a <textarea>, <input>, or even an entire Monaco Editor component as a sibling or overlay on top of the canvas when a block is selected.
🔧 How to do it:
Render Konva canvas normally
When a block is clicked, show a floating <div> with the Monaco Editor positioned above the canvas
Sync changes from the editor back into your node data model
SvelteKit + Plait or Custom Renderer + Yjs (for collaboration)
📌 Final Recommendation
If you're leaning toward Konva, keep going — it's one of the best open options for structured canvas editing. But also explore:
Plait: Modular and modern alternative
Tldraw: Great UX/UI, good codebase to study
PixiJS: If you want extreme performance
💡 Want a Starter Template?
I can help you generate a starter template using any of these frameworks (React + Konva, Svelte + Plait, etc.) — just tell me which stack you're leaning toward.
Would you like a minimal working example of a diagram editor with drag, select, resize built with one of these tools?
Why it works: Plait is built to be modular and designed for embedding rich content inside shapes/nodes.
It's inspired by Figma and allows developers to plug in custom rendering and editing behavior.
Since it uses React under the hood, you can easily embed any React component — including Monaco.
Great for future-proofing if you plan to support plugins, collaboration, etc.
3. Tldraw (Figma-like Editor)
Why it works: Tldraw is open source and highly extensible. While it doesn't directly support embedding editors like Monaco yet, its architecture makes it possible.
It uses a custom renderer and abstracts document state well.
You'd have to build a plugin or custom shape type that opens an overlay editor.