BiteStats is a Chrome extension that provides order insights from Grubhub and DoorDash. It includes a React-based dashboard to display various metrics and charts about your food orders.
- Order Insights: Fetches and displays order data from Grubhub and DoorDash.
- Dashboard: Interactive dashboard with various KPIs, charts, and a date range picker.
- Theme Toggle: Light and dark mode support.
- Charts: Bar chart, line chart, and donut chart for visualizing order data.
- Date Range Picker: Filter orders by a specific date range.
- Clone the repository:
git clone https://github.com/SDev6699/bitestas.git
- Open Chrome and navigate to
chrome://extensions/
. - Enable "Developer mode" by toggling the switch in the top right corner.
- Click "Load unpacked" and select the
chrome-extension
directory from the cloned repository.
- Navigate to the
react-app
directory:cd bitestas/react-app
- Install dependencies:
npm install
- Start the development server:
npm start
- Open Grubhub or DoorDash in your Chrome browser.
- Click on the BiteStats extension icon in the Chrome toolbar.
- Click "Open BiteStats Page" to view the React dashboard with your order insights.
- The dashboard will display various KPIs such as Total Spend, Orders Count, Restaurants, Avg Order Price, and Items Ordered.
- Use the date range picker to filter the order data.
- Toggle between different charts and data views using the provided switches.
bitestas/
βββ chrome-extension/
β βββ background.js
β βββ content/
β β βββ doordash_content.js
β β βββ grubhub_content.js
β βββ images/
β βββ manifest.json
β βββ popup.html
β βββ popup.js
β βββ privacy-policy.html
βββ react-app/
βββ public/
βββ src/
β βββ components/
β β βββ Dashboard/
β β β βββ BarChart.js
β β β βββ DonutChart.js
β β β βββ KPI.js
β β β βββ LineChart.js
β β β βββ ToggleSwitch.js
β β βββ DateRangePicker.js
β β βββ Footer.js
β β βββ Header.js
β β βββ ToggleSwitch.css
β βββ hooks/
β β βββ useOrderData.js
β βββ services/
β β βββ DoorDashOrderData.js
β β βββ GrubhubOrderData.js
β β βββ OrderData.js
β βββ pages/
β β βββ Dashboard.js
β βββ App.js
β βββ ToggleColorMode.js
β βββ index.js
βββ package.json
- Build the React app:
npm run build
- The production-ready files will be in the
react-app/build
directory.
Contributions are welcome! Please create a pull request or open an issue to discuss your changes or suggestions.
This project is licensed under the MIT License. See the LICENSE file for details.