{"id":29859245,"url":"https://github.com/gbengacode/hashtag-sentiment-dashboard","last_synced_at":"2025-10-10T02:32:38.237Z","repository":{"id":294082096,"uuid":"985918191","full_name":"Gbengacode/hashtag-sentiment-dashboard","owner":"Gbengacode","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-18T20:15:22.000Z","size":530,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T02:46:28.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hashtag-sentiment-dashboard.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gbengacode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-18T19:38:16.000Z","updated_at":"2025-05-18T20:15:25.000Z","dependencies_parsed_at":"2025-05-18T21:34:39.824Z","dependency_job_id":null,"html_url":"https://github.com/Gbengacode/hashtag-sentiment-dashboard","commit_stats":null,"previous_names":["gbengacode/hashtag-sentiment-dashboard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gbengacode/hashtag-sentiment-dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbengacode%2Fhashtag-sentiment-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbengacode%2Fhashtag-sentiment-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbengacode%2Fhashtag-sentiment-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbengacode%2Fhashtag-sentiment-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gbengacode","download_url":"https://codeload.github.com/Gbengacode/hashtag-sentiment-dashboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbengacode%2Fhashtag-sentiment-dashboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002538,"owners_count":26083400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-30T02:12:31.947Z","updated_at":"2025-10-10T02:32:38.216Z","avatar_url":"https://github.com/Gbengacode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hashtag Sentiment Analysis Dashboard\n\n---\n\n## Overview\n\nThis project is a **Hashtag Sentiment Analysis Dashboard** built with **Next.js**, **React**, **Material-UI (MUI)**, and **React Query**. It visualizes sentiment trends of popular hashtags over a specific date range, allowing users to select hashtags dynamically from available tags fetched via an API.\n\n### Key Features:\n- Dynamic fetching of hashtag trend data and available hashtags using **React Query** and **Axios**.\n- Responsive UI built with **Material-UI**.\n- Interactive hashtag selection with dropdown.\n- Trend visualization (via a dynamically imported chart component).\n- Error handling and loading states for smooth UX.\n- Server-side rendering disabled on heavy chart component to optimize performance.\n- Breadcrumb navigation for better user experience.\n\n---\n\n## Approach\n\n- Used **React Query** to manage asynchronous API calls, caching, and background refetching.\n- Implemented **custom hooks** (`useHashtagTrend`) to abstract data fetching logic.\n- Fetched all available hashtags on page load and memoized the list for rendering in a dropdown.\n- Used **Next.js dynamic imports** with client-side rendering only for charts to improve page load.\n- Created a clean, mobile-responsive UI with **MUI** components.\n- Used React's **`useMemo`**, **`useCallback`**, and **`useEffect`** hooks for performance optimization.\n- Gracefully handled loading, error, and empty states.\n- Included navigation breadcrumbs for user context.\n\n---\n\n## Screenshots / Demo\n\n### Hashtag Selection and Trend Visualization\n\n![Screenshot](screenshots/chart.png)\n\n### Trend Chart Display\n\n![Screenshot](screenshots/chartonly.png)\n\n### Responsive Mobile View\n\n![Screenshot](screenshots/mobile-screen.png)\n\n---\n\n## Time Spent\n\n- **Initial setup and environment:** 20 minutes\n- **API integration and data fetching:** 20 minutes\n- **UI development with Material-UI:** 20 minutes\n- **Chart integration and dynamic imports:** 30 minutes\n- **Error handling and optimization:** 20 minutes \n- **Testing and refinements:** 20 minutes\n\n**Total time spent:** ~2 hours\n\n---\n\n\n## How to Run\n\n```bash\ngit clone https://github.com/gbengacode/hashtag-sentiment-dashboard.git\ncd hashtag-sentiment-dashboard\nnpm install\nnpm run dev\n```\n## Live Demo\n[Visit Hashtag Sentiment Dashboard](https://hashtag-sentiment-dashboard.vercel.app)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbengacode%2Fhashtag-sentiment-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbengacode%2Fhashtag-sentiment-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbengacode%2Fhashtag-sentiment-dashboard/lists"}