Local-first Chrome extension for analyzing personal Instagram liked-media interaction patterns.
The extension learns browser request shapes at runtime, stores normalized interaction records in IndexedDB, and renders a local dashboard from observed changes over weekly cohorts. It is designed as a personal data-analysis tool, not a hosted service.
- Runs as a Chrome Manifest V3 extension.
- Learns the shape of relevant browser requests during normal logged-in use.
- Collects recently liked media into local IndexedDB storage.
- Baselines newly discovered reels and groups clean candidates into weekly cohorts.
- Rechecks unevaluated cohorts and records interval-based interaction changes.
- Renders a local dashboard with cohort stats and a taste leaderboard.
- It does not store credentials, cookies, CSRF tokens, or session IDs in source code.
- It does not upload local data to a backend.
- It does not include real captured payloads in this public version.
- It does not provide exact per-person interaction timestamps.
- It should not be used for harassment, surveillance, or attempts to bypass platform protections.
Instagram tab
-> content script observes page context
-> injected script learns relevant request shapes
-> background worker schedules local sync
-> parsers normalize response data
-> IndexedDB stores media, user, event, and run records
-> dashboard renders local analytics
Main files:
src/injected.jsobserves relevant request shapes in the page context.src/content.jsbridges extension messages and page-context fetches.src/background.jshandles request capture, alarms, and dashboard messages.src/sync.jsruns daily collection and weekly cohort evaluation.src/parsers.jsnormalizes response data.src/db.jsmanages IndexedDB records and dashboard aggregation.src/dashboard.*renders the popup dashboard.
See docs/architecture.md for more detail.
Data stays in the browser's local extension storage. The project has no server component and no upload path for local records.
Request templates are learned from the active browser session so copied credentials or stale tokens are not stored in the repo. Raw captures, HAR files, local exports, and debug dumps are ignored by .gitignore.
The fixtures/ directory contains synthetic examples only. Do not commit real usernames, user IDs, media IDs, shortcodes, captions, comments, cookies, CSRF tokens, session IDs, request signatures, or device identifiers.
See docs/privacy.md for the repository privacy rules.
- Open
chrome://extensions. - Enable Developer mode.
- Click
Load unpacked. - Select this project directory.
Instagram's Activity Center request includes session-specific form fields. The extension learns that request instead of storing copied cookies or tokens.
- Log in to Instagram in Chrome.
- Open
https://www.instagram.com/your_activity/interactions/likes/. - Wait for the liked grid to load, or scroll once if it is already loaded.
- If the tab was open before loading the extension, refresh it once.
- Open the extension popup and check capture status.
The optional route-definition request provides richer reel root data, including facepile_top_likers.
- After loading or reloading the extension, open any Instagram reel or post while the extension is enabled.
- Open the popup and click
Checkin the Capture section. - The Capture line should show both
likesandrouteas captured.
Run the syntax check:
npm run check
The public demo fixtures live in fixtures/. Private captures belong outside the repository or in ignored local folders.
IndexedDB stores:
mediausersfriend_likessync_runssettings
Important media lifecycle fields:
collection_status:new,candidate, orexcluded_at_baselineevaluation_status:unevaluated,hit, ormisscohort_week: ISO week key for the collection cohortbaseline_checked_at: when the first clean/excluded decision was madeweekly_checked_at: when the cohort candidate was evaluated
- Results are interval-based. The extension can observe that a signal appeared between baseline and evaluation, but it cannot know the exact interaction time.
- Category-level visualizations need richer reel metadata than the Activity Center response currently provides.
- Instagram response shapes can change, which may require parser updates.
- This project is intended for local experimentation and portfolio review, not distribution as a hosted product.
- Add synthetic demo mode for dashboard screenshots.
- Expand dashboard visualizations using only local or synthetic data.
- Add parser tests around synthetic fixtures.
- Add optional category inference when safe metadata is available.