A privacy-first, client-side web application for analyzing Costco purchase receipts.
This tool processes Costco receipt data locally in your browser to provide comprehensive analytics on spending habits. It operates without a backend server, ensuring your financial data remains private and never leaves your device.
- Dashboard: High-level statistics on net spending, visits, item counts, and savings.
- Trends: Monthly spending analysis, savings tracking, and purchase frequency heatmaps.
- Item Analysis: Top spending items, price evolution tracking, and frequently purchased products.
- Categories: Department-level spending breakdown.
- Warehouse Analytics: Comparison of spending across different warehouse locations.
- Gas Station Stats: Detailed tracking of fuel spending, gallons purchased, and price trends.
- Taxes & Rewards: Effective tax rate calculation and Executive Membership 2% reward tracking.
Figure 1: Main dashboard showing key statistics and spending trends.
Figure 2: detailed item price tracking and purchase history.
- Open
index.htmldirectly in your web browser. - Note: Some browsers may restrict D3.js functionality when opening files directly. Use Option 2 if charts fail to load.
Run a simple HTTP server from the project root:
# Python 3
python3 -m http.server 8000Navigate to http://localhost:8000 in your browser.
The application requires JSON files containing receipt data. We recommend using the Costco Receipts Downloader Chrome extension to export this data.
- Install Extension: Add the Costco Receipts Downloader to Chrome.
- Export Data:
- Navigate to your Costco account.
- Use the extension to export individual JSON files for your receipts.
- Note: Export "Warehouse" and "Online" receipts separately to ensure the application parses them correctly.
- Load Data: Click "Select Receipt Files" in the application to load your exported JSON files.
- Warehouse: In-store purchases, returns, and gas transactions.
- Online: E-commerce orders and deliveries.
- Architecture: Single-page application (SPA) with no backend dependencies.
- Stack: HTML5, CSS3, Vanilla JavaScript (ES6+).
- Visualization: D3.js (v7) for interactive charts.
- Storage: In-memory processing only; no local storage or database persistence.
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material
Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
- NonCommercial — You may not use the material for commercial purposes.
See the LICENSE file for the full license text.
This project is not affiliated with Costco Wholesale Corporation.