An AI-powered SEO blog generator that delivers trending content in seconds.
TrendWise is a full-stack web application that uses AI to generate SEO-optimized blog articles instantly. Designed with modern UX and mobile responsiveness, it allows users to log in with Google, generate articles on demand, view them publicly, comment, and manage content via an admin dashboard.
This project was built as part of a full-stack learning sprint to master:
- Next.js 14 App Router
- Authentication with NextAuth.js
- MongoDB integration
- AI-powered content generation
- SEO enhancements
- Scalable and responsive UI/UX
- AI-powered article generation via OpenRouter
- Google OAuth authentication (NextAuth.js)
- MongoDB for article and comment persistence
- Public comment system (auth required)
- Admin panel (protected route with username/password)
- Search functionality
- Responsive UI built with Tailwind CSS
- SEO enhancements (sitemap + robots.txt)
| Category | Stack/Tool |
|---|---|
| Frontend | Next.js 14 App Router, Tailwind CSS |
| Backend | Next.js API Routes |
| Database | MongoDB + Mongoose |
| Auth | NextAuth.js (Google Login) |
| AI Model | OpenRouter (free-tier models) |
| Deployment | Vercel |
git clone https://github.com/Asmith-M/trendwise.git
cd trendwisenpm installCreate a .env.local file and add the following:
MONGODB_URI=your-mongodb-uri
OPENROUTER_API_KEY=your-openrouter-key
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
NEXTAUTH_SECRET=your-nextauth-secret
NEXTAUTH_URL=http://localhost:3000
ADMIN_EMAIL=your-admin@email.com
ADMIN_USERNAME=youradmin
ADMIN_PASSWORD=yourpasswordnpm run devThen visit: http://localhost:3000
- 🔍 The search feature is not working properly and can be improved.
- 🧠 Uses OpenRouter for AI content generation due to OpenAI quota limits — easily swappable.
- Better search indexing and filters
- Markdown editor for manual content
- Image support for blog posts
- Role-based admin controls
Live: https://trend-wise-nu.vercel.app
Environment Variables were set on Vercel Dashboard under Project Settings → Environment Variables.
This project is open-source and free to use.
