A modern, SEO-optimized blog platform built with Next.js, featuring security-first architecture, performance optimization, and comprehensive search engine optimization. Created by Likhon Sheikh - Passionate Software Developer & Ethical Hacker from Bangladesh π§π©.
- Production: lkhonsheikhbd.github.io
- API Documentation: lkhonsheikhbd.github.io/api/v1
- Technical SEO: Automated sitemap generation, optimized robots.txt, structured data
- Performance: Core Web Vitals optimization, edge caching, image optimization
- Content SEO: Meta tags, Open Graph, Twitter Cards, canonical URLs
- Analytics: Built-in page view tracking, search query analytics
- Row-Level Security (RLS) in Postgres with Prisma middleware
- NextAuth v5 with JWT edge compatibility
- Input validation with Zod schemas preventing XSS/injection attacks
- Comprehensive audit logging for compliance and monitoring
- Geist Design System for consistent, developer-focused UI
- Responsive design with mobile-first approach
- Dark/light mode support with system preference detection
- Accessible components following WCAG guidelines
- Edge runtime for API routes and middleware
- Vercel Blob integration for media storage
- Database connection pooling with Prisma Accelerate
- Static generation with ISR for optimal performance
- Next.js 14 - React framework with App Router
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first styling
- Geist UI - Vercel's design system components
- Lucide React - Beautiful, customizable icons
- Neon Postgres - Serverless PostgreSQL database
- Prisma - Type-safe database ORM with Accelerate
- NextAuth v5 - Authentication with JWT edge compatibility
- Zod - Runtime type validation and parsing
- Vercel Blob - File storage and CDN
- Vitest - Fast unit testing framework
- Playwright - End-to-end testing
- ESLint & Prettier - Code linting and formatting
- GitHub Actions - CI/CD pipeline
``` astroblog-omega/ βββ README.md βββ llm.txt # LLM context file βββ package.json βββ next.config.js βββ tailwind.config.ts βββ tsconfig.json βββ .env.example βββ .env.local βββ .gitignore βββ .eslintrc.json βββ prettier.config.js βββ vitest.config.ts βββ playwright.config.ts βββ next-env.d.ts β βββ prisma/ β βββ schema.prisma # Complete database schema with RLS β βββ seed.ts # Database seeding script β βββ migrations/ # Database migration files β βββ src/ β βββ app/ # Next.js App Router β β βββ layout.tsx # Root layout with SEO optimization β β βββ page.tsx # Homepage with hero section β β βββ loading.tsx # Global loading component β β βββ error.tsx # Global error boundary β β βββ not-found.tsx # 404 page β β βββ sitemap.ts # Dynamic sitemap generation β β βββ robots.ts # Robots.txt configuration β β βββ manifest.ts # PWA manifest β β β β β βββ (auth)/ # Authentication routes β β βββ (blog)/ # Blog routes β β βββ (admin)/ # Admin dashboard β β βββ api/ # API routes β β β βββ components/ # Reusable UI components β β βββ ui/ # Geist UI components β β βββ layout/ # Layout components β β βββ blog/ # Blog-specific components β β βββ admin/ # Admin components β β βββ auth/ # Authentication components β β βββ seo/ # SEO components β β β βββ lib/ # Utility libraries β βββ hooks/ # Custom React hooks β βββ types/ # TypeScript definitions β βββ styles/ # Global styles β βββ actions/ # Server Actions β βββ tests/ # Test files β βββ unit/ # Vitest unit tests β βββ e2e/ # Playwright E2E tests β βββ fixtures/ # Test data β βββ helpers/ # Test utilities β βββ public/ # Static assets βββ docs/ # Documentation βββ .github/ # GitHub workflows ```
- Node.js 18+ and npm/pnpm
- PostgreSQL database (Neon recommended)
- Vercel account for deployment
```bash git clone https://github.com/likhonsheikhbd/astroblog-omega.git cd astroblog-omega ```
```bash npm install
pnpm install ```
Copy `.env.example` to `.env.local` and configure:
```env
DATABASE_URL="prisma+postgres://accelerate.prisma-data.net/?api_key=your_api_key" DIRECT_URL="postgresql://username:password@host:port/database"
NEXTAUTH_SECRET="your-secret-key" NEXTAUTH_URL="http://localhost:3000"
GOOGLE_CLIENT_ID="your-google-client-id" GOOGLE_CLIENT_SECRET="your-google-client-secret"
RESEND_API_KEY="your-resend-api-key" EMAIL_FROM="noreply@yourdomain.com"
BLOB_READ_WRITE_TOKEN="your-blob-token"
NEXT_PUBLIC_SITE_URL="https://lkhonsheikhbd.github.io" NEXT_PUBLIC_SITE_NAME="AstroBlog Ξ©" ```
```bash
npx prisma generate
npx prisma migrate deploy
npx prisma db seed ```
```bash npm run dev
pnpm dev ```
Visit http://localhost:3000 to see the application.
```bash npm run test:unit
npm run test:unit:watch # Watch mode ```
```bash npm run test:e2e
npm run test:e2e:ui # Interactive mode ```
```bash npm run test ```
- β Site Structure: Logical URL hierarchy with semantic slugs
- β Performance: Core Web Vitals optimization (LCP < 2.5s, FID < 100ms, CLS < 0.1)
- β Mobile-First: Responsive design with mobile optimization
- β Structured Data: JSON-LD schema markup for articles and organization
- β Sitemaps: Automated XML sitemap generation
- β Robots.txt: Optimized crawling directives
- π― Keyword Research: Focus on Next.js, React, web development topics
- π Content Calendar: Regular publishing schedule with evergreen content
- π Internal Linking: Strategic linking between related posts
- π On-Page SEO: Optimized titles, meta descriptions, headers
- π Link Building: Guest posting, resource page inclusion
- π± Social Media: Content promotion across platforms
- π₯ Community: Active participation in developer communities
- π Brand Monitoring: Tracking mentions and reputation
The application is configured for GitHub Pages deployment:
- Build Configuration: Static export enabled in `next.config.js`
- GitHub Actions: Automated deployment workflow
- Custom Domain: Configured for `lkhonsheikhbd.github.io`
```bash npm run build npm run export ```
```bash npm run deploy ```
- LCP (Largest Contentful Paint): < 2.5 seconds
- FID (First Input Delay): < 100 milliseconds
- CLS (Cumulative Layout Shift): < 0.1
- Organic Traffic Growth: 150% increase in 6 months
- Keyword Rankings: 50+ keywords in top 10
- Backlink Acquisition: 100+ high-quality backlinks
- Core Web Vitals Score: 95%+ across all pages
- Fork the repository
- Create a feature branch (`git checkout -b feature/amazing-feature`)
- Commit your changes (`git commit -m 'Add amazing feature'`)
- Push to the branch (`git push origin feature/amazing-feature`)
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Likhon Sheikh
- Passionate Software Developer & Ethical Hacker from Bangladesh π§π©
- GitHub: @likhonsheikhbd
- X (Twitter): @likhonsheikhbd
- Telegram: @likhonsheikhbd
- Next.js - The React framework for production
- Vercel - Platform for frontend frameworks and static sites
- Prisma - Next-generation ORM for Node.js and TypeScript
- Neon - Serverless PostgreSQL platform
- Geist Design System - Vercel's design system
Built with β€οΈ by Likhon Sheikh
π§π© Made in Bangladesh
