create-figma-plugin-by-vibe-coding
v1.0.0
Published
Create a new Figma plugin project with Vibe Coding boilerplate
Maintainers
Readme
create-figma-plugin-by-vibe-coding
Create a new Figma plugin project with the Vibe Coding boilerplate.
Usage
# Using npm
npm create figma-plugin-by-vibe-coding my-plugin
# Using yarn
yarn create figma-plugin-by-vibe-coding my-plugin
# Using pnpm
pnpm create figma-plugin-by-vibe-coding my-pluginWhat's Included
The generated project includes:
- TypeScript - Type-safe development
- React - Modern UI framework
- Vite - Fast build tool with HMR
- shadcn/ui - Beautiful and accessible UI components
- Tailwind CSS - Utility-first CSS framework
- Biome - Fast linting and formatting
- Figma Plugin API - Type-safe Figma integration
- AI Development Rules - Optimized for Cursor/AI development
Project Structure
my-plugin/
├── src/
│ ├── plugin/ # Main thread (Figma API)
│ │ └── main.ts
│ ├── ui/ # UI thread (React)
│ │ ├── components/
│ │ ├── hooks/
│ │ └── main.tsx
│ └── common/ # Shared types and constants
│ ├── types.ts
│ ├── messages.ts
│ └── constants.ts
├── figma.manifest.ts # Plugin manifest
└── dist/ # Built plugin filesGetting Started
After creating your project:
Navigate to your project:
cd my-pluginStart development:
npm run devLoad in Figma:
- Open Figma
- Go to Plugins → Development → Import plugin from manifest
- Select the
manifest.jsonfile from thedist/folder
Development Commands
npm run dev- Start development with hot reloadnpm run build- Build for productionnpm run dev:ui-only- UI development in browser (faster iteration)npm run lint- Check code qualitynpm run format- Format code
Features
Dual-Process Architecture
Figma plugins run in two separate processes:
- Main Thread: Sandboxed environment with Figma API access
- UI Thread: Standard browser environment for React
Communication between threads is handled via type-safe message contracts.
AI-Optimized Development
The boilerplate includes AI development rules that help LLMs:
- Follow Figma plugin best practices
- Handle async operations correctly
- Maintain type safety
- Clean up demo code appropriately
Modern Tooling
- Vite for fast builds and HMR
- TypeScript for type safety
- Biome for consistent code style
- shadcn/ui for beautiful components
- Tailwind for utility-first styling
Documentation
Support
License
MIT
