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.