lnkiai/m3e-canvas
Developer ToolsBrowser sketchpad for Material 3 Expressive screens that turns a linked flow into a prompt for AI coding tools.
What it is
M3E Canvas is an open-source sketchpad for designing app screens from real Material 3 Expressive components, entirely in the browser. You drag parts such as buttons, FABs, bars, cards, sheets and pickers onto phone or desktop screens, link tappable parts to other screens, preview transitions, and then copy a written brief that an AI coding tool can turn into a working app. It targets designers and developers who want a quick, structured handoff from a visual idea to a coding agent rather than a static mockup.
The output is the differentiator: instead of exporting an image, the canvas describes rows, overlaps and aligned grids so the generated layout preserves them README. Prompts can cover the whole design or one screen, can be edited before copying, and are available in Japanese, English, Chinese or Korean. A share link opens the same design on another canvas, and an agent instruction pointing at agent.md lets Claude Code or Codex sketch a described design and reply with such a link.
Quick start
No account or installation is needed for the hosted version; open the browser app and start placing parts. The typical flow is:
- Drag parts from the parts panel onto a screen. They snap on a 4dp grid with alignment guides.
- Select a tappable part, set a target screen or
back, and choose a transition. PressPto preview the linked flow. - Open the prompt panel, choose Android or web as the target, edit the text if needed, and copy it into your AI coding tool. You can also save a screen as PNG.
To run it locally, use the documented commands README:
npm install
npm run dev # http://localhost:3000
npm run build # static export to ./out
For hosting under a sub-path such as a GitHub Pages project site, set NEXT_PUBLIC_BASE_PATH=/your-repo at build time; the included workflow publishes out/ on pushes to main.
Requirements and limits
The app is a static Next.js export, so self-hosting needs Node tooling for the build but no application server afterwards. The full editor is aimed at desktop browsers; on a phone, the editor is reduced to one fixed screen and a buttons-only interface with bottom sheets. Designs autosave in the browser, so clearing site data removes local work unless it has been shared or exported.
The optional AI helper requires your own API key for OpenAI, Claude, Gemini or DeepSeek. Requests go directly from the browser to the provider, and keys stay in the browser, but that also means the provider receives your prompts and any notes you include. The project is MIT-licensed.
HotRepo's take
M3E Canvas was recorded on the TypeScript daily list on 2026-11-17 at 17th place with 101 stars gained that day; no all-language daily rank is recorded for the repository. The 10,510 stars and 1,175 forks show that attention has translated into a substantial fork base, but a single daily snapshot supports only that day's fact, not a trend. What stands out technically is the deliberate pairing of a visual editor with prompt generation for coding agents, supported by a share-link and agent-instruction path rather than a closed export format.
Written by AI from the project's README, updated . The project's own docs are the source of truth.
You might also like
- deeplethe/solid-glassA shadcn/ui design system with a glass material aimed at chat and agent interfaces.
- opencoredev/islandcnA React Dynamic Island component installed through shadcn that hosts uploads, timers, calls and other activities atop the app.
- berkantay/gpucanvasGPU-rendered infinite canvas for thousands of live DOM and React nodes, with an editor, shader effects, transitions, snapshots and an agent-readable view.
- nolly-studio/cult-uiAn open-source library of 150+ animated shadcn/ui components for React and Next.js developers.
- figma/mcp-server-guideConnect AI coding agents to Figma files so they can generate code from designs and write back to the canvas.