EchoNews is a sophisticated AI-powered news aggregation and summarization platform that transforms how users consume digital content. Leveraging cutting-edge artificial intelligence, EchoNews automatically collects articles from diverse RSS feeds, processes them through advanced machine learning models, and delivers personalized, concise summaries tailored to individual preferences. Built on a robust architecture integrating Next.js for the frontend and FastAPI for the backend, EchoNews creates an intuitive and seamless news experience.
- Intelligent News Personalization: Advanced algorithm that curates content from multiple RSS sources based on user preferences and reading patterns
- State-of-the-Art AI Summarization: Utilizes LLaMA and other sophisticated AI models to generate comprehensive yet concise article summaries while preserving key information
- Dynamic Category Navigation: Intuitive filtering system allowing users to explore news across multiple dimensions and interests
- Responsive Cross-Platform Design: Meticulously crafted interface optimized for seamless experiences across desktop, tablet, and mobile devices
- High-Performance Backend: Scalable FastAPI architecture ensuring rapid response times and efficient data processing
- Framework: Next.js with React for component-based UI development
- Styling: TailwindCSS for responsive design and consistent visual identity
- State Management: React Context API and custom hooks for efficient state handling
- API Framework: FastAPI for high-performance, asynchronous request handling
- Language: Python 3.8+ with type annotations
- Data Processing: Custom NLP pipelines for content analysis
- To Do ->
Database: PostgreSQL hosted on Supabase for reliable data persistence
- AI Integration: LLaMA model optimized for text summarization tasks
- Deployment: Vercel for frontend services, Render for backend processes and fastapi initialization
Before beginning installation, ensure your development environment includes:
- Node.js (version 16.x or higher)
- Python (version 3.8 or higher)
- Git for version control
-
Clone the Repository
git clone https://github.com/RJohnPaul/newsAI.git cd newsAI
-
Configure Frontend Environment
npm install
-
Prepare Backend Services
pip install -r requirements.txt
-
Launch Development Environment
npm run api-all
This command initializes both the Next.js frontend server and FastAPI backend services simultaneously.
- replace the const
bash BASE_URL = "https://newsai-swc7.onrender.com"
at api/news/route.ts and change env value ofNEXT_PUBLIC_API_URL
The EchoNews backend exposes several RESTful endpoints for integration:
-
Article Retrieval:
/api/news/sources/{language}
- Gets list of available news sources for a specific language
-
Main Article Fetching:
/api/news
- Returns article without language
- Includes article counts and relationship metadata
-
Api Running Checker:
/api/Helloapi
- Returns a sample message : "Hello from FastAPI powered by Gemini 1.5 Flash"
- This makes sure the api is running in backend
We welcome contributions from developers of all skill levels. To contribute:
- Fork the official repository
- Create a feature branch with descriptive naming (
git checkout -b feature/enhanced-summarization
) - Implement your changes with appropriate tests
- Commit with clear, descriptive messages (
git commit -m "Implemented enhanced summarization algorithm"
) - Push to your fork and submit a detailed pull request
- Modified and Boosted the API fetching speed from 13.82 s to 4 - 6 s (approx)
- There is a ML-Model which is in google collab and can be used to test the model
This project is built upon the architectural foundation of the Next.js FastAPI boilerplate, extending it with custom AI capabilities and news-specific features.