Sign inSign up

vndangkhoa/sys-arc-visl

By vndangkhoa

•Updated 9 months ago

AI-Powered Diagram Editor — Transform ideas into beautiful, interactive flowcharts

Image
0

1.8K

vndangkhoa/sys-arc-visl repository overview

ā šŸ”® SysVis.AI - System Design Visualizer

AI-Powered Diagram Editor — Transform ideas into beautiful, interactive flowcharts using natural language, images, or Mermaid code.

Docker Hub GitHub

⁠✨ Features

  • šŸ¤– AI-Powered Generation — Generates complex diagrams from text prompts using Qwen3-0.6B (local browser) or Cloud AI.
  • šŸ‘ļø Vision-to-Diagram — ViT-GPT2 powered analysis converts screenshots and sketches into editable layouts entirely in the browser.
  • šŸ–Œļø Unified Toolkit — A clean, consolidated toolbar for critical actions (Zoom, Layout, Pan/Select) keeps the canvas "void-like".
  • šŸ—ŗļø MiniMap Overlay — Navigational aid for large diagrams, unobtrusively positioned in the bottom-right.
  • šŸ’” Smart Guidance — Context-aware tips and rotation suggestions when looking at empty space.
  • šŸ“ Theme-Aware Code Editor — Monaco editor that automatically syncs with your Light/Dark aesthetic.
  • šŸŽØ "Void" Aesthetic — Premium glassmorphism design with deep blur effects and cinematic transitions.
  • āŖ Undo/Redo — Full history support with time-travel capabilities for safe editing.
  • šŸ“ Optimized Layout — Enhanced Dagre layout engine with smart spacing to prevent overlapping text.

ā šŸš€ Quick Start

docker run -d -p 8338:80 vndangkhoa/sys-arc-visl:latest

Open http://localhost:8338⁠ in your browser.

ā šŸ’» Local Development
# Clone the repository
git clone https://github.com/vndangkhoa/kv-graph.git
cd kv-graph

# Install dependencies
npm install

# Start development server
npm run dev

Open http://localhost:5173⁠ in your browser.

⁠Prerequisites
  • Node.js 18+
  • npm or pnpm
  • WebGPU-compatible browser (Chrome 113+, Edge) for In-Browser AI

⁠🧠 AI Configuration

KV-Graph supports a Local-First AI architecture, running powerful models directly in your browser via WebGPU.

⁠🌐 In-Browser Mode (Privacy First)

Runs entirely on your device. No data leaves your machine.

CapabilityModelSizeSpeed
Text GenerationQwen3-0.6B~500MB~30-60s
Vision AnalysisViT-GPT2~300MB~8-10s

Note: First-time load requires downloading model weights.

ā ā˜ļø Cloud Mode (Fast & Powerful)

Connect to external providers for enhanced capabilities.

ProviderModelAPI Key Required
Google GeminiGemini 2.0 Flashāœ… (Free tier available)
OpenAIGPT-4 Visionāœ…
OllamaCustomLocal URL

Configure your AI provider in Settings (āš™ļø icon).

ā šŸ“ Project Structure

kv-graph/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ components/        # React components
│   │   ā”œā”€ā”€ nodes/         # Custom React Flow nodes
│   │   ā”œā”€ā”€ edges/         # Custom React Flow edges
│   │   ā”œā”€ā”€ editor/        # Monaco Code Editor
│   │   └── ui/            # UI Kit (Glassware)
│   ā”œā”€ā”€ hooks/             # Custom React hooks
│   ā”œā”€ā”€ lib/               # Core Logic
│   │   ā”œā”€ā”€ aiService.ts   # AI Orchestrator
│   │   ā”œā”€ā”€ webLlmService.ts # Local LLM Engine (Qwen3)
│   │   ā”œā”€ā”€ visionService.ts # Local Vision Engine (ViT-GPT2)
│   │   └── layoutEngine.ts # Dagre Auto-Layout
│   ā”œā”€ā”€ pages/             # Route pages
│   ā”œā”€ā”€ store/             # Zustand Global State
│   └── types/             # TypeScript interfaces
ā”œā”€ā”€ public/                # Static assets
ā”œā”€ā”€ Dockerfile             # Docker build
└── docker-compose.yml     # Docker Compose

ā šŸ› ļø Tech Stack

CategoryTechnology
FrameworkReact 19 + TypeScript
Build ToolVite 7
StylingTailwind CSS 4
AI InferenceWebLLM (WebGPU) + Transformers.js
DiagrammingReact Flow (XY Flow)
Code EditorMonaco Editor (Theme Aware)
StateZustand
IconsLucide React

ā šŸ“¤ Export Formats

FormatDescription
PNGHigh-resolution raster image (3x pixel ratio)
JPGCompressed image format
SVGVector graphics (scalable, high-fidelity)
JSONFull diagram data (nodes, edges, metadata)
MermaidMermaid.js code for use elsewhere
ReactComplete React component with React Flow

ā āŒØļø Keyboard Shortcuts

ShortcutAction
Ctrl/⌘ + SSave diagram
Ctrl/⌘ + EExport diagram
Ctrl/⌘ + ZUndo
Ctrl/⌘ + Shift + ZRedo
Delete/BackspaceDelete selected node
EscapeDeselect / Close panel

ā šŸ—ŗļø Roadmap

  • Undo/Redo history
  • Browser-based AI (WebLLM + Transformers.js)
  • Vision-to-Diagram (ViT-GPT2)
  • Cloud AI integration (Gemini, OpenAI)
  • Collaborative editing
  • Plugin system

ā šŸ“„ License

MIT License — see LICENSE⁠ for details.

ā šŸ™ Acknowledgments


Made with ā¤ļø by vndangkhoa⁠

Tag summary

Content type

Image

Digest

sha256:8729990c4…

Size

35.5 MB

Last updated

9 months ago

docker pull vndangkhoa/sys-arc-visl