Interactive Node-Based App Powered by tldraw + AI
📺 Youtube - 👉 Tutorial
-
Visual AI Canvas
- Create custom shapes connected to each other
- Automatically transfer context between nodes
- AI-generated responses using all related nodes
-
Intelligent Canvas
- Editable visual flow with programmable behavior
- Automatic propagation of inputs between shapes
- Integration with OpenAI or any language API
-
Modern UI
- 100% visual interface with tldraw SDK
- Responsive and stylized components with TailwindCSS
- Frontend: Next.js 15 (App Router), TailwindCSS
- Canvas Engine: tldraw SDK
- AI: OpenAI API (or your favorite provider)
- Tools: TypeScript, Zustand, Vercel AI SDK (optional)
- Node.js 20+ / pnpm 9+
- OpenAI API Key (or another provider)
- Vercel account for deployment (optional)
git clone https://github.com/CarlosPProjects/tldraw-ai
cd tldraw-ai
bun install # o pnpm install
- Create a
.env.local
file:
OPENAI_API_KEY=your_openai_key
You can add more keys depending on the AI provider you use.
bun run dev
🟪 Input Node: "Create content ideas for YouTube"
⬇
🟪 Instruction Node: "Simplify and categorize the ideas"
⬇
🟪 Output: "1. Step-by-step tutorials. 2. Comparison videos. 3. Educational shorts."
🟪 Input: "Use Next.js and Tailwind in each project"
🟪 Input: "Create visual tools"
⬇
🟪 Combined Result: "Design a visual project generator with Next.js + Tailwind for quick MVPs."
- Deploy on Vercel:
vercel
- Add the same variables to the Vercel dashboard.
/src
├── app # Main routes and layout
├── components # Custom UI and Shapes
├── editor # Tldraw editor logic
└── lib # Utility functions
Need Help?
Open an issue or contact [email protected]