Files
next-ai-draw-io/docs/ja/README_JA.md
dayuan.jiang a3814f702d feat(diagram-engine): flowcharts, swimlanes, sequence diagrams and mind maps
Extends the declarative engine past cloud architecture. The tool routing was
divided by icon library — AWS through the engine, everything else hand-written
XML — which is the wrong axis. What matters is the LAYOUT SHAPE.

Measured first: a six-step approval flow declared in its natural order comes out
as one column, because the layout only arranges what nesting tells it to and
never looked at the arrows. That forces the arrow from the decision to its second
branch to jump over the first branch.

graph.ts computes what the layout should have looked at: layer assignment by
longest path, cycle breaking so a loop is drawn without setting the order, and
barycentre sweeping to cut edge crossings. It emits ordinary container
operations, so layout, routing and round-tripping are unchanged — reaching zero
arrows-through-boxes on a 14-node pipeline and zero crossings on a bipartite
graph whose declared order forces three.

Three new container kinds, each because one layout rule cannot serve them all:

  pool     — swimlanes. Lanes are real cells and each step is parented to its
             band, so dragging a step to another role records the change.
  sequence — participants across the top, one lifeline cell per participant so
             head and line stay together on a drag. Messages bypass the router:
             a message's height IS its order.
  radial   — mind maps and org charts. Children are a flat list and the
             hierarchy comes from the links, because a branch is a box and a box
             cannot hold children.

Flowchart box shapes (diamond, stadium, parallelogram, document) so a reader can
tell a branch from a step.

Two bugs the new tests caught: the duplicate-link guard blocked a sequence
diagram from having two messages between the same pair, and the fallback message
numbering was shared across containers, pushing a second diagram's messages off
its own lifelines.

523 unit tests and 17 diagram e2e tests pass. Every kind verified round-trip
stable to a fixed point, and rendered in a real browser — draw.io keeps the
lifeline shape and the lane markers.
2026-08-09 13:49:11 +09:00

14 KiB
Raw Blame History

Next AI Draw.io

AI搭載のダイアグラム作成ツール - チャット、描画、可視化

English | 中文 | 日本語

TrendShift

License: Apache 2.0 Next.js React Sponsor

Live Demo

AI機能とdraw.ioダイアグラムを統合したNext.jsウェブアプリケーションです。自然言語コマンドとAI支援の可視化により、ダイアグラムを作成、修正、強化できます。

注: ByteDance Doubao のご支援により、デモサイトに強力な glm-4.7 モデルを導入しました!

https://github.com/user-attachments/assets/b2eef5f3-b335-4e71-a755-dc2e80931979

目次

以下はいくつかのプロンプト例と生成されたダイアグラムです:

アニメーションTransformerコネクタ

Prompt: Give me a **animated connector** diagram of transformer's architecture.

アニメーションコネクタ付きTransformerアーキテクチャ
RAG技術ダイアグラム

Prompt: Generate a RAG architecture diagram for **chat application**. Use connected diagram for data ingestion

RAGアーキテクチャ図
ReactとAWSによる認証

Prompt: Generate authentication process using React with **AWS**. Use Serverless architecture.

認証アーキテクチャ図
オープンイノベーション

Prompt: Create visualization of Henry Chesbrough's Open Innovation model.

オープンイノベーション図
猫のスケッチ

Prompt: Draw a cute cat for me.

猫の絵

機能

  • LLM搭載のダイアグラム作成大規模言語モデルを活用して、自然言語コマンドで直接draw.ioダイアグラムを作成・操作
  • 画像ベースのダイアグラム複製既存のダイアグラムや画像をアップロードし、AIが自動的に複製・強化
  • PDFとテキストファイルのアップロードPDFドキュメントやテキストファイルをアップロードして、既存のドキュメントからコンテンツを抽出し、ダイアグラムを生成
  • AI推論プロセス表示サポートされているモデルOpenAI o1/o3、Gemini、ClaudeなどのAIの思考プロセスを表示
  • ダイアグラム履歴すべての変更を追跡する包括的なバージョン管理。AI編集前のダイアグラムの以前のバージョンを表示・復元可能
  • インタラクティブなチャットインターフェースAIとリアルタイムでコミュニケーションしてダイアグラムを改善
  • クラウドアーキテクチャダイアグラムサポートクラウドアーキテクチャダイアグラムの生成を専門的にサポートAWS、GCP、Azure
  • レイアウトの自動計算アーキテクチャ図、フローチャート、スイムレーン図BPMN、シーケンス図、マインドマップ、組織図では、AI は構造だけ——何が何を含むか、何が何を指すか——を指定し、座標・サイズ・矢印の経路はすべてアプリが計算します。コンテナは必ず中身が収まるサイズになり、同じ階層の要素が重なることはなく、矢印は本来通り抜けてしまう図形を避けて引かれます。その後に手で動かしたり色を変えた部分は図の一部として読み戻されるため、次の編集で元に戻されることはありません。
  • アニメーションコネクタ:より良い可視化のためにダイアグラム要素間に動的でアニメーション化されたコネクタを作成

MCPサーバー

MCPModel Context Protocolを介して、Claude Desktop、Cursor、VS CodeなどのAIエージェントでNext AI Draw.ioを使用できます。

