image.png

image.png

πŸ“ 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