Projects

NewsBite — Curated News

20242 min read

Next.js
TypeScript
Tailwind CSS

NewsBite is a news aggregation app built with React and TypeScript. It pulls articles from several news APIs into one feed that you can filter by category, date, keyword, source and author.

On this page14 sections

NewsBite is a news aggregation app built with React and TypeScript. It pulls articles from several news APIs into one feed that you can filter by category, date, keyword, source and author.

🌟 Features#

1. Multi-Source News Integration#

  • Aggregates news from multiple sources, including The New York Times API.
  • Unified article format for consistent presentation across different sources.

2. Advanced Filtering System#

  • Category Filter: Browse news by specific categories (e.g., technology, politics, sports).
  • Date Range Selection: Filter articles within a custom date range.
  • Keyword Search: Find articles containing specific keywords or phrases.
  • Source Filter: Focus on news from particular sources.
  • Author Filter: Find articles by specific journalists or authors.

3. Responsive and Accessible Design#

  • Responsive layout that adapts to different screen sizes and devices.
  • Follows accessibility best practices.

4. Dark Mode Support#

  • Toggle between light and dark themes.

5. Real-Time Updates#

  • Uses React Query for data fetching and caching.
  • Refetches automatically so the news stays current.

6. Rich Article Cards#

  • Article cards show images, titles, abstracts, and metadata.
  • Quick access to full articles via external links.

7. Performance Optimized#

  • Lazy loading and code splitting for faster initial load.
  • State management with Zustand.

8. Error Handling and Loading States#

  • Error handling with readable error messages.
  • Skeleton loading states.

9. Customizable User Preferences#

  • Persistent filters and settings using local storage.

10. Mobile-First Navigation#

  • Mobile navigation with a responsive header and mobile menu.

11. Internationalization Ready#

  • The structure is set up for adding more languages.

📰 News APIs Used#

NewsBite uses three news APIs:

  1. The New York Times API: Articles and breaking news from The New York Times.

  2. The Guardian API: News articles from The Guardian and The Observer.

  3. News API: Headlines from over 80,000 sources worldwide.

🛠️ Technologies Used#

  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • React Query
  • Zustand
  • Axios
  • React Router
  • Shadcn UI
  • Docker