A modern, feature-rich whiteboard application built with Next.js 14, TypeScript, and tldraw. Perfect for sketching, diagramming, and collaborative work.
-
ποΈ Powerful Drawing Tools:
- Pen and pencil with pressure sensitivity
- Geometric shapes (rectangles, ellipses, arrows)
- Text with rich formatting
- Advanced eraser
- Selection and transformation tools
-
π― Professional Features:
- Infinite canvas with smooth pan/zoom
- Multiple pages support
- Precise snapping and alignment
- Customizable styles
-
π Advanced Capabilities:
- Undo/Redo
- Local state persistence
- Export/Import support
- Keyboard shortcuts
-
π» Technical Excellence:
- Built on tldraw's robust engine
- Optimized performance
- Mobile and tablet support
- Touch and pen input support
# Clone the repository
git clone https://github.com/yourusername/online-whiteboard.git
# Install dependencies
npm install
# Run development server
npm run dev
Visit http://localhost:3000
to start creating!
The application is built using:
- Next.js 14: For server-side rendering and routing
- tldraw: Powers the core whiteboard functionality
- TypeScript: Ensures type safety
- TailwindCSS: For styling
Key implementation details:
- Uses tldraw's powerful editor for drawing and manipulation
- Implements local storage persistence for saving work
- Customized UI with responsive design
- Optimized for both desktop and mobile use
online-draw/
βββ app/
β βββ whiteboard.tsx # Main whiteboard component
β βββ layout.tsx # App layout
βββ public/ # Static assets
βββ package.json # Dependencies and scripts
- Collaborative editing
- Custom tool extensions
- Cloud storage integration
- Additional export formats
This project is built with:
- tldraw - The incredible whiteboard engine
- Next.js - React framework
- TailwindCSS - Styling
- TypeScript - Type safety
Special thanks to:
- The tldraw team for their amazing work
- Next.js team for the framework
- The open-source community
This project is licensed under the MIT License - see the LICENSE file for details.
Note on Implementation: This project utilizes the tldraw library (MIT License) as its core drawing engine. As per the MIT License terms, we can freely use, modify, and distribute the software. The library is used to provide robust drawing capabilities while focusing on the integration, state management, and user interface aspects of the application for academic purposes.