{"id":31136984,"url":"https://github.com/omancillav/cutfly","last_synced_at":"2026-04-09T12:04:16.708Z","repository":{"id":312740562,"uuid":"1048190642","full_name":"omancillav/cutfly","owner":"omancillav","description":"Open-source link management with Next.js 15 and smart tracking","archived":false,"fork":false,"pushed_at":"2025-09-16T18:22:25.000Z","size":303,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T20:09:08.291Z","etag":null,"topics":["nextjs","oauth","shadcn","tailwindcss","turso","vercel"],"latest_commit_sha":null,"homepage":"https://cutfly.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omancillav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T04:32:09.000Z","updated_at":"2025-09-16T18:22:29.000Z","dependencies_parsed_at":"2025-09-16T19:32:56.826Z","dependency_job_id":null,"html_url":"https://github.com/omancillav/cutfly","commit_stats":null,"previous_names":["omancillav/cutfly"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/omancillav/cutfly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omancillav%2Fcutfly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omancillav%2Fcutfly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omancillav%2Fcutfly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omancillav%2Fcutfly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omancillav","download_url":"https://codeload.github.com/omancillav/cutfly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omancillav%2Fcutfly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275732391,"owners_count":25518099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","oauth","shadcn","tailwindcss","turso","vercel"],"created_at":"2025-09-18T08:04:52.057Z","updated_at":"2025-12-30T21:22:42.391Z","avatar_url":"https://github.com/omancillav.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"./public/cutfly_logo.webp\" alt=\"Cutfly logo\" width=\"36\" style=\"vertical-align:middle; margin-right:8px\"\u003e Cutfly\n\n**Fly shorter, Reach further**\n\nA modern, open-source URL shortener built with Next.js 15, designed for developers who demand control and performance. Create short links with smart insights and a beautiful, responsive interface.\n\n## ✨ Features\n\n- **Custom Short Codes** - Create memorable, branded short links\n- **Click Analytics** - Track link performance with click counters\n- **Beautiful UI** - Modern design with dark/light theme support\n- **GitHub Authentication** - Secure login with GitHub OAuth\n- **Responsive Design** - Works perfectly on all devices\n- **Fast Performance** - Built with Next.js 15 and optimized for speed\n- **Turso Database** - Powered by SQLite for reliability\n- **Protected Routes** - Prevents conflicts with system routes\n- **Link Management** - Full CRUD operations for your links\n- **Animated UI** - Beautiful animations and micro-interactions\n\n## 🛠️ Tech Stack\n\n- **Framework:** [Next.js 15](https://nextjs.org/) with App Router\n- **Language:** TypeScript\n- **Styling:** [Tailwind CSS](https://tailwindcss.com/)\n- **UI Components:** [shadcn/ui](https://ui.shadcn.com/) + Custom components\n- **Database:** [Turso](https://turso.tech/) (SQLite)\n- **Authentication:** [NextAuth.js](https://next-auth.js.org/) with GitHub provider\n- **Forms:** [React Hook Form](https://react-hook-form.com/) + [Zod](https://zod.dev/)\n- **Animations:** [Framer Motion](https://www.framer.com/motion/)\n- **Icons:** [Lucide React](https://lucide.dev/)\n- **Deployment:** [Vercel](https://vercel.com/)\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Node.js 18+ and pnpm\n- GitHub OAuth App\n- Turso account and database\n\n### Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/yourusername/cutfly.git\n   cd cutfly\n   ```\n\n2. **Install dependencies**\n\n   ```bash\n   pnpm install\n   ```\n\n3. **Set up environment variables**\n\n   ```bash\n   cp .env.example .env\n   ```\n\n   Fill in your environment variables:\n\n   ```env\n   # NextAuth\n   NEXTAUTH_SECRET=your-secret-key\n   NEXTAUTH_URL=http://localhost:3000\n\n   # GitHub OAuth\n   GITHUB_ID=your-github-client-id\n   GITHUB_SECRET=your-github-client-secret\n\n   # Turso Database\n   TURSO_DATABASE_URL=your-turso-database-url\n   TURSO_AUTH_TOKEN=your-turso-auth-token\n   ```\n\n4. **Run the development server**\n\n   ```bash\n   pnpm dev\n   ```\n\n5. **Open your browser**\n\n   Navigate to [http://localhost:3000](http://localhost:3000)\n\n## 📖 Usage\n\n### Creating Short Links\n\n1. **Sign in** with your GitHub account\n2. **Navigate** to the dashboard\n3. **Click** \"Create Link\" button\n4. **Fill in** the form:\n   - **URL:** The original URL you want to shorten\n   - **Short Code:** Custom short code (or leave empty for auto-generation)\n   - **Description:** Optional description for the link\n5. **Save** and start sharing your short link!\n\n### Managing Links\n\n- **View all links** in your dashboard\n- **Edit links** by clicking the edit button\n- **Delete links** with confirmation dialog\n- **Track clicks** with real-time counters\n- **Copy links** with one-click copy button\n\n### Accessing Short Links\n\nSimply visit: `https://yoursite.com/[code]` and you'll be redirected to the original URL.\n\n## 🔧 Configuration\n\n### Protected Routes\n\nThe following routes are automatically protected and cannot be used as short codes:\n\n- `dashboard`\n- `login`\n- `api`\n- `profile`\n\nYou can modify this list in [`src/lib/data.ts`](src/lib/data.ts):\n\n```typescript\nconst PROTECTED_ROUTES = [\"dashboard\", \"login\", \"api\", \"profile\"];\n```\n\n### Link Limits\n\nEach user can create up to 30 links. This limit can be modified in [`src/lib/actions.ts`](src/lib/actions.ts):\n\n```typescript\nif (userLinks.length \u003e= 30) {\n  return { success: false, error: \"Link limit reached. Maximum 30 links allowed per user.\" };\n}\n```\n\n## 📁 Project Structure\n\n```\nsrc/\n├── app/                    # Next.js app router pages\n│   ├── [code]/            # Dynamic route for short links\n│   ├── dashboard/         # Dashboard page\n│   ├── login/            # Authentication page\n│   └── globals.css       # Global styles\n├── components/            # React components organized by features\n│   ├── dashboard/        # Dashboard-specific components\n│   │   ├── LinkCard.tsx\n│   │   ├── LinkForm.tsx\n│   │   ├── LinkFormModal.tsx\n│   │   ├── NoLinks.tsx\n│   │   └── ExportLinksButton.tsx\n│   ├── auth/            # Authentication components\n│   │   ├── GithubLoginButton.tsx\n│   │   ├── GoogleLoginButton.tsx\n│   │   └── SignOutButton.tsx\n│   ├── profile/         # Profile-specific components\n│   │   ├── ProfileForm.tsx\n│   │   └── DeleteAccountButton.tsx\n│   ├── shared/          # Shared/common components\n│   │   ├── Header.tsx\n│   │   ├── ConfirmationDialog.tsx\n│   │   ├── theme-provider.tsx\n│   │   ├── theme-toggle.tsx\n│   │   └── actions.tsx\n│   ├── ui/              # UI components (buttons, dialogs, etc.)\n│   └── magicui/         # Animated UI components\n├── lib/                  # Utility functions\n│   ├── actions.ts        # Server actions\n│   ├── data.ts          # Database queries\n│   ├── utils.ts         # Utility functions\n│   └── turso-client.ts  # Database client\n├── hooks/               # Custom React hooks\n├── schemas/            # Zod validation schemas\n└── assets/            # Static assets\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.\n\n1. **Fork** the repository\n2. **Create** your feature branch (`git checkout -b feature/AmazingFeature`)\n3. **Commit** your changes (`git commit -m 'Add some AmazingFeature'`)\n4. **Push** to the branch (`git push origin feature/AmazingFeature`)\n5. **Open** a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\nMade by [Omar Mancilla](https://github.com/omancillav)\n\n⭐ Star this repository if you find it helpful!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomancillav%2Fcutfly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomancillav%2Fcutfly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomancillav%2Fcutfly/lists"}