Coding & DevelopmentāØļøcursoršuniversal
cursor.link
gists but for cursor rules, easy to share
Quick Start
Install this Skill
npx skills add R44VC0RP/cursor.link# cursor.link
> Share and discover Cursor rules ā like Gist, but for Cursor IDE rules
**[š Live Demo](https://cursor.link)**
cursor.link is a platform for creating, sharing, and discovering Cursor IDE rules. Create custom rules with different application types, share them with the community, and install them directly via CLI using a shadcn-style registry system.
## ⨠Features
- **šļø Rich Rule Editor** - Create cursor rules with live preview and token counting
- **š Rule Types** - Support for Always Apply, Intelligent, File-specific, and Manual rules
- **š Easy Sharing** - Share rules with unique URLs and public/private visibility
- **š¦ CLI Integration** - Install rules directly via `npx shadcn add` command
- **š¤ User Dashboard** - Manage all your rules in one place
- **š Public Discovery** - Browse and discover community-shared rules
- **šØ Modern UI** - Beautiful dark theme with Tailwind CSS and Radix components
## š ļø Tech Stack
### Frontend
- **Next.js 15** - App Router with React 19
- **TypeScript** - Full type safety
- **Tailwind CSS v4** - Modern styling system
- **Radix UI** - Accessible component primitives
- **React Hook Form + Zod** - Form handling and validation
### Backend
- **PostgreSQL** - Primary database (via Neon.tech)
- **Drizzle ORM** - Type-safe database queries
- **Better Auth** - Modern authentication with magic links
- **Inbound Email** - Transactional email service
### Tools & Services
- **Vercel** - Deployment and hosting
- **React Scan** - Performance monitoring
- **Sonner** - Toast notifications
## š Getting Started
### Prerequisites
- Node.js 18+
- PostgreSQL database (we recommend [Neon](https://neon.tech))
- Inbound Email account (get your API key from [inbound.new](https://inbound.new))
### Environment Setup
Create a `.env.local` file in the root directory:
```bash
# Database
DATABASE_URL="postgresql://username:password@host/database"
# Email Service (get from inbound.new)
INBOUND_API_KEY="your_inbound_api_key"
# Auth (automatically generated)
BETTER_AUTH_SECRET="your_auth_secret"
BETTER_AUTH_URL="http://localhost:3000"
```
### Installation
1. **Clone the repository**
```bash
git clone https://github.com/your-username/cursor.link.git
cd cursor.link
```
2. **Install dependencies**
```bash
npm install
```
3. **Set up the database**
```bash
# Generate migrations
npm run db:generate
# Apply migrations
npm run db:migrate
```
4. **Start the development server**
```bash
npm run dev
```
5. **Open your browser**
Navigate to [http://localhost:3000](http://localhost:3000)
## š Project Structure
```
cursor.link/
āāā app/ # Next.js app directory
ā āāā [userId]/[ruleId]/ # Public rule viewer pages
ā āāā api/ # API routes
ā ā āāā auth/ # Authentication endpoints
ā ā āāā cursor-rules/ # CRUD operations for rules
ā ā āāā my-rules/ # User's personal rules
ā ā āāā public-rule/ # Public rule access
ā ā āāā registry/ # shadcn-style CLI registry
ā āāā dashboard/ # User dashboard
ā āāā login/ # Authentication pages
ā āāā page.tsx # Homepage/editor
āāā components/ # Reusable UI components
ā āāā auth/ # Authentication components
ā āāā ui/ # Base UI components
ā āāā header.tsx # Site header
āāā lib/ # Shared utilities
ā āāā auth.ts # Authentication configuration
ā āāā db.ts # Database connection
ā āāā schema.ts # Database schema
ā āāā utils.ts # Helper utilities
āāā drizzle/ # Database migrations
```
## š API Reference
### Rules Management
#### Get Rules
```http
GET /api/cursor-rules
GET /api/cursor-rules?ruleId=<id>
```
Fetch all accessible rules or a specific rule by ID.
#### Create Rule
```http
POST /api/cursor-rules
Content-Type: application/json
{
"title": "my-rule",
"content": "Rule content...",
"ruleType": "always|intelligent|specific|manual",
"isPublic": false
}
```
#### Update Rule
```http
PUT /api/cursor-rules
Content-Type: application/json
{
"id": "rule-id",
"title": "updated-title",
"content": "Updated content...",
"ruleType": "always",
"isPublic": true
}
```
### Registry (CLI Integration)
#### Install via CLI
```bash
npx shadcn add https://cursor.link/api/registry/[ruleId]
```
#### Registry Item
```http
GET /api/registry/[ruleId]
```
Returns a shadcn-compatible registry item for CLI installation.
### Public Access
#### View Public Rule
```http
GET /api/public-rule/[userId]/[ruleId]
```
Access a public rule and increment view count.
#### My Rules
```http
GET /api/my-rules
```
Get all rules belonging to the authenticated user.
## šÆ Usage
### Creating Rules
1. **Visit the homepage** - Start creating immediately without login
... (truncated)Related Skills
More coding & development skills you might like
Reticle
Coding & DevelopmentAI agents can generate code, but still struggle to understand what they build. Reticle brings Jev-style machine-native runtime perception to web & desktop applications.
š¤claudešuniversal
1.2k
190
View
agentscope-java
Coding & DevelopmentExpert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
šuniversal
6.0k
1.5k
View
ospec
Coding & DevelopmentDocument-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.
āØgeminiš¤claudeš¬gptšuniversal
524
34
View
misakanet-failure-memory
Coding & Developmentš A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
š¤claudeāØļøcursoršuniversal
424
158
View