---
title: "Deploy next-ai-draw-io"
description: "AI-powered draw.io diagram generation and editing app built with Next.js"
category: "Observability"
url: https://railway.com/deploy/next-ai-draw-io
---

# Deploy next-ai-draw-io

AI-powered draw.io diagram generation and editing app built with Next.js

**[Deploy next-ai-draw-io on Railway](https://railway.com/template/next-ai-draw-io)**

- **Creator:** Ken Komatsu's Projects
- **Category:** Observability
- **Total deploys:** 1

## Template content

### next-ai-draw-io

- **Image:** ghcr.io/dayuanjiang/next-ai-draw-io:latest
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host Next AI Draw.io on Railway

## About Hosting

[Next AI Draw.io](https://github.com/DayuanJiang/next-ai-draw-io) is a Next.js-based AI diagram tool that integrates natural language prompting with draw.io rendering. It can generate and edit diagrams from text, image, PDF, and other inputs, then render directly in an interactive browser canvas.

This Railway template deploys the official upstream container image `ghcr.io/dayuanjiang/next-ai-draw-io:latest` as a single web service. The app listens on port `3000`, and Railway routes your public domain to that port.

## Why Deploy

- Fast one-service deployment with the official upstream image.
- Multi-provider AI support (OpenAI, Anthropic, Gemini, DeepSeek, OpenRouter, Bedrock, and more).
- No external database required for core functionality.
- Easy migration from local Docker setup to production on Railway.
- Works with your own model API keys and custom provider endpoints.

## Common Use Cases

- Build architecture diagrams from natural language prompts.
- Convert existing image/PDF/text inputs into editable draw.io diagrams.
- Host a private internal diagram assistant for teams.
- Run a self-hosted alternative to SaaS diagram copilots.

## Dependencies for Deployment

### Deployment Dependencies

| Item | Value | Notes |
|---|---|---|
| Container image | `ghcr.io/dayuanjiang/next-ai-draw-io:latest` | Official upstream image |
| Public HTTP port | `3000` | Railway should route traffic to this port |
| Required runtime vars | `PORT`, `AI_MODEL` | `AI_PROVIDER` optional when only one provider key is set |
| API credentials | At least one provider API key | e.g. `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GOOGLE_GENERATIVE_AI_API_KEY` |
| Optional vars | `NEXT_PUBLIC_DRAWIO_BASE_URL`, `ENABLE_PDF_INPUT`, `TEMPERATURE`, `NEXT_PUBLIC_SELFHOSTED` | Feature and behavior tuning |
| Database | Not required | Core app runs stateless for basic usage |

## Similar templates

- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click
- [Unwrapped Spotify Music Stats](https://railway.com/deploy/wide-bold) — Unwrapped Spotify Music Stats, Estatísticas de músicas disponíveis

Open this page in a browser: https://railway.com/deploy/next-ai-draw-io
