Pretty Fish
Mermaid diagram workspace with live preview, an infinite canvas and multi-page projects, served from your own Worker
Pretty Fish editor with Mermaid ER diagram source on the left and the rendered ORDER entity on the canvas
Pretty Fish shows Mermaid code beside its rendered diagram, with export to SVG, PNG or Mermaid source. It works offline as a PWA and shares work as links that encode the diagram in the URL. AI agents can edit diagrams in an open browser tab through a hosted MCP endpoint backed by a Durable Object relay.
Templates cover 20 Mermaid diagram types, among them flowcharts and sequence, class, ER, state and Gantt diagrams. The preview updates with every edit, and built-in themes and per-diagram settings change the look. A reference docs panel explains the syntax next to the editor, and a presentation mode shows the work full screen. Agent access runs through a relay in the same Worker. The app creates a session with its own MCP URL, an MCP client sends commands to that URL, and the browser tab carries them out. On Cloudflare, one Worker serves the built React app from static assets and answers the /relay and /mcp routes. Each relay session lives in its own SQLite-backed Durable Object.
Built for: Developers and technical writers who draw diagrams in Mermaid and want a self-hosted editor
What you can use it for
- Write flowcharts and sequence diagrams in Mermaid with a live preview
- Keep a project's ER, state and architecture diagrams together across several pages
- Export diagrams as SVG or PNG for docs and slides
- Share a diagram as a link instead of a file
- Let an AI coding agent draw or edit diagrams through MCP
Deploy
CLI
Branch master
Needs Node.js 24 or later and a Wrangler login. Vite builds the app, and Wrangler creates the relay's Durable Object on deploy.
git clone https://github.com/pastelsky/prettyfish cd prettyfish npm install npx wrangler login npm run deploy
The deploy needs no secrets, resource IDs or config edits.
What it needs to run
- Durable ObjectsRelaySessionDurableObject
Good to know
Diagrams are kept in the browser and shared through URL-encoded state; the README describes no accounts or server-side storage. There is no Deploy to Cloudflare button. The README still describes a local agent bridge, but its code was removed in April 2026; only the hosted relay remains. The relay docs list session expiry, revocation and audit logging as still needed. The maintainer's PostHog key is built into src/lib/analytics.ts, so a self-hosted copy sends page views and usage events to a.pretty.fish until that file is changed. Young project: the repository was created in April 2026.
Cost on Cloudflare
Likely fits the free plan
Static assets and SQLite-backed Durable Objects are available on the Workers Free plan. Editing and rendering happen in the browser, so Worker code runs only for relay and MCP traffic.
The estimate is based on Cloudflare’s documented limits and the app’s configuration. What you pay depends on your usage and plan.
Where this comes from
- Repositoryhttps://github.com/pastelsky/prettyfish
- App websitehttps://pretty.fish
- Documentationhttps://github.com/pastelsky/prettyfish#readme
An alternative to Mermaid Chart.
Listing history
- Oct 3, 2026 · Pretty Fish listed
Similar apps
All Productivity apps
Renewal reminders for domains, servers and SaaS plans, with lunar calendar cycles and a spending dashboard
- Deploy
- One-click
- License
- MIT
- GitHub stars
- 392 stars
- Last commit

Self-hosted subscription ledger with renewal reminders in each user's timezone, budgets and calendar feeds
- Deploy
- One-click
- License
- MIT
- GitHub stars
- 271 stars
- Last commit

Mind-mapping app with a two-way Markdown editor that saves maps to a private GitHub, Gitea or GitLab repository
- Deploy
- CLI
- License
- MIT
- GitHub stars
- 151 stars
- Last commit