Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Infomind

"I can't go back to reading news the old way."

An AI-native news experience built for the Economic Times Gen AI Hackathon 2026. Infomind transforms how people consume business news โ€” with personalized feeds, AI-powered summaries, real-time chat about articles, and full Tamil language support.


๐ŸŒ Live Demo

๐Ÿš€ https://infomind-eight.vercel.app/

Click the link above to access the live deployed version of Infomind. No installation needed โ€” open it in any browser.


๐Ÿ“Œ Table of Contents


๐Ÿ“– About the Project

Business news in 2026 is still delivered like it's 2005 โ€” static text articles, one-size-fits-all homepage, same format for everyone.

Infomind solves this by giving every user a personalized, AI-powered news experience based on their profession:

Persona Focus
๐Ÿ“ˆ Investor Markets, finance, economy, stocks
๐Ÿš€ Founder Startups, funding, tech, innovation
๐ŸŽ“ Student Science, education, research, discoveries
๐Ÿ’ผ Professional Business, policy, corporate, governance

โœจ Features

๐Ÿ”ด Must Have

  • Persona-based news feed โ€” different news for different professions
  • Category filter โ€” All, Markets, Startups, Economy, Tech, Policy, Business
  • AI Summary โ€” 4-5 bullet points from any article in seconds
  • Why It Matters โ€” persona-aware real-world impact analysis
  • Chat with article โ€” ask any question, get AI answers based on the article

๐ŸŸก Should Have

  • Sentiment badges โ€” ๐ŸŸข Positive / ๐Ÿ”ด Negative / ๐ŸŸก Neutral on every card
  • News Navigator โ€” select 3-5 articles, get one unified AI briefing
  • Saved articles โ€” bookmark articles to a personal saved feed

๐ŸŸข Nice to Have

  • What to Watch Next โ€” AI predicts 3 follow-up stories to track
  • Tamil language support โ€” full vernacular experience (EN / เฎคเฎฎเฎฟเฎดเฏ)

โญ Wow Factor

  • "Old Way vs AI Way" toggle โ€” instantly shows judges the contrast between raw article text and the full AI experience

๐Ÿ›  Tech Stack

Frontend (Member 1)

Tool Purpose
React + Vite UI framework
Tailwind CSS Styling
React Router Page navigation
Axios API calls

Backend (Member 2)

Tool Purpose
Node.js + Express Web server
Axios NewsAPI + OpenAI calls
dotenv Environment variable management
cors Cross-origin requests
nodemon Dev auto-restart

APIs

API Purpose
NewsAPI Fetching live Indian business news
OpenAI (gpt-4o-mini) All AI features โ€” summary, impact, chat, sentiment

๐Ÿ“ Project Structure

infomind-backend/
โ”œโ”€โ”€ controllers/
โ”‚   โ”œโ”€โ”€ newsController.js      # Fetches + caches news from NewsAPI
โ”‚   โ””โ”€โ”€ aiController.js        # Handles all AI endpoint logic
โ”œโ”€โ”€ middleware/
โ”‚   โ””โ”€โ”€ errorHandler.js        # Global error handler
โ”œโ”€โ”€ prompts/
โ”‚   โ””โ”€โ”€ prompts.js             # All AI prompt templates
โ”œโ”€โ”€ routes/
โ”‚   โ”œโ”€โ”€ newsRoutes.js          # GET /api/news
โ”‚   โ””โ”€โ”€ aiRoutes.js            # POST /api/summary, /impact, /chat, etc.
โ”œโ”€โ”€ services/
โ”‚   โ””โ”€โ”€ aiService.js           # Single OpenAI API call function
โ”œโ”€โ”€ .env                       # API keys (not committed)
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ server.js                  # Entry point

๐Ÿ”„ User Flow

START
  โ”‚
  โ–ผ
Open Infomind โ†’ Register / Login (Enter details + Profession)
  โ”‚
  โ–ผ
JWT Authentication โ†’ Home Page (All News)
  โ”‚
  โ”œโ”€โ”€โ†’ Select Category (Tech / Business / etc.) โ†’ Filtered News
  โ”‚
  โ””โ”€โ”€โ†’ Scroll Infinite Feed โ†’ More Articles Load
  โ”‚
  โ–ผ
