Skip to content

ad1992/ExcaliReact

Repository files navigation

ExcaliReact

Experimental: Canvas to Code - Transform your Excalidraw sketches into React components! Status

A fun, experimental project that bridges the gap between design and development. Sketch your ideas in Excalidraw and watch them transform to React Components.

excalireact-demo.mov

πŸͺ„ Try It Now

See ExcaliReact in Action

Why

As a long-term user and maintainer of Excalidraw, I always use Excalidraw for any mockups or diagrams and want to turn them into code.

I wanted to go deeper into how to transform canvas to code and hence started on this experimental project to achieve the same. Currently this project is heavily in progress.

🎯 Features

  • Real-time conversion - See your React code update as you sketch
  • UI Elements - Built-in buttons, inputs, and links
  • Live preview - Toggle between sketch and generated code
  • Monaco editor - Full-featured code editor with syntax highlighting
  • Export ready - Copy generated JSX directly to your project

πŸš€ Quick Start

Prerequisites

  • Node.js 20+
  • pnpm (recommended), yarn or npm

Installation

# Clone the repository
git clone git@github.com:ad1992/ExcaliReact.git
cd ExcaliReact
# Install dependencies
pnpm install
# Start the development server
pnpm dev

πŸ› οΈ Development

Available Scripts

# Development server
pnpm dev
# Build for production
pnpm build
# Preview production build
pnpm preview
# Lint code
pnpm lint

Tech Stack

  • React 19 - Latest React with concurrent features
  • Excalidraw - Canvas based editor for sketching hand-drawn like diagrams
  • TypeScript - Type-safe development
  • Vite - Fast build tool
  • Tailwind CSS - Utility first CSS framework
  • Monaco Editor - VS Code editor in the browser

🀝 Contribution

New contributions are most welcome. This is an experimental project with plenty of room for innovation.

Before you start: Please open an issue and lets discuss :).

πŸ’– Made with Love

Built as a fun experiment to explore the intersection of design and development.

© 2025 ExcaliReact. Made with ❀️

About

Turn your Excalidraw sketches into ready-to-use React components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages