A pet that lives in your Canvas. Chrome extension, free, no login.
Install: https://chromewebstore.google.com/detail/pets-for-canvas/cgmbkkaalodhmfadjcnolihhomgkdpbc
Site: https://petsforcanvas.com
Made by a student. Pets for Canvas™ is a trademark of Winston Digital LLC.
AI was used to assist the creation of this project
Adds a pet that walks around your Canvas page. Gets happy when you submit, sad when something is overdue, and sleeps at night. Finish what is due each day and your streak grows. Streaks pay coins, coins buy collars and new animals.
Every outbound request the extension makes is in one file: extension/network.js. There is nothing else. In short:
- The API receives an anonymous device id plus the game events it needs to keep your coin balance accurate: an assignment id when you submit, a milestone day count, shop actions, and anything you type into the feedback box.
- Canvas is read on your logged-in session for overdue state, and one private entry is written to your Canvas custom data so pets follow Canvas login across devices. Nothing is ever posted, submitted or changed in your courses.
- No names, no grades, no messages, no page contents, no browsing history.
Full policy: https://petsforcanvas.com/privacy
extension/— the extension as shipped (MV3).content.jsdetects completion moments,streak.jskeeps the streak,economy.jsturns events into earn requests,pet.jsis the pet,popup.*is the hub,network.jsis the only file that talks to the network.backend/— FastAPI service. The ledger is server-authoritative: prices, ownership, box odds and streak payouts live inbackend/ledger.py. Nothing the client stores can change a balance.tools/— store package build (build-store-zip.sh), rig builders for the animals, the test bench, the admin inbox reader.docs/— privacy policy and the animal/collar test benches.
- Store package:
tools/build-store-zip.shbuilds the zip from this repo. Each release is tagged (v1.0.9) and the tag message carries the zip's sha256. Unzip the store copy and diff it against a local build. - Server:
GET https://petsforcanvas.com/versionreturns the commit the running API was deployed from (tools/deploy.shsets it). The API is hosted on Railway and operated by Winston Digital LLC.
Dev copy: chrome://extensions → Developer mode → Load unpacked → extension/. It points at the production API.
Backend locally:
python3 -m venv .venv && .venv/bin/pip install -r backend/requirements.txt
.venv/bin/uvicorn backend.app:app --reload --port 8971
The store package is built only by tools/build-store-zip.sh: it flips the dev flag, strips dormant code and every comment, and fails if any network call exists outside network.js.
Bug reports and security reports are welcome (see SECURITY.md). Pull requests are not being taken yet.
Code: Apache-2.0. Art and name: see ART-LICENSE.md.
