About this project

Spenddy Link is a privacy-respecting browser extension that seamlessly transfers Swiggy order history to the Spenddy web application for food spending analysis. ## What It Does The extension performs three core functions: 1. Detects when the user is logged into Swiggy and confirms connectivity 2. Fetches full order history on demand — data stays in the browser until the user visits Spenddy 3. Exposes fetched data to the Spenddy web app for one-click import ## Installation Available from the Chrome Web Store. Also supports Firefox. Built with WXT and TypeScript. ## Prerequisites - Node.js ≥ 18 - pnpm ≥ 8 (or npm / yarn) - WXT CLI (optional; included as dev dependency) ## Development Install dependencies with `pnpm install`, then run `pnpm dev` for Chromium/Chrome or `pnpm dev:firefox` for Firefox. Builds output to `.wxt/dist/` or `.wxt/dist-firefox/` respectively. Production builds: `pnpm build` (Chrome) or `pnpm build:firefox`. Zip bundles via `pnpm zip` or `pnpm zip:firefox`. To load locally, enable Developer mode in `chrome://extensions` (or `edge://extensions`) and click Load unpacked, selecting the dist directory. For Firefox, use `about:debugging#/runtime/this-firefox` and load the manifest.json from the Firefox dist. ## Usage 1. Open and log into Swiggy 2. Click the Spenddy Link extension icon; confirm green "Connected" status 3. Press "Fetch Order Data" — progress displays in real time 4. Click "Go to Spenddy" to import the data into the Spenddy web app ## Project Structure - `entrypoints/background.ts` — service worker background script - `entrypoints/swiggy.content.ts` — content script injected on Swiggy - `entrypoints/spenddy.content.ts` — content script injected on Spenddy - `entrypoints/popup/` — extension popup UI - `components/` — shared TypeScript utilities - `wxt.config.ts` — WXT configuration Further documentation covers architecture and data type references. License: MIT — © 2024 Spenddy.