{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": ["@next-ai-drawio/mcp-server@latest"]
    }
  }
}

Claude Code CLI

claude mcp add drawio -- npx @next-ai-drawio/mcp-server@latest

Claudeにダイアグラムの作成を依頼

「ログイン、MFA、セッション管理を含むユーザー認証のフローチャートを作成してください」

ダイアグラムがリアルタイムでブラウザに表示されます!

詳細はMCPサーバーREADMEをご覧くださいVS Code、Cursorなどのクライアント設定も含む

はじめに

オンラインで試す

インストール不要!デモサイトで直接お試しください:

Live Demo

自分のAPIキーを使用自分のAPIキーを使用することで、デモサイトの利用制限を回避できます。チャットパネルの設定アイコンをクリックして、プロバイダーとAPIキーを設定してください。キーはブラウザのローカルに保存され、サーバーには保存されません。

デスクトップアプリケーション

Releases ページからお使いのプラットフォーム用のネイティブデスクトップアプリをダウンロードしてください:

対応プラットフォームWindows、macOS、Linux。

Dockerで実行

Docker ガイドを参照

インストール

  1. リポジトリをクローン:
git clone https://github.com/DayuanJiang/next-ai-draw-io
cd next-ai-draw-io
npm install
cp env.example .env.local

詳細な設定手順についてはプロバイダー設定ガイドを参照してください。

  1. 開発サーバーを起動:
npm run dev
  1. ブラウザでhttp://localhost:6002を開いてアプリケーションを確認。

デプロイ

EdgeOne Pagesへのデプロイ

Tencent EdgeOne Pagesを使用してワンクリックでデプロイできます。

このボタンでデプロイ:

Deploy to EdgeOne Pages

詳細はTencent EdgeOne Pagesドキュメントをご覧ください。

また、Tencent EdgeOne Pagesでデプロイすると、DeepSeekモデルの毎日の無料クォータが付与されます。

Vercelへのデプロイ

Deploy with Vercel

Next.jsアプリをデプロイする最も簡単な方法は、Next.jsの作成者によるVercelプラットフォームを使用することです。ローカルの.env.localファイルと同様に、Vercelダッシュボードで環境変数を設定してください。

詳細はNext.jsデプロイメントドキュメントをご覧ください。

Cloudflare Workersへのデプロイ

Cloudflare デプロイガイドを参照

マルチプロバイダーサポート

  • ByteDance Doubao
  • AWS Bedrockデフォルト
  • OpenAI
  • Anthropic
  • Google AI
  • Google Vertex AI
  • Azure OpenAI
  • Ollama
  • OpenRouter
  • AIHubMix
  • DeepSeek
  • SiliconFlow
  • ModelScope
  • SGLang
  • Vercel AI Gateway

AWS BedrockとOpenRouter以外のすべてのプロバイダーはカスタムエンドポイントをサポートしています。

📖 詳細なプロバイダー設定ガイド - 各プロバイダーの設定手順をご覧ください。

サーバーサイドマルチモデル設定

管理者は、ユーザーが個人のAPIキーを提供することなく利用できる複数のサーバーサイドモデルを設定できます。AI_MODELS_CONFIG 環境変数JSON文字列または ai-models.json ファイルで設定します。同一プロバイダー内の複数モデルだけが必要な場合は、AI_MODEL にカンマ区切りでモデルIDを列挙する簡易設定も使えます。

モデル要件このタスクは厳密なフォーマット制約draw.io XMLを持つ長文テキスト生成を伴うため、強力なモデル機能が必要です。Claude Sonnet 4.5、GPT-5.1、Gemini 3 Pro、DeepSeek V3.2/R1を推奨します。

注:claudeシリーズはAWS、Azure、GCPなどのクラウドアーキテクチャロゴ付きのdraw.ioダイアグラムで学習されているため、クラウドアーキテクチャダイアグラムを作成したい場合は最適な選択です。

管理パネル

ADMIN_PASSWORD 環境変数を設定して /admin にアクセスすると、.env を手動で編集する代わりに Web パネルでサーバー設定(モデル、アクセスコード、機能、可観測性、クォータ)を管理できます。

📖 管理パネルガイド — 有効化の方法、優先順位ルール、注意事項。

仕組み

本アプリケーションは以下の技術を使用しています:

  • Next.js:フロントエンドフレームワークとルーティング
  • Vercel AI SDKai + @ai-sdk/*ストリーミングAIレスポンスとマルチプロバイダーサポート
  • react-drawio:ダイアグラムの表現と操作

ダイアグラムはdraw.ioでレンダリングできるXMLとして表現されます。AIがコマンドを処理し、それに応じてこのXMLを生成または変更します。

サポート&お問い合わせ

デモサイトのAPIトークン使用を支援してくださったByteDance Doubaoに特別な感謝を申し上げます! ARKプラットフォームに登録すると、50万トークンが無料でもらえます

このプロジェクトが役に立ったら、ライブデモサイトのホスティングを支援するためにスポンサーをご検討ください!

サポートやお問い合わせについては、GitHubリポジトリでissueを開くか、メンテナーにご連絡ください

  • メールme[at]jiang.jp

よくある質問

一般的な問題と解決策については FAQ をご覧ください。

スター履歴

Star History Chart