Skip to content

Udayan853/email-summarizer

Repository files navigation

📩 Gmail Summarizer

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.


✨ Features

  • 🔑 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.

🛠 Tech Stack

  • React (Vite)
  • TailwindCSS
  • shadcn/ui
  • Clerk (authentication)

⚙️ Setup & Installation

1. Clone Repository

git clone https://github.com/Udayan853/email-summarizer.git
cd email-summarizer

2. Frontend Setup

npm install

Create a .env file:

VITE_CLERK_FRONTEND_API=<your_clerk_api_key>
VITE_GAPI_CLIENT_ID=<your_google_client_id>

Run development server:

npm run dev

3. Backend Setup

Run backend:

go run cmd/main.go

🔑 Authentication Flow

  1. User signs in with Clerk.
  2. User clicks Authorize Gmail, triggering Google OAuth2.
  3. Access token is sent securely to the Go backend.
  4. Backend stores token (short-lived) and fetches Gmail messages.
  5. Latest email is summarized and returned to the frontend.

📌 Future Improvements

  • Summarize multiple emails instead of just the latest.
  • Add support for multiple accounts.

📷 Screenshots

Screenshot


🤝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.

About

A react and tailwind based email summarizer app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published