No description
Find a file
SysVis AI 5c4b83203c feat: add mobile-first UX improvements and theme-aware exports
- Mobile hamburger header with slide-in menu
- Mobile bottom action bar for canvas controls
- Full-screen settings modal on mobile
- Mobile empty state with Get Started prompt
- Theme-aware PNG/JPG/SVG exports (respects light/dark mode)
- Added file-saver package for reliable cross-browser downloads
- Updated README with new features and Docker Hub instructions
2025-12-29 09:59:25 +07:00
public feat: add mobile-first UX improvements and theme-aware exports 2025-12-29 09:59:25 +07:00
scripts feat: add mobile-first UX improvements and theme-aware exports 2025-12-29 09:59:25 +07:00
src feat: add mobile-first UX improvements and theme-aware exports 2025-12-29 09:59:25 +07:00
.env.example feat: v1.1.0 release - integrated AI vision, smart tools, and themes 2025-12-27 21:04:13 +07:00
.gitignore feat: v1.1.0 release - integrated AI vision, smart tools, and themes 2025-12-27 21:04:13 +07:00
.prettierignore feat: v1.1.0 release - integrated AI vision, smart tools, and themes 2025-12-27 21:04:13 +07:00
.prettierrc feat: v1.1.0 release - integrated AI vision, smart tools, and themes 2025-12-27 21:04:13 +07:00
docker-compose.yml feat: add mobile-first UX improvements and theme-aware exports 2025-12-29 09:59:25 +07:00
Dockerfile feat: add mobile-first UX improvements and theme-aware exports 2025-12-29 09:59:25 +07:00
eslint.config.js feat: v1.1.0 release - integrated AI vision, smart tools, and themes 2025-12-27 21:04:13 +07:00
index.html feat: enhance layout engine, edge styles, and editor header 2025-12-28 19:33:50 +07:00
nginx.conf feat: add mobile-first UX improvements and theme-aware exports 2025-12-29 09:59:25 +07:00
package-lock.json feat: add mobile-first UX improvements and theme-aware exports 2025-12-29 09:59:25 +07:00
package.json feat: add mobile-first UX improvements and theme-aware exports 2025-12-29 09:59:25 +07:00
README.md feat: optimize browser AI - enhanced vision descriptions, faster text generation 2025-12-28 22:15:09 +07:00
tsconfig.app.json feat: v1.1.0 release - integrated AI vision, smart tools, and themes 2025-12-27 21:04:13 +07:00
tsconfig.json feat: v1.1.0 release - integrated AI vision, smart tools, and themes 2025-12-27 21:04:13 +07:00
tsconfig.node.json feat: v1.1.0 release - integrated AI vision, smart tools, and themes 2025-12-27 21:04:13 +07:00
vite.config.ts feat: v1.1.0 release - integrated AI vision, smart tools, and themes 2025-12-27 21:04:13 +07:00
vitest.config.ts feat: add mobile-first UX improvements and theme-aware exports 2025-12-29 09:59:25 +07:00

🔮 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-DiagramViT-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.

Capability Model Size Speed
Text Generation Qwen3-0.6B ~500MB ~30-60s
Vision Analysis ViT-GPT2 ~300MB ~8-10s

Note: First-time load requires downloading model weights.

☁️ Cloud Mode (Fast & Powerful)

Connect to external providers for enhanced capabilities.

Provider Model API Key Required
Google Gemini Gemini 2.0 Flash (Free tier available)
OpenAI GPT-4 Vision
Ollama Custom Local 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

Category Technology
Framework React 19 + TypeScript
Build Tool Vite 7
Styling Tailwind CSS 4
AI Inference WebLLM (WebGPU) + Transformers.js
Diagramming React Flow (XY Flow)
Code Editor Monaco Editor (Theme Aware)
State Zustand
Icons Lucide React

📤 Export Formats

Format Description
PNG High-resolution raster image (3x pixel ratio)
JPG Compressed image format
SVG Vector graphics (scalable, high-fidelity)
JSON Full diagram data (nodes, edges, metadata)
Mermaid Mermaid.js code for use elsewhere
React Complete React component with React Flow

⌨️ Keyboard Shortcuts

Shortcut Action
Ctrl/⌘ + S Save diagram
Ctrl/⌘ + E Export diagram
Ctrl/⌘ + Z Undo
Ctrl/⌘ + Shift + Z Redo
Delete/Backspace Delete selected node
Escape Deselect / 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