SD-Draw – Infinite Canvas Whiteboard React

Description
SD-Draw is a professional-grade infinite canvas web application built with the MERN stack, designed as a scalable foundation for creating whiteboard, diagramming, or Figma-like SaaS products.
It features a smooth, zoomable and pannable infinite workspace powered by a vector-based canvas engine, allowing users to draw, edit, and manage elements efficiently without performance loss.
The application includes a full suite of drawing tools such as freehand pencil, eraser, and geometric shapes (line, arrow, rectangle, circle), along with an advanced text system that seamlessly converts HTML input into editable vector elements.
A robust state management system using Zustand enables reliable undo/redo functionality with a complete history stack, while JWT-based authentication ensures that user data and canvases are securely stored and persisted via MongoDB. An in-memory fallback system is also implemented, allowing the app to function even when the database is unavailable.
The project is production-ready, with clear deployment strategies including Docker, Railway, Vercel, and AWS. It is ideal for developers or startups looking to save weeks of development time and build upon a solid, extensible canvas architecture.
Features
✔ Infinite zoomable canvas ✔ Smooth pan and zoom-to-cursor ✔ Pencil, shapes, arrows, eraser ✔ Editable text elements ✔ Undo / Redo history system ✔ JWT authentication system ✔ MongoDB data persistence ✔ Export to PNG ✔ Modular and scalable codebase ✔ Easy to customize
Requirements
- Node.js (v16 or higher) - MongoDB (local or Atlas) - Basic knowledge of JavaScript and React - Modern web browser
Instructions
Step 1: Setup the Backend ------------------------- 1. Open a terminal and navigate to the backend directory: cd backend
2. Install backend dependencies: npm install
3. Configure Environment Variables: - Create a file named ".env" inside the /backend directory. - Add the following variables: PORT=5000 JWT_SECRET=your_super_secret_key MONGO_URI=mongodb://localhost:27017/sddraw - (Note: If you leave MONGO_URI blank or MongoDB is not running, the backend will gracefully fallback to an "in-memory" database for testing purposes, but data won't persist after a server restart).
4. Start the backend server: npm start (or use "nodemon server.js" for development)
Step 2: Setup the Frontend -------------------------- 1. Open a new terminal tab and navigate to the frontend directory: cd frontend
2. Install frontend dependencies: npm install
3. Start the Vite development server: npm run dev
Step 3: Launch the Application ------------------------------ 1. Open your web browser and navigate to the URL provided by Vite (typically http://localhost:5173/ or http://localhost:5174/). 2. You will be greeted by the Login page. 3. Click "Register here" to create your first account. 4. Enjoy infinite vector drawing!
| Author | sagardey |
|---|---|
| Category | Scripts & Code / NodeJS |
| Price | $44 |
| Extended License | $132 |
| Likes | 2 |
| First Release | Apr 29, 2026 |
| Last Update | Apr 29, 2026 |
| Files included | .css, .html, JavaScript .js |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website · 12,847 views · 46 clicksWebsite · Week 49 · 12,847 views · 46 clicks
🥈
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website · 7,964 views · 10 clicksWebsite · Week 49 · 7,964 views · 10 clicks
🥉
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website · 15,624 views · 28 clicksWebsite · Week 49 · 15,624 views · 28 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website · 7,784 views · 2 clicksWebsite · Week 49 · 7,784 views · 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website · 7,679 views · 4 clicksWebsite · Week 49 · 7,679 views · 4 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website · 7,591 views · 0 clicksWebsite · Week 49 · 7,591 views · 0 clicks