{"id":23439677,"url":"https://github.com/sanidhyy/figma-clone","last_synced_at":"2025-07-11T13:11:17.996Z","repository":{"id":241478185,"uuid":"805803997","full_name":"sanidhyy/figma-clone","owner":"sanidhyy","description":"A minimalist Figma clone using Fabric.js and Liveblocks for real-time collaboration.","archived":false,"fork":false,"pushed_at":"2025-07-01T14:13:37.000Z","size":1545,"stargazers_count":23,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T14:30:36.687Z","etag":null,"topics":["css","drawing-app","figma-clone","html","liveblock","liveblocks","next","nextjs","react","reactjs","shadcn-ui","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://clone-figmaa.netlify.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanidhyy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["sanidhyy"],"patreon":"sanidhy","custom":"https://www.buymeacoffee.com/sanidhy"}},"created_at":"2024-05-25T14:01:40.000Z","updated_at":"2025-07-01T14:08:40.000Z","dependencies_parsed_at":"2024-05-28T16:41:56.896Z","dependency_job_id":"3ea00d3c-ab1a-4882-8a46-75a3bb0869be","html_url":"https://github.com/sanidhyy/figma-clone","commit_stats":null,"previous_names":["sanidhyy/figma-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sanidhyy/figma-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Ffigma-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Ffigma-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Ffigma-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Ffigma-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanidhyy","download_url":"https://codeload.github.com/sanidhyy/figma-clone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Ffigma-clone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264816707,"owners_count":23668249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","drawing-app","figma-clone","html","liveblock","liveblocks","next","nextjs","react","reactjs","shadcn-ui","tailwindcss","typescript"],"created_at":"2024-12-23T15:33:14.868Z","updated_at":"2025-07-11T13:11:17.972Z","avatar_url":"https://github.com/sanidhyy.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sanidhyy","https://patreon.com/sanidhy","https://www.buymeacoffee.com/sanidhy"],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n# A minimalist Figma clone using Fabric.js and Liveblocks for real-time collaboration.\n\n![A minimalist Figma clone using Fabric.js and Liveblocks for real-time collaboration.](/.github/images/img_main.png \"A minimalist Figma clone using Fabric.js and Liveblocks for real-time collaboration.\")\n\n[![Ask Me Anything!](https://flat.badgen.net/static/Ask%20me/anything?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy \"Ask Me Anything!\")\n[![GitHub license](https://flat.badgen.net/github/license/sanidhyy/figma-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/figma-clone/blob/main/LICENSE \"GitHub license\")\n[![Maintenance](https://flat.badgen.net/static/Maintained/yes?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/figma-clone/commits/main \"Maintenance\")\n[![GitHub branches](https://flat.badgen.net/github/branches/sanidhyy/figma-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/figma-clone/branches \"GitHub branches\")\n[![Github commits](https://flat.badgen.net/github/commits/sanidhyy/figma-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/figma-clone/commits \"Github commits\")\n[![GitHub issues](https://flat.badgen.net/github/issues/sanidhyy/figma-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/figma-clone/issues \"GitHub issues\")\n[![GitHub pull requests](https://flat.badgen.net/github/prs/sanidhyy/figma-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/figma-clone/pulls \"GitHub pull requests\")\n[![Netlify Status](https://api.netlify.com/api/v1/badges/5dc30440-a2b3-47d8-80cc-b964bf94d6a2/deploy-status)](https://clone-figmaa.netlify.app/ \"Netlify Status\")\n\n\u003c!-- Table of Contents --\u003e\n\u003cdetails\u003e\n\n\u003csummary\u003e\n\n# :notebook_with_decorative_cover: Table of Contents\n\n\u003c/summary\u003e\n\n- [Folder Structure](#bangbang-folder-structure)\n- [Getting Started](#toolbox-getting-started)\n- [Screenshots](#camera-screenshots)\n- [Tech Stack](#gear-tech-stack)\n- [Stats](#wrench-stats)\n- [Contribute](#raised_hands-contribute)\n- [Acknowledgements](#gem-acknowledgements)\n- [Buy Me a Coffee](#coffee-buy-me-a-coffee)\n- [Follow Me](#rocket-follow-me)\n- [Learn More](#books-learn-more)\n- [Deploy on Netlify](#page_with_curl-deploy-on-netlify)\n- [Give A Star](#star-give-a-star)\n- [Star History](#star2-star-history)\n- [Give A Star](#star-give-a-star)\n\n\u003c/details\u003e\n\n## :bangbang: Folder Structure\n\nHere is the folder structure of this app.\n\n```bash\nfigma-clone/\n  |- app/\n    |-- app.tsx\n    |-- apple-icon.png\n    |-- favicon.ico\n    |-- globals.css\n    |-- icon1.png\n    |-- icon2.png\n    |-- layout.tsx\n    |-- page.tsx\n    |-- room.tsx\n  |- components/\n    |-- comments/\n    |-- cursor/\n    |-- reaction/\n    |-- settings/\n    |-- ui/\n    |-- users/\n    |-- left-sidebar.tsx\n    |-- live.tsx\n    |-- loader.tsx\n    |-- navbar.tsx\n    |-- right-sidebar.tsx\n    |-- shapes-menu.tsx\n  |- config/\n    |-- index.ts\n  |- constants/\n    |-- index.ts\n  |- hooks/\n    |-- use-interval.ts\n  |- lib/\n    |-- canvas.ts\n    |-- key-events.ts\n    |-- shapes.ts\n    |-- use-max-zindex.ts\n    |-- utils.ts\n  |- public/\n  |- scripts/\n    |-- prod.ts\n    |-- reset.ts\n    |-- seed.ts\n  |- store/\n    |-- use-exit-modal.ts\n    |-- use-hearts-modal.ts\n    |-- use-practice-modal.ts\n  |- types/\n    |-- declaration.d.ts\n    |-- type.ts\n  |- .env.local\n  |- .env.example\n  |- .eslintrc.js\n  |- .gitignore\n  |- .prettierrc.json\n  |- components.json\n  |- environment.d.ts\n  |- liveblocks.config.ts\n  |- next.config.mjs\n  |- package-lock.json\n  |- package.json\n  |- postcss.config.js\n  |- tailwind.config.ts\n  |- tsconfig.json\n```\n\n\u003cbr /\u003e\n\n## :toolbox: Getting Started\n\n1. Make sure **Git** and **NodeJS** is installed.\n2. Clone this repository to your local computer.\n3. Create `.env.local` file in **root** directory.\n4. Contents of `.env.local`:\n\n```env\n# .env.local\n\n# disable next.js telemetry\nNEXT_TELEMETRY_DISABLED=1\n\n# liveblocks api key\nNEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY=pk_dev_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n\n```\n\n### 5. Set Up Liveblocks\n\n1. **Create a Liveblocks Account**:\n\n   - If you don't have a Liveblocks account, sign up at [Liveblocks](https://liveblocks.io/).\n\n2. **Create a New Project**:\n   - After logging in, navigate to the Liveblocks dashboard.\n   - Click on \"Create Project\" to set up a new project for Figma-Clone.\n   - Provide a name for your project and create it.\n\n### 6. Obtain the Liveblocks Public Key\n\n1. **Navigate to the Project Settings**:\n\n   - In your Liveblocks dashboard, select the project you created for Figma-Clone.\n   - Go to the \"Settings\" or \"API Keys\" section.\n\n2. **Copy the Public Key**:\n\n   - You will find the \"Public Key\" under the API Keys section. Copy the public key that starts with `pk_dev_` and replace placeholder value in `NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY` with the copied value.\n\n3. Save and Secure:\n\n   - Save the changes to the `.env.local` file.\n\n4. Install Project Dependencies using `npm install --legacy-peer-deps` or `yarn install --legacy-peer-deps`.\n\n5. Now app is fully configured 👍 and you can start using this app using either one of `npm run dev` or `yarn dev`.\n\n**NOTE:** Please make sure to keep your API keys and configuration values secure and do not expose them publicly.\n\n## :camera: Screenshots\n\n![Modern UI/UX](/.github/images/img1.png \"Modern UI/UX\")\n\n![Right Click Context Menu](/.github/images/img2.png \"Right Click Context Menu\")\n\n![Fully functional Drawing Board](/.github/images/img3.png \"Fully functional Drawing Board\")\n\n## :gear: Tech Stack\n\n[![React JS](https://skillicons.dev/icons?i=react \"React JS\")](https://react.dev/ \"React JS\") [![Next JS](https://skillicons.dev/icons?i=next \"Next JS\")](https://nextjs.org/ \"Next JS\") [![Typescript](https://skillicons.dev/icons?i=ts \"Typescript\")](https://www.typescriptlang.org/ \"Typescript\") [![Tailwind CSS](https://skillicons.dev/icons?i=tailwind \"Tailwind CSS\")](https://tailwindcss.com/ \"Tailwind CSS\") [![Netlify](https://skillicons.dev/icons?i=netlify \"Netlify\")](https://netlify.app/ \"Netlify\")\n\n## :wrench: Stats\n\n[![Stats for Figma Clone](/.github/images/stats.svg \"Stats for Figma Clone\")](https://pagespeed.web.dev/analysis?url=https://clone-figmaa.netlify.app/ \"Stats for Figma Clone\")\n\n## :raised_hands: Contribute\n\nYou 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.\n\n## :gem: Acknowledgements\n\nUseful resources and dependencies that are used in Figma Clone.\n\n- [@liveblocks/client](https://www.npmjs.com/package/@liveblocks/client): ^1.12.0\n- [@liveblocks/react](https://www.npmjs.com/package/@liveblocks/react): ^1.12.0\n- [@liveblocks/react-comments](https://www.npmjs.com/package/@liveblocks/react-comments): ^1.12.0\n- [@radix-ui/react-context-menu](https://www.npmjs.com/package/@radix-ui/react-context-menu): ^2.1.5\n- [@radix-ui/react-dropdown-menu](https://www.npmjs.com/package/@radix-ui/react-dropdown-menu): ^2.0.6\n- [@radix-ui/react-label](https://www.npmjs.com/package/@radix-ui/react-label): ^2.0.2\n- [@radix-ui/react-select](https://www.npmjs.com/package/@radix-ui/react-select): ^2.0.0\n- [@radix-ui/react-slot](https://www.npmjs.com/package/@radix-ui/react-slot): ^1.0.2\n- [class-variance-authority](https://www.npmjs.com/package/class-variance-authority): ^0.7.0\n- [clsx](https://www.npmjs.com/package/clsx): ^2.1.1\n- [fabric](https://www.npmjs.com/package/fabric): ^5.3.0\n- [jspdf](https://www.npmjs.com/package/jspdf): ^2.5.1\n- [lucide-react](https://www.npmjs.com/package/lucide-react): ^0.379.0\n- [next](https://www.npmjs.com/package/next): 14.2.3\n- [react](https://www.npmjs.com/package/react): ^18\n- [react-dom](https://www.npmjs.com/package/react-dom): ^18\n- [tailwind-merge](https://www.npmjs.com/package/tailwind-merge): ^2.3.0\n- [tailwindcss-animate](https://www.npmjs.com/package/tailwindcss-animate): ^1.0.7\n- [uuid](https://www.npmjs.com/package/uuid): ^9.0.1\n- [@types/fabric](https://www.npmjs.com/package/@types/fabric): ^5.3.7\n- [@types/node](https://www.npmjs.com/package/@types/node): ^20\n- [@types/react](https://www.npmjs.com/package/@types/react): ^18\n- [@types/react-dom](https://www.npmjs.com/package/@types/react-dom): ^18\n- [@types/uuid](https://www.npmjs.com/package/@types/uuid): ^9.0.8\n- [eslint](https://www.npmjs.com/package/eslint): ^8\n- [eslint-config-next](https://www.npmjs.com/package/eslint-config-next): 14.2.3\n- [postcss](https://www.npmjs.com/package/postcss): ^8\n- [tailwindcss](https://www.npmjs.com/package/tailwindcss): ^3.4.1\n- [typescript](https://www.npmjs.com/package/typescript): ^5\n\n## :coffee: Buy Me a Coffee\n\n[\u003cimg src=\"https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black\" width=\"200\" /\u003e](https://www.buymeacoffee.com/sanidhy \"Buy me a Coffee\")\n\n## :rocket: Follow Me\n\n[![Follow Me](https://img.shields.io/github/followers/sanidhyy?style=social\u0026label=Follow\u0026maxAge=2592000)](https://github.com/sanidhyy \"Follow Me\")\n[![Tweet about this project](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Ftwitter.com%2FTechnicalShubam)](https://twitter.com/intent/tweet?text=Check+out+this+amazing+app:\u0026url=https%3A%2F%2Fgithub.com%2Fsanidhyy%2Ffigma-clone \"Tweet about this project\")\n[![Subscribe to my YouTube Channel](https://img.shields.io/youtube/channel/subscribers/UCNAz_hUVBG2ZUN8TVm0bmYw)](https://www.youtube.com/@OPGAMER./?sub_confirmation=1 \"Subscribe to my YouTube Channel\")\n\n## :books: Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## :page_with_curl: Deploy on Netlify\n\nThe simplest way to deploy your React.js app is to use the [Netlify Platform](https://app.netlify.com/start) - a powerful platform for modern web projects.\n\nExplore the [Netlify deployment documentation](https://docs.netlify.com/site-deploys/create-deploys) for step-by-step instructions on deploying your React.js app on Netlify.\n\nHappy coding, and feel free to share your thoughts and improvements with the [Netlify community](https://community.netlify.com)!\n\n## :star: Give A Star\n\nYou can also give this repository a star to show more people and they can use this repository.\n\n## :star2: Star History\n\n\u003ca href=\"https://star-history.com/#sanidhyy/figma-clone\u0026Timeline\"\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=sanidhyy/figma-clone\u0026type=Timeline\u0026theme=dark\" /\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=sanidhyy/figma-clone\u0026type=Timeline\" /\u003e\n  \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=sanidhyy/figma-clone\u0026type=Timeline\" /\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanidhyy%2Ffigma-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanidhyy%2Ffigma-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanidhyy%2Ffigma-clone/lists"}