| description | Standardize core libraries and frameworks when adding or updating dependencies |
|---|---|
| globs | |
| alwaysApply | true |
blefnk/rules 1.0.0
- Defines official frameworks, libraries, and tools
- Ensures consistent, compatible versions for the project
- Core: Next.js v15 (App Router), React 19, TypeScript v5 (ESM)
- Styling: Shadcn UI, Tailwind v4
- Quality: ESLint, Biome, Knip
- Authentication: better-auth
- Database: Drizzle ORM
- Package Manager: Bun
- Storage: Uploadthing
- Forms: TanStack Form
- Icons: lucide-react
- Payments: Polar
- Testing: Vitest
- Install packages:
bun add [package-name] - Dev dependencies:
bun add -D [package-name] - Run scripts:
bun run [script-name] - One-off commands:
bun x [command] - Shadcn components:
bun ui [component-name] - Update user schema: Edit
src/lib/auth.ts, thenbun db:auth
- Server-Side: Handles sessions with cookies/tokens.
- Client-Side: Access state via
useSession(). - Route Protection: Use middleware or HOCs to require auth.