This project is a Figma clone built with Next.js, Liveblocks, and Fabric.js. The aim is to provide a collaborative design tool with real-time editing features, similar to Figma.
- Real-Time Collaboration: Built using Liveblocks, enabling multiple users to work on the same design simultaneously.
- Canvas Drawing: Powered by fabricjs, providing a flexible and robust canvas for drawing shapes, images, and text
- Undo/Redo Functionality: Supports undo and redo actions for seamless editing.
- Next.js: The React framework for server-rendered applications.
- Liveblocks: Handles real-time collaboration and state synchronization.
- Fabric.js: Provides the drawing capabilities and canvas manipulation.
- Tailwind CSS: For styling and responsive design.
-
Clone the repository:
git clone https://github.com/yourusername/figma-clone.git cd figma-clone
-
Install dependencies:
npm install
-
Set up environment variables:
Create a
.env.local
file and add the necessary API keys and configuration.NEXT_PUBLIC_LIVEBLOCK_KEY=your_liveblocks_secret_key
-
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
- Drawing Tools: Use the toolbar to draw shapes, text, and images on the canvas.
- Collaboration: Invite others to join the session and collaborate in real time.
- Layer Control: Manage layers to organize your design effectively.
Contributions are welcome! Please fork the repository and create a pull request with your changes.