I Open-Sourced My AI Infinite Canvas Frontend—And Hooked It Into Claude Code via MCP

2026-12-03来源 dev.toEnglish
I Open-Sourced My AI Infinite Canvas Frontend—And Hooked It Into Claude Code via MCP

If you’ve ever tried doing multi-step AI image or video generation inside a standard linear chat interface, you know how quickly it falls apart. After 30 generations, your character references, prompts, style tests, and half-broken video clips are buried in an endless scroll.

On top of that, most AI creative platforms force you to buy proprietary credit packs at steep markups—even when you already have your own API keys or self-hosted gateways like New API / OneAPI.

So I built DramaCanvas—an infinite-canvas workspace for AI image, video, and filmmaking workflows—and open-sourced the frontend on GitHub.

Here is a breakdown of the workflow and the dev-centric architecture behind it.

1. Replacing Linear Chat with a Node-Based Infinite Canvas

Instead of scrolling through a chat log, every asset—character sheets, scene references, 3D camera layouts, generated videos, and audio—lives as a movable node on an infinite canvas.

  • @ Node Referencing: When prompting a new image or video, you can directly @ mention existing nodes on the canvas to lock in character consistency, motion, or color grading.
  • Built-in Production Tools: Rather than exporting to three different apps, common post-processing steps live right on the canvas: subject/background layer splitting, relighting, multi-angle camera shifts, clip retakes (regenerating just a broken segment), and a multi-track timeline editor.
  • 3D World Engine (Pre-vis): Pure text-to-video prompting is basically gambling on camera angles. I added a lightweight 3D staging tool where you can position actors, lighting, and camera movement first, then export depth/clay passes to guide the video models.
  • Canvas-Aware Agent: A built-in side-panel Agent can read the current graph state—helping break scripts into shot lists, organizing messy nodes, or batch-triggering generations.

2. Generating Images & Videos Directly from Claude Code / Cursor (MCP)

One of my favorite additions is exposing the canvas over a standard Model Context Protocol (MCP) server.

When I’m coding in the terminal and need UI assets, product mockups, or promo clips, I don't want to context-switch to a browser. Once you grab an API key, you can hook DramaCanvas directly into Claude Code, Cursor, or Codex with a single command:

claude mcp add --transport http dramacanva [https://dramacanva.com/api/mcp](https://dramacanva.com/api/mcp) \ --header "Authorization: Bearer $DRAMACANVA_API_KEY" 

From there, your coding agent can read/write canvas nodes and trigger image or video generations straight from your terminal workflow.

3. Local-First BYOK (Bring Your Own Key) with Zero Markup

As developers, most of us already manage our own API keys or aggregation gateways. Locking users into platform credits felt completely backwards.

DramaCanvas supports BYOK out of the box—compatible with OpenAI, Gemini, Claude, New API, Sub2API, CLIProxyAPI, and custom endpoints:

  • Client-Side Key Storage: Your API keys stay locally in your browser storage. Our servers and logs never store plaintext keys.
  • 0% Platform Markup: You pay your model provider directly. (Note: BYOK workspace access is currently completely free for 2 months if you want to test it with your own keys.)

4. What’s in the Open-Source Repo

I’ve open-sourced the canvas frontend so anyone interested in infinite-canvas interactions, node-graph state management, or building AI media workspaces can dig into the code or fork it for their own setups:

👉 https://github.com/echoD886/dramacanva

Looking for Feedback

The codebase is actively evolving as I use it daily for my own projects. If you check out the repo or test the MCP integration:

  1. How are you currently handling multi-step media generation inside your Claude Code / Cursor workflows?
  2. Any edge cases or features you'd want to see in an open-source canvas frontend?

Drop a comment below—and if you find the canvas implementation useful, a ⭐ on GitHub helps a ton!

原文:https://www.a8q9.cn/en/article/i-open-sourced-my-ai-infinite-canvas-frontend-and-hooked-it-into-claude-code-via-54585e.html

相关文章