{"id":30383015,"url":"https://github.com/jordanliu/next-starter","last_synced_at":"2026-05-18T09:34:46.432Z","repository":{"id":305171900,"uuid":"1020963762","full_name":"jordanliu/next-starter","owner":"jordanliu","description":"Monorepo starter template with nextjs, better-auth, drizzle, postgres, shadcn/ui, react-email and turborepo.","archived":false,"fork":false,"pushed_at":"2026-02-17T17:45:51.000Z","size":1146,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-17T22:37:22.777Z","etag":null,"topics":["better-auth","drizzle-orm","nextjs","react-email","shadcn-ui"],"latest_commit_sha":null,"homepage":"","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/jordanliu.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-07-16T16:59:09.000Z","updated_at":"2026-02-17T17:45:55.000Z","dependencies_parsed_at":"2025-07-18T19:05:47.442Z","dependency_job_id":"8907cf8e-beb5-407d-8893-b77640723f74","html_url":"https://github.com/jordanliu/next-starter","commit_stats":null,"previous_names":["jordanliu/next-starter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jordanliu/next-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanliu%2Fnext-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanliu%2Fnext-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanliu%2Fnext-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanliu%2Fnext-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jordanliu","download_url":"https://codeload.github.com/jordanliu/next-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordanliu%2Fnext-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33172658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["better-auth","drizzle-orm","nextjs","react-email","shadcn-ui"],"created_at":"2025-08-20T23:15:05.502Z","updated_at":"2026-05-18T09:34:46.426Z","avatar_url":"https://github.com/jordanliu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-starter\n\nA highly opinionated Next.js starter with better-auth, drizzle, postgres, shadcn/ui, react-email, and turborepo. Pre-configured for rapid, scalable development.\n\n## Project Structure\n\n```\nnextjs-starter/\n├── apps/\n│   └── web/                 # Main Next.js application\n├── packages/\n│   ├── auth/               # Authentication utilities\n│   ├── database/           # Database schema and utilities\n│   ├── email/              # Email templates and providers\n│   ├── eslint-config/      # Shared ESLint configurations\n│   ├── typescript-config/  # Shared TypeScript configurations\n│   └── ui/                 # Shared UI components\n└── turbo/                  # Turborepo configuration\n```\n\n## Features\n\n- Authentication with [Better Auth](https://www.better-auth.com/)\n- Database using [Drizzle ORM](https://orm.drizzle.team/) and [PostgreSQL](https://www.postgresql.org/)\n- UI components built with [shadcn/ui](https://ui.shadcn.com) and [Tailwind CSS](https://tailwindcss.com)\n- Email support with [react-email](https://react.email)\n- Form handling via [react-hook-form](https://react-hook-form.com)\n- Monorepo setup using [Turborepo](https://turbo.build/repo)\n\n## Getting Started\n\n### 1. Create a New Project\n\n```bash\nnpx create-next-app@latest new-project --use-pnpm -e https://github.com/jordanliu/next-starter\ncd new-project\n```\n\n### 2. Install Dependencies\n\n```bash\npnpm install\n```\n\n### 3. Set Up Environment Variables\n\n```bash\ncp apps/web/.env.example apps/web/.env.local\n# Edit the .env.local file with your database and authentication configuration\n```\n\n### 4. Set Up the Database\n\n```bash\npnpm --filter @repo/database generate\npnpm --filter @repo/database migrate\n```\n\n### 5. Start the Development Server\n\n```bash\npnpm dev\n```\n\nThe application will be available at [http://localhost:3000](http://localhost:3000).\n\n## Available Commands\n\n### Development\n\n```bash\npnpm dev          # Start development servers for all packages\npnpm build        # Build all packages for production\npnpm start        # Start production server (requires build)\n```\n\n### Code Quality\n\n```bash\npnpm lint         # Run ESLint across all packages\npnpm format       # Format code with Prettier\npnpm check-types  # Run TypeScript type checking\n```\n\n### Database Operations\n\n```bash\npnpm --filter @repo/database generate  # Generate database migrations\npnpm --filter @repo/database migrate   # Apply database migrations\npnpm --filter @repo/database studio    # Open Drizzle Studio for database management\npnpm --filter @repo/database seed      # Seed database with initial data\n```\n\n### Package-Specific\n\n```bash\npnpm --filter web dev           # Run only the Next.js application\npnpm --filter @repo/email dev   # Preview email templates\n```\n\n## Project Management\n\n### Adding New Packages\n\n```bash\nturbo gen\n```\n\nFollow the prompts to scaffold a new package with proper TypeScript and build configurations.\n\n### Adding shadcn/ui Components\n\n```bash\ncd apps/web\npnpm dlx shadcn@canary add [component-name]\n```\n\nComponents are automatically added to the UI package and can be imported across the monorepo.\n\n### Managing Dependencies\n\n```bash\n# Add to specific package\npnpm --filter web add [package-name]\npnpm --filter @repo/ui add [package-name]\npnpm --filter @repo/database add [package-name]\n\n# Add to workspace root (affects all packages)\npnpm add -w [package-name]\n\n# Add dev dependencies\npnpm --filter web add -D [package-name]\n```\n\n### Working with Database Schema\n\n```bash\n# After modifying schema files\npnpm --filter @repo/database generate  # Generate new migration\npnpm --filter @repo/database migrate   # Apply to local database\n\n# Reset database (development only)\npnpm --filter @repo/database reset\n```\n\n## Deployment\n\n### 1. Set Up Production Database\n\nEnsure your production PostgreSQL database is ready and accessible. Update your production environment variables with the database connection string.\n\n### 2. Run Database Migrations\n\n```bash\n# Apply migrations to production database\nDATABASE_URL=\"your-production-db-url\" pnpm --filter @repo/database migrate\n```\n\n### 3. Build Application\n\n```bash\npnpm build\n```\n\n### 4. Deploy\n\nDeploy the built application using your preferred hosting platform. Ensure the following environment variables are configured:\n\n```env\nDATABASE_URL=your-production-database-url\nBETTER_AUTH_SECRET=your-secret-key\nBETTER_AUTH_URL=https://your-domain.com\n# Add other environment variables as needed\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanliu%2Fnext-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordanliu%2Fnext-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanliu%2Fnext-starter/lists"}