@rich-apis/cursorrules
v1.0.1
Published
Professional .cursorrules templates for Next.js, FastAPI, and React Native projects
Maintainers
Readme
@rich-apis/cursorrules
Professional .cursorrules templates for Cursor AI. One command to set up battle-tested AI coding rules for your project.
More templates and vibe coding tips: t.me/vibecodingtips_original
Quick Start
# Copy a template to your project
npx @rich-apis/cursorrules init nextjs
npx @rich-apis/cursorrules init fastapi
npx @rich-apis/cursorrules init react-nativeThat's it. Open your project in Cursor and the rules are active.
Available Templates
| Template | Stack | Highlights |
|----------|-------|------------|
| nextjs | Next.js 14+, TypeScript, Tailwind | App Router, Server Components, Server Actions, Zod validation |
| fastapi | Python 3.11+, FastAPI, Pydantic v2 | 3-layer architecture, async, SQLAlchemy 2.0, Alembic |
| react-native | React Native / Expo, TypeScript | React Navigation, Zustand, React Query, FlashList |
What's Inside
Each template defines:
- Tech stack expectations so the AI uses the right libraries
- Code style rules (naming, structure, patterns)
- Architecture guidelines (where logic lives, layering)
- Performance best practices specific to the framework
- Security rules the AI must follow
- Testing expectations and patterns
CLI Usage
# List all templates
npx @rich-apis/cursorrules list
# Initialize a template
npx @rich-apis/cursorrules init <template>
# Help
npx @rich-apis/cursorrules --helpProgrammatic Usage
const { getTemplate, listTemplates } = require('@rich-apis/cursorrules');
// Get template content
const rules = getTemplate('nextjs');
// List available templates
const templates = listTemplates();
// [{ id: 'nextjs', name: 'Next.js', description: '...' }, ...]Customization
The templates are starting points. After running init, edit .cursorrules to match your project:
- Add your specific libraries and versions
- Adjust architecture rules to your codebase
- Add project-specific conventions
- Include domain terminology
Why .cursorrules?
Cursor AI reads .cursorrules from your project root to understand your coding standards. Without rules, the AI guesses. With good rules, it writes code that fits your codebase from the first try.
More Resources
- Vibe Coding Tips - Telegram channel with daily AI coding tips
- Cursor Docs - Official Cursor documentation
License
MIT