Click on Article โ†’ News Detail Page
  โ”‚
  โ”œโ”€โ”€โ†’ Save Article โ†’ Saved Feed Page
  โ”‚
  โ”œโ”€โ”€โ†’ Use AI Features (Summary / Chat / Impact / Watch Next)
  โ”‚         โ”‚
  โ”‚         โ””โ”€โ”€โ†’ AI Response Shown
  โ”‚
  โ””โ”€โ”€โ†’ Watch Next โ†’ Next Article Opens
  โ”‚
  โ–ผ
My Feed Page (Profession-based personalized news)
  โ”‚
  โ–ผ
Profile Page โ†’ Update Info / Upload Photo / Delete Account
  โ”‚
  โ–ผ
Logout โ†’ END

๐Ÿ“ก API Endpoints

News

Method Endpoint Description
GET /api/health Server health check
GET /api/news?persona=investor&category=business Fetch news filtered by persona and category

AI Features

Method Endpoint Input Output
POST /api/summary { content, lang } { bullets[] }
POST /api/impact { content, persona, lang } { impact }
POST /api/chat { content, message, persona, lang, history[] } { reply }
POST /api/sentiment { title, description } { sentiment, score }
POST /api/watchnext { content } { predictions[] }
POST /api/navigator { articles[] } { summary, insights[], questions[] }
POST /api/translate { text, targetLang } { translatedText }

๐Ÿš€ Getting Started

Prerequisites

Backend Setup

# 1. Clone the repository
git clone https://github.com/your-username/infomind.git
cd infomind

# 2. Install dependencies
npm install

# 3. Create your .env file
cp .env.example .env
# Fill in your API keys in .env

# 4. Start the development server
npm run dev

Server runs on http://localhost:5000

Test the API

# Health check
curl http://localhost:5000/api/health

# Get news for investor persona
curl http://localhost:5000/api/news?persona=investor

# Summarize an article
curl -X POST http://localhost:5000/api/summary \
  -H "Content-Type: application/json" \
  -d '{"content": "Article text here...", "lang": "en"}'

๐Ÿ”‘ Environment Variables

Create a .env file in the root of the project:

NEWS_API_KEY=your_newsapi_key_here
OPENAI_API_KEY=your_openai_api_key_here
PORT=5000
Variable Where to get it
NEWS_API_KEY newsapi.org/register โ€” free plan
OPENAI_API_KEY platform.openai.com/api-keys

โš ๏ธ Never commit your .env file to GitHub. It is already added to .gitignore.


๐Ÿ‘ฅ Team

Member Role Responsibilities
Member 1 Frontend + UX React UI, Pages, Components, Styling, Interactions
Member 2 Backend + AI Node.js, Express, NewsAPI, OpenAI, All AI Endpoints

๐Ÿ“Š Feature Priority

Priority Feature Effort
๐Ÿ”ด Must Have Persona-based feed + category filter Low
๐Ÿ”ด Must Have AI Summary + Why It Matters Low
๐Ÿ”ด Must Have Chat panel per article Medium
๐ŸŸก Should Have Sentiment badges on cards Very Low
๐ŸŸก Should Have News Navigator Medium
๐ŸŸข Nice to Have What to Watch Next predictions Low
๐ŸŸข Nice to Have Tamil language toggle Medium
โญ Wow Factor Old Way vs AI Way toggle Very Low

๐ŸŽฏ Demo Flow for Judges

Hit every requirement in under 3 minutes:

  1. Open app โ†’ Persona selector appears โ†’ Pick Investor
  2. See personalized business feed with sentiment badges
  3. Click article โ†’ Toggle "Old Way vs AI Way" โ†’ Judges see the contrast immediately
  4. Click "Generate Summary" โ†’ bullet points appear instantly
  5. Click "Why It Matters" โ†’ investor-tailored impact shown
  6. Ask a question in chat โ†’ persona-aware AI reply
  7. Go back โ†’ Select 3 articles โ†’ "Build My Briefing" โ†’ Navigator page
  8. Toggle language to เฎคเฎฎเฎฟเฎดเฏ โ†’ Everything switches to Tamil

๐Ÿ“„ License

This project was built for the Economic Times Gen AI Hackathon 2026.


Built with โค๏ธ for ET Gen AI Hackathon 2026 โ€” Infomind

About

๐Ÿง  AI-native news experience personalized feeds, AI summaries, article chat Built for personal use.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages