A full-stack application that connects to your Gmail account, fetches your latest emails, and generates a clean summary of the content. Built with a vanilla React frontend (using shadcn/ui and TailwindCSS) and a Go backend for authentication and email processing.
- 🔑 Clerk Authentication – Secure user management & sign-in/out.
- 📬 Gmail Integration – Authorize with Google and fetch the latest emails.
- 🤖 Summarization – Backend summarizes the most recent email.
- 🎨 UI/UX – Clean design powered by shadcn/ui + TailwindCSS.
- 🚀 Go Backend – Handles Gmail API calls, token validation, and summarization.
- ⏱ Real-time Fetching – Click Authorize and Fetch to view summarized mail instantly.
- React (Vite)
- TailwindCSS
- shadcn/ui
- Clerk (authentication)
git clone https://github.com/Udayan853/email-summarizer.git
cd email-summarizernpm installCreate a .env file:
VITE_CLERK_FRONTEND_API=<your_clerk_api_key>
VITE_GAPI_CLIENT_ID=<your_google_client_id>Run development server:
npm run devRun backend:
go run cmd/main.go- User signs in with Clerk.
- User clicks Authorize Gmail, triggering Google OAuth2.
- Access token is sent securely to the Go backend.
- Backend stores token (short-lived) and fetches Gmail messages.
- Latest email is summarized and returned to the frontend.
- Summarize multiple emails instead of just the latest.
- Add support for multiple accounts.
Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.
