Skip to content

A modern, feature-rich whiteboard application built with Next.js 14, TypeScript, and tldraw. Perfect for sketching, diagramming, and collaborative work.

License

Notifications You must be signed in to change notification settings

StarKnightt/online-draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

78b7d24 Β· Apr 2, 2025

History

24 Commits
Apr 2, 2025
Jan 31, 2025
Dec 27, 2024
Apr 2, 2025
Apr 2, 2025
Mar 7, 2025
Mar 25, 2025
Mar 7, 2025
Apr 2, 2025
Dec 27, 2024
Dec 28, 2024
Dec 27, 2024
Apr 2, 2025
Apr 2, 2025
Apr 2, 2025
Dec 27, 2024
Dec 27, 2024
Apr 2, 2025

Repository files navigation

🎨 Online Whiteboard

A modern, feature-rich whiteboard application built with Next.js 14, TypeScript, and tldraw. Perfect for sketching, diagramming, and collaborative work.

Version Next.js TypeScript License

✨ Features

  • πŸ–ŒοΈ 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

πŸš€ Quick Start

# 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!

πŸ› οΈ How It Works

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:

  1. Uses tldraw's powerful editor for drawing and manipulation
  2. Implements local storage persistence for saving work
  3. Customized UI with responsive design
  4. Optimized for both desktop and mobile use

πŸ“¦ Project Structure

online-draw/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ whiteboard.tsx    # Main whiteboard component
β”‚   └── layout.tsx        # App layout
β”œβ”€β”€ public/               # Static assets
└── package.json         # Dependencies and scripts

πŸ”œ Future Enhancements

  • Collaborative editing
  • Custom tool extensions
  • Cloud storage integration
  • Additional export formats

πŸ™ Credits

This project is built with:

Special thanks to:

  • The tldraw team for their amazing work
  • Next.js team for the framework
  • The open-source community

πŸ“„ License

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.

About

A modern, feature-rich whiteboard application built with Next.js 14, TypeScript, and tldraw. Perfect for sketching, diagramming, and collaborative work.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published