

π img/
βββ (all your extension icons, logos, screenshots, etc.)
π libs/
ββ change_costume.js # Utility functions to swap your petβs avatar βcostumeβ
β
ββ pet.js # Core pet logic: check save URL, idle animations, clicks
β
ββ Readability.js # Mozillaβs Readability library (fork) for extracting
clean article text from arbitrary web pages.
π user_code/
ββ content.js # Content script injected into each page.
β β’ Listens for βextract_textβ messages
β β’ Runs extractPageText() (with Readability)
β
ββ note_generation.js # Call Gemini to generate summary then call background to
β create and download a txt file
β
ββ background.js # Persistent background script that:
- Listens for messages from sender, create and download file.
ββ index.html # The HTML for your extensionβs side bar
β
ββ manifest.json # Chrome extension manifest:
β β’ Declares permissions (tabs, storage, activeTab, etc.)
β β’ Hooks up content.js as a content script
β β’ Registers background.js as a service worker/background
β β’ Points to index.html as the side panel
β
ββ pet_brain.json # Your petβs βcontextβ or memory store.
β
ββ README.md
2.0 App Flow