Skip to content

Latest commit

Β 

History

History
76 lines (52 loc) Β· 1.92 KB

File metadata and controls

76 lines (52 loc) Β· 1.92 KB

🍐 PearBoard

PearBoard is a peer-to-peer (P2P) collaborative whiteboard built using Pear technology.
It allows multiple users to connect directly, draw together in real-time, and share ideas without relying on centralized servers.


Alt text for image


✨ Features

  • 🎨 Real-time drawing with pen, shapes, text, and eraser
  • πŸ–±οΈ Mouse follower to see peers' cursors live
  • πŸ” Undo and redo support
  • πŸ“‘ Peer-to-peer connectivity powered by Pear
  • πŸ§‘β€πŸ€β€πŸ§‘ Multi-peer support for collaborative sessions
  • πŸš€ No servers required β€” all communication is direct

πŸ›  Tech Stack

  • Pear (Holepunch stack: Hypercore, Hyperswarm)
  • JavaScript, HTML, CSS
  • Canvas API for rendering drawings
  • Live Collaboration

πŸ“¦ Installation

# Clone the repository
git clone https://github.com/Codesamp-Rohan/PearBoard.git
cd PearBoard

# Install dependencies
npm install

# Run the development server
npm run dev
or
pear run -d .

πŸš€ Usage

  1. Run npm run dev to launch PearBoard locally.
  2. Share your Canvas Room Key with collaborators.
  3. Once connected, everyone’s strokes, shapes, and mouse positions will sync in real time.

🎯 Roadmap

  • File and image upload support
  • Voice and video chat integration
  • Persistent boards (save and load sessions)
  • Improved UI with color palettes and toolbars

Join Room

Join the

pear://keet/yfoik1wj341giyzf7tyr5efkyfdtrtfugamgw476muitdyfug6np4hcheycra1marpmuynsag6dpmy46gxawdu7pxd8kri1936euegcm1miqd6jm7gw3dwr99k69js1eihftwi8jrphozbxmgdzrgg4wop3t4ye to discuss about the PearBoard.

🀝 Contributing

Pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.

πŸ“œ License

This project is licensed under the MIT License.
See the LICENSE file for details.