{"id":30680480,"url":"https://github.com/yeasin2002/bulletproof-nextjs-starter","last_synced_at":"2025-09-01T16:04:35.036Z","repository":{"id":306630888,"uuid":"1026805221","full_name":"yeasin2002/bulletproof-nextjs-starter","owner":"yeasin2002","description":" A production-ready Next.js boilerplate with modern tooling, comprehensive testing, and enterprise-grade features.","archived":false,"fork":false,"pushed_at":"2025-08-20T09:20:15.000Z","size":2105,"stargazers_count":134,"open_issues_count":0,"forks_count":34,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-20T11:25:25.378Z","etag":null,"topics":["better-auth","boilerplate","bulletproof-react","codehawks","drizzle-orm","hono","next-js","next-template","nextjs","nextjs-boilerplate","nextjs-starter-template","storybook","tailwindcss","vitest"],"latest_commit_sha":null,"homepage":"https://bulletproof-nextjs-starter.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/yeasin2002.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}},"created_at":"2025-07-26T16:43:52.000Z","updated_at":"2025-08-20T11:21:32.000Z","dependencies_parsed_at":"2025-08-20T11:26:37.844Z","dependency_job_id":"5b3a385c-ee19-44c0-bb01-6d8ac8c1d2df","html_url":"https://github.com/yeasin2002/bulletproof-nextjs-starter","commit_stats":null,"previous_names":["yeasin2002/nextjs-starter-template","yeasin2002/bulletproof-nextjs-starter"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/yeasin2002/bulletproof-nextjs-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasin2002%2Fbulletproof-nextjs-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasin2002%2Fbulletproof-nextjs-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasin2002%2Fbulletproof-nextjs-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasin2002%2Fbulletproof-nextjs-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeasin2002","download_url":"https://codeload.github.com/yeasin2002/bulletproof-nextjs-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasin2002%2Fbulletproof-nextjs-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273151416,"owners_count":25054410,"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-01T02:00:09.058Z","response_time":120,"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":["better-auth","boilerplate","bulletproof-react","codehawks","drizzle-orm","hono","next-js","next-template","nextjs","nextjs-boilerplate","nextjs-starter-template","storybook","tailwindcss","vitest"],"created_at":"2025-09-01T16:04:30.086Z","updated_at":"2025-09-01T16:04:35.024Z","avatar_url":"https://github.com/yeasin2002.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Next.js Starter Template\n\nA production-ready Next.js boilerplate with modern tooling, comprehensive testing, and enterprise-grade features.\n### ⭐ **Star this repository if it helped you!** \n\n\u003e 💫 **Built with love by [Yeasin](https://github.com/yeasin2002)**  and other contributor\n\n##### If you found  any issue or have any suggestion, please open an [issue](https://github.com/yeasin2002/nextjs-starter-template/issues) or a [pull request](https://github.com/yeasin2002/nextjs-starter-template/pulls).\n\n##### Feel free to reach out to me on [Linkedin](https://www.linkedin.com/in/yeasin2002/) or [Gmail](mailto:mdkawsarislam2002@gmail.com) if you have any questions or feedback.\n\n## ✨ Features\n\n### 🏗️ **Core Framework**\n- ⚡ **Next.js 15** with App Router \u0026 Server Components\n- 🔷 **TypeScript 5.8** with strict configuration\n- ⚛️ **React 19** with latest features\n\n### 🎨 **UI \u0026 Styling**\n- 🎯 **Tailwind CSS** with custom design system\n- 🧩 **shadcn/ui** components with Radix UI primitives\n- 🌙 **Dark mode** support with next-themes\n- 🎭 **Lucide React** icons\n\n### 🗄️ **Database \u0026 ORM**\n- 🐘 **Drizzle ORM** with PostgreSQL support\n- 🌐 **Multi-provider** support (Neon, PlanetScale, Turso, Xata)\n- 🔄 **Database migrations** and seeding\n- 🎛️ **Drizzle Studio** for database management\n\n### 🔐 **Authentication**\n- 👤 **better-auth** integration for auth  management\n- 🔒 **Secure** authentication flows\n- 📧 **Email templates** with React Email\n\n### 🌍 **Internationalization**\n- 🗣️ **next-intl** for i18n support\n- 🌐 **Locale routing** and translations\n\n### 🧪 **Testing Suite**\n- ⚡ **Vitest** for unit testing with jsdom\n- 🎭 **Playwright** for E2E testing\n- 🧪 **Testing Library** for React components\n- 📚 **Storybook** for component development\n- 📊 **Coverage reports** with v8\n\n### 🔧 **Development Tools**\n- 🎯 **ESLint** with Next.js \u0026 TypeScript configs\n- 💅 **Prettier** with Tailwind plugin\n- 🔍 **Knip** for unused code detection\n- 🦅 **Codehawk** for code analysis\n- 📦 **Bundle Analyzer** for optimization\n\n### 🐳 **DevOps \u0026 Deployment**\n\u003c!-- - 🐳 **Docker** with multi-stage builds --\u003e\n\u003c!-- - 🔄 **Docker Compose** for development/production --\u003e\n- 🏥 **Health checks** and monitoring\n- 📈 **Performance monitoring** with React Scan\n\n### 🛡️ **Security \u0026 Performance**\n- 🔒 **Security headers** configured\n\u003c!-- - 🚀 **Standalone output** for Docker --\u003e\n- 📊 **OpenTelemetry** integration\n- ⚡ **Edge runtime** support\n\n## 🚀 Quick Start\n\n### Prerequisites\n- Node.js 18+ or Bun\n- PostgreSQL database\n- Git\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/yeasin2002/nextjs-starter-template.git\ncd nextjs-starter-template\n\n# Quick setup (recommended)\nnpm run setup\n\n# Or manual setup:\n# Install dependencies\nnpm install\n# or\nbun install\n\n# Copy environment variables\ncp .env.example .env  # Linux/Mac\n# copy .env.example .env  # Windows\n\n# Set up your database URL and other environment variables\n# Edit .env file with your configuration\n\n# Generate database schema\nnpm run db:generate\n\n# Run database migrations\nnpm run db:migrate\n\n# Seed the database (optional)\nnpm run db:seed\n\n# Start development server\nnpm run dev\n```\n\nVisit [http://localhost:3000](http://localhost:3000) to see your application.\n\n## 📜 Available Scripts\n\n### 🔧 **Development**\n```bash\nnpm run setup        # Quick project setup\nnpm run dev          # Start development server\nnpm run build        # Build for production\nnpm run start        # Start production server\nnpm run type-check   # TypeScript type checking\nnpm run clean        # Clean build artifacts\n```\n\n### 🗄️ **Database**\n```bash\nnpm run db:generate  # Generate database migrations\nnpm run db:migrate   # Apply database migrations\nnpm run db:studio    # Open Drizzle Studio\nnpm run db:seed      # Seed database with sample data\n```\n\n### 🧪 **Testing**\n```bash\nnpm run test         # Run unit tests\nnpm run test:watch   # Run tests in watch mode\nnpm run test:coverage # Run tests with coverage report\nnpm run test:e2e     # Run E2E tests\nnpm run test:e2e:ui  # Run E2E tests with UI\n```\n\n### 💅 **Code Quality**\n```bash\nnpm run lint         # Run ESLint\nnpm run lint:fix     # Fix ESLint issues automatically\nnpm run format       # Format code with Prettier\nnpm run format:check # Check code formatting\nnpm run knip         # Check for unused code\nnpm run codehawk     # Analyze code quality\n```\n\n\u003c!-- ### 🐳 **Docker**\n```bash\nnpm run docker:build # Build Docker image\nnpm run docker:dev   # Run development container (Linux/Mac)\nscripts/docker-dev.bat # Windows\nnpm run docker:prod  # Run production container (Linux/Mac)\nnpm run docker:test  # Run test container (Linux/Mac)\n\n# Windows users can also use:\n# scripts/docker-dev.bat  # Run development container (Windows)\n``` --\u003e\n\n### 📚 **Storybook**\n```bash\nnpm run storybook       # Start Storybook dev server\nnpm run build-storybook # Build Storybook for production\n```\n\n### 📊 **Analysis**\n```bash\nnpm run analyze      # Analyze bundle size\n```\n\n## 📁 Project Structure\n\n```\n├── .kiro/              # Kiro AI assistant configuration\n├── .storybook/         # Storybook configuration\n├── config/             # Application configuration\n├── public/             # Static assets\n├── src/\n│   ├── app/            # Next.js App Router pages\n│   ├── components/     # Reusable React components\n│   │   └── ui/         # shadcn/ui components\n│   ├── db/             # Database configuration \u0026 schema\n│   ├── hooks/          # Custom React hooks\n│   ├── i18n/           # Internationalization\n│   ├── lib/            # Utility libraries\n│   ├── styles/         # Global CSS\n│   ├── types/          # TypeScript definitions\n│   └── utils/          # Helper functions\n├── tests/              # E2E and integration tests\n└── scripts/            # Build and deployment scripts\n```\n\n## 🔧 Configuration\n\n### Environment Variables\nCopy `.env.example` to `.env` and configure:\n- Database connection\n- Optional: Sentry, PostHog, Stripe, etc.\n\n### Database Setup\n1. Set your `DATABASE_URL` in `.env`\n2. Run migrations: `npm run db:migrate`\n3. Optional: Seed data: `npm run db:seed`\n\n### Authentication\n- Better Auth \n\n## 🚀 Deployment\n\n\u003c!-- ### Docker Deployment\n```bash\n# Build production image\nnpm run docker:build\n\n# Run production container\nnpm run docker:prod\n``` --\u003e\n\n### Vercel Deployment\n1. Connect your repository to Vercel\n2. Set environment variables in Vercel dashboard\n3. Deploy automatically on push to main branch\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch: `git checkout -b feature/amazing-feature`\n3. Commit changes: `git commit -m 'Add amazing feature'`\n4. Push to branch: `git push origin feature/amazing-feature`\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\n## 🙏 Acknowledgments\n\n- [Next.js](https://nextjs.org/) - The React framework\n- [Tailwind CSS](https://tailwindcss.com/) - Utility-first CSS framework\n- [shadcn/ui](https://ui.shadcn.com/) - Beautiful UI components\n- [Drizzle ORM](https://orm.drizzle.team/) - TypeScript ORM\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeasin2002%2Fbulletproof-nextjs-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeasin2002%2Fbulletproof-nextjs-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeasin2002%2Fbulletproof-nextjs-starter/lists"}