sanidhyy/figma-clone
About
A minimalist Figma clone using Fabric.js and Liveblocks for real-time collaboration.
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalA minimalist Figma clone using Fabric.js and Liveblocks for real-time collaboration.

:notebook_with_decorative_cover: Table of Contents
:bangbang: Folder Structure
Here is the folder structure of this app.
figma-clone/
|- app/
|-- app.tsx
|-- apple-icon.png
|-- favicon.ico
|-- globals.css
|-- icon1.png
|-- icon2.png
|-- layout.tsx
|-- page.tsx
|-- room.tsx
|- components/
|-- comments/
|-- cursor/
|-- reaction/
|-- settings/
|-- ui/
|-- users/
|-- left-sidebar.tsx
|-- live.tsx
|-- loader.tsx
|-- navbar.tsx
|-- right-sidebar.tsx
|-- shapes-menu.tsx
|- config/
|-- index.ts
|- constants/
|-- index.ts
|- hooks/
|-- use-interval.ts
|- lib/
|-- canvas.ts
|-- key-events.ts
|-- shapes.ts
|-- use-max-zindex.ts
|-- utils.ts
|- public/
|- types/
|-- declaration.d.ts
|-- styles.d.ts
|-- type.ts
|- .env.example
|- .env/.env.local
|- .eslintrc.json
|- .gitignore
|- .prettierrc.json
|- components.json
|- environment.d.ts
|- eslint.config.mjs
|- favicon.ico
|- liveblocks.config.ts
|- netlify.toml
|- next.config.mjs
|- package.json
|- pnpm-lock.yaml
|- pnpm-workspace.yaml
|- postcss.config.mjs
|- tailwind.config.ts
|- tsconfig.json
:toolbox: Getting Started
- Make sure Git and NodeJS is installed.
- Clone this repository to your local computer.
- Create
.env.localfile in root directory. - Contents of
.env.local:
# .env.local
# disable next.js telemetry
NEXT_TELEMETRY_DISABLED=1
# liveblocks api key
NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY=pk_dev_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5. Set Up Liveblocks
Create a Liveblocks Account:
- If you don't have a Liveblocks account, sign up at Liveblocks.
Create a New Project:
- After logging in, navigate to the Liveblocks dashboard.
- Click on "Create Project" to set up a new project for Figma-Clone.
- Provide a name for your project and create it.
6. Obtain the Liveblocks Public Key
Navigate to the Project Settings:
- In your Liveblocks dashboard, select the project you created for Figma-Clone.
- Go to the "Settings" or "API Keys" section.
Copy the Public Key:
- You will find the "Public Key" under the API Keys section. Copy the public key that starts with
pk_dev_and replace placeholder value inNEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEYwith the copied value.
- You will find the "Public Key" under the API Keys section. Copy the public key that starts with
Save and Secure:
- Save the changes to the
.env.localfile.
- Save the changes to the
Install Project Dependencies using
npm install --legacy-peer-depsorpnpm install --legacy-peer-deps.Now app is fully configured 👍 and you can start using this app using either one of
npm run devorpnpm dev.
NOTE: Please make sure to keep your API keys and configuration values secure and do not expose them publicly.
:raising_hand: Need Help?
If you run into issues during installation or setup:
- GitHub Discussions — Open a Q&A discussion for setup and troubleshooting help.
- Email — [email protected]
- Discord —
@sanidhyy
:camera: Screenshots



:gear: Tech Stack
:wrench: Stats
:raised_hands: Contribute
You might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
:gem: Acknowledgements
Useful resources and dependencies that are used in Figma Clone.
- @liveblocks/client: ^1.12.0
- @liveblocks/react: ^1.12.0
- @liveblocks/react-comments: ^1.12.0
- @radix-ui/react-context-menu: ^2.3.7
- @radix-ui/react-dropdown-menu: ^2.2.1
- @radix-ui/react-label: ^2.1.17
- @radix-ui/react-select: ^2.4.1
- @radix-ui/react-slot: ^1.3.3
- @types/fabric: ^5.3.11
- @types/node: ^26
- @types/react: ^19
- @types/react-dom: ^19
- @types/uuid: ^11.0.0
- class-variance-authority: ^0.7.1
- clsx: ^2.1.1
- eslint: 10
- eslint-config-next: 16.4.6
- eslint-plugin-unused-imports: ^4.4.1
- fabric: ^5.5.2
- jspdf: ^4.2.1
- lucide-react: ^1.73.0
- next: 16.4.1
- postcss: ^8
- prettier: ^3.10.1
- prettier-plugin-tailwindcss: ^0.8.0
- react: 19.3.1
- react-dom: 19.3.1
- tailwind-merge: ^3.6.0
- tailwindcss: ^3.4.19
- tailwindcss-animate: ^1.0.7
- typescript: ^6
- uuid: ^14.0.2
:coffee: Buy Me a Coffee
:rocket: Follow Me
:books: Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
:page_with_curl: Deploy on Netlify
The simplest way to deploy your React.js app is to use the Netlify Platform - a powerful platform for modern web projects.
Explore the Netlify deployment documentation for step-by-step instructions on deploying your React.js app on Netlify.
Happy coding, and feel free to share your thoughts and improvements with the Netlify community!
:star: Give A Star
You can also give this repository a star to show more people and they can use this repository.
:star2: Star History
Explore related projects
Loading…