Skip to content

πŸ“‰ This project converts structured JSON data into visually appealing diagrams, simplifying the visualization of system architectures, data flows, and relationships.

Notifications You must be signed in to change notification settings

fordus/jsonflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

jsonflow

Create diagrams instantly using only JSON. Describe what you need to any AI, get a JSON back, and paste it in β€” your diagram appears in seconds.

Perfect for rapid documentation, architecture overviews, presentations, and anything where you need a clear visual fast.

How it works

  1. Click Schema to copy the JSON spec to your clipboard
  2. Paste it into any AI (Claude, ChatGPT, etc.) and describe the diagram you need
  3. Copy the generated JSON and import it β€” your diagram appears instantly

No drag-and-drop marathon. No manual alignment. Just describe β†’ generate β†’ done.

Features

  • JSON-driven β€” define your entire diagram as a clean JSON structure
  • 8 node types β€” process, decision, database, service, pipeline, input, output, and text
  • Clusters β€” group related nodes into labeled sections
  • Auto-layout β€” topological algorithm arranges nodes in logical layers automatically
  • Live sync β€” edit visually or via JSON; both stay in sync
  • 50+ icons β€” Lucide icon library built in, assignable per node
  • Custom styling β€” border colors, background colors, dashed borders per node
  • Animated edges β€” connections can be animated or dashed
  • Export as PNG β€” download your diagram as an image
  • Dark / light theme β€” works in both

JSON Schema

{
  "nodes": [
    {
      "id": "string",
      "type": "process | decision | database | service | pipeline | input | output | text",
      "label": "string",
      "description": "string (optional)",
      "icon": "lucide-icon-name (optional)",
      "cluster": "cluster-id (optional)",
      "tags": ["string"],
      "borderColor": "#hex (optional)",
      "bgColor": "#hex (optional)",
      "dashedBorder": false
    }
  ],
  "connections": [
    {
      "from": "node-id",
      "to": "node-id",
      "label": "string (optional)",
      "animated": false,
      "dashed": false
    }
  ],
  "clusters": [
    {
      "id": "string",
      "name": "string",
      "color": "#hex (optional)",
      "dashedBorder": false
    }
  ]
}

Installation

git clone https://github.com/fordus/jsonflow.git
cd jsonflow
pnpm install
pnpm dev

Tech stack

  • Next.js 16 + React 19 + TypeScript
  • React Flow β€” canvas and node rendering
  • Tailwind CSS + Radix UI
  • Lucide icons
  • html-to-image β€” PNG export

License

MIT

About

πŸ“‰ This project converts structured JSON data into visually appealing diagrams, simplifying the visualization of system architectures, data flows, and relationships.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages