[5 Mins Docker] Build an AI-driven Online Chart Editor – Next-AI-Draw.io
Next-AI-Draw.io is a Next.js web application that integrates AI capabilities and seamlessly integrates with draw.io charts. Create, modify, and enhance charts using natural language commands and AI-assisted visualizations.
Introduction: https://next-ai-drawio.jiang.jp/about
Demo: https://next-ai-drawio.jiang.jp
Previously, I had a post [5 Mins Docker] Create Own Drawing Websites (Mindmap, Draw.io, Excalidraw) in Free Web Service Providers (Koyeb, Fly.io, Render) to show you how to create your own chart drawing site, such as Mindmap, draw.io, or Excalidraw. This one is powered with openai to give you a completely new way to start to draw those charts.
Features
- LLM-Powered Diagram Creation: Leverage Large Language Models to create and manipulate draw.io diagrams directly through natural language commands
- Image-Based Diagram Replication: Upload existing diagrams or images and have the AI replicate and enhance them automatically
- PDF & Text File Upload: Upload PDF documents and text files to extract content and generate diagrams from existing documents
- AI Reasoning Display: View the AI's thinking process for supported models (OpenAI o1/o3, Gemini, Claude, etc.)
- Diagram History: Comprehensive version control that tracks all changes, allowing you to view and restore previous versions of your diagrams before the AI editing.
- Interactive Chat Interface: Communicate with AI to refine your diagrams in real-time
- Cloud Architecture Diagram Support: Specialized support for generating cloud architecture diagrams (AWS, GCP, Azure)
- Animated Connectors: Create dynamic and animated connectors between diagram elements for better visualization
Steps to run with your own Docker
1 Get your own API Key
access this url: https://platform.openai.com/settings/organization/api-keys
Log in to get your own existing key or create a new key
2 Docker Run Command Template
docker run -d -p 3000:3000 / -e AI_PROVIDER=openai / -e AI_MODEL=gpt-4o / -e OPENAI_API_KEY=your_api_key / ghcr.io/dayuanjiang/next-ai-draw-io:latest
Or use an env file:
cp env.example .env # Edit .env with your configuration docker run -d -p 3000:3000 --env-file .env ghcr.io/dayuanjiang/next-ai-draw-io:latest
3 Modify with your own key
docker run -d -p 3000:3000 / -e AI_PROVIDER=openai / -e AI_MODEL=gpt-4o / -e OPENAI_API_KEY=sk-proj-_nbGvXgXbGUBu-BY75yGMFMTGLcJ2ODe867YDPCj3nlEDUnnhHTwzTuU3HRnsrgXvY1h9dGgoraST3BlbkFJW5L057B3Z00_X8vFAbN67qLqsfLRY9M_7kKGPkN0AO7bV4UB0xVl7QTGjqNQWDreNxtfi619JCwA / ghcr.io/dayuanjiang/next-ai-draw-io:latest
4 Access http://<IP / localhost /127.0.0.1>:3000 in your browser to see the application.
Use Your Own Domain (Cloudflare)
Maintenance your Docker
Videos
References
- https://blog.laoda.de/archives/docker-compose-install-next-ai-draw-io
- https://blog.51sec.org/2024/06/5-mins-docker-create-your-own-free.html
版权声明:
作者:congcong
链接:https://www.techfm.club/p/229774.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。


共有 0 条评论