vecto3d / rules
lakshaybhushan/vecto3d/.cursor/rules/general-rules.mdc
DO NOT USE useEffect and useState for everything. DO NOT RUN THE SERVER ON YOUR OWN ASK ME TO SPIN UP THE SERVER ⚠️ Install Packages: bun add {package_name}
Cursor rule1.5k starsChanged 15 months ago
What's in it
- Vecto3d General Rules
- Environment
- General folder structure
- State Management
- Component Organization
- Custom Components
---
description:
globs:
alwaysApply: true
---
---
description:
globs:
alwaysApply: true
---
# Vecto3d General Rules
## Environment
- Project: `react`, `typescript`, `three.js`, `@react-three/fiber`, `@react-three/drei`, `@react-three/postprocessing`.
- Framework: `tailwindcss`, `shadcn`, `next.js`
- Package Manager: `bun`
## General folder structure
```
vecto3d/
├── public/ # Static assets
├── app/ # Next.js App Router
│ └──edit/ # SVG editor route
├── components/ # React components
│ ├── ui/ # UI components
│ └── controls/ # Control panel components
├── lib/ # Libraries and utilities
├── hooks/ # Custom React hooks
├── styles/ # Styles CSS
└── ...config files # e.g., next.config.ts, tsconfig.json, package.json...
```
### State Management
- Apps use a combination of local state (React hooks) and global state (stores)
- Stores are defined in `lib/store.ts`
- Stores are implemented using a state management library (Zustand)
### Component Organization
- Shared UI components from `@/components/ui/` follow shadcn patterns
- Custom hooks from `@/hooks/` provide reusable functionality
**DO NOT USE useEffect and useState for everything.**
**DO NOT RUN THE SERVER ON YOUR OWN ASK ME TO SPIN UP THE SERVER**
⚠️ Install Packages: `bun add {package_name}`
### Custom Components
These are custom implementations (not vanilla shadcn):
- `file-upload`More agent context in lakshaybhushan/vecto3d
One other file this repository gives its agents.
Cursor rule
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

