A Chrome extension that summarizes Medium blog posts using LangChain and OPENAI, with Google Authentication and usage limits.
- 🔐 Google Authentication
- 📝 One-click Medium article summarization
- 🤖 Powered by OPENAI and LangChain
- 📊 Usage tracking (5 summaries per user)
- 🎨 Clean and modern UI
- Backend: Python Flask Server
- AI: LangChain, OpenAI
- Frontend: HTML, CSS, JavaScript
- Authentication: Google OAuth 2.0
- Clone the repository:
git clone https://github.com/Namangupta123/Medium_summarizer
cd medium-summarizer
- Install Python dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Copy
.env.example
to.env
in the server directory - Add your Google Client ID
- Copy
-
Load the extension in Chrome:
- Open Chrome and go to
chrome://extensions/
- Enable Developer mode
- Click "Load unpacked"
- Select the extension directory
- Open Chrome and go to
The server-side code for this extension is maintained in a separate repository:
- Server Repository: https://github.com/Namangupta123/summarizer_medium_naman
The server provides:
- API endpoints for article summarization
- User authentication validation
- Usage tracking and limiting
- OpenAI integration via LangChain
- Clone the server repository:
git clone https://github.com/Namangupta123/summarizer_medium_naman
cd summarizer_medium_naman
- Install server dependencies:
pip install -r requirements.txt
-
Configure server environment variables:
- Copy
.env.example
to.env
- Add your OpenAI API key
- Copy
-
Run the server:
python3 server.py
- Sign in with your Google account
- Navigate to any Medium article
- Click the extension icon
- Click "Get Summary" to generate a summary
- View your remaining usage count
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.