Skip to content

PolicyPal: Your Smart Companion for Terms & Privacy Analysis ๐Ÿ•ต๏ธโ€โ™€๏ธ๐Ÿ”

Notifications You must be signed in to change notification settings

gd03champ/policypal-extention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

README.md

PolicyPal: Your Smart Companion for Terms & Privacy Analysis ๐Ÿ•ต๏ธโ€โ™€๏ธ๐Ÿ”

Policypal is a browser extension that allows users to analyze and summarize terms & conditions and privacy policies of websites. The extension ๐Ÿš€ harnesses the power of the Bard API ๐Ÿง™โ€โ™‚๏ธโœจ, a custom API built with Node.js and Express, to perform the analysis and generate the summaries. Get ready to dive into the world of legal jargon and privacy policies with ease! ๐Ÿ’ช and never fall for hidden terms or harmfull privacy policies again.

Tech Stack ๐Ÿ› ๏ธ

The project is built using an awesome tech stack:

  • JavaScript ๐ŸŒ
  • Chrome Extension API ๐Ÿงฉ
  • HTML/CSS ๐ŸŽจ
  • Node.js ๐Ÿš€
  • Express โšก๏ธ
  • Bard API (Custom API for analysis and summarization) ๐Ÿงช

How it Works ๐Ÿ”„

The Policypal extension provides two main functionalities: analyzing a specific TOS or privacy policy page and summarizing its content. The process flow is as follows:

  1. Right-click Context Menu ๐Ÿ–ฑ๏ธ: When you right-click on a link to a terms of service (TOS) or privacy policy page, the extension adds an option "Inspect TOS or Privacy Policy" to the context menu. Go ahead, give it a try! ๐Ÿ˜‰

  2. Clicking the Context Menu Option ๐Ÿ–ฑ๏ธ: When you select the "Inspect TOS or Privacy Policy" option from the context menu, the extension opens a progress popup window and initiates the analysis process. Get ready for some behind-the-scenes action! ๐ŸŽฌ

  3. Fetching the Content ๐ŸŒ: The extension fetches the content of the selected TOS or privacy policy page and sends it to the Bard API for analysis. The progress popup window shows the progress as "Processing...". Time to gather all the juicy details! ๐Ÿ“š๐Ÿ”Ž

  4. Analyzing the Content ๐Ÿ”ฌ: The Bard API receives the content and puts on its magic hat ๐ŸŽฉ to analyze it using sophisticated natural language processing techniques. It generates a summary and identifies potential harmful elements in the content. It's like having a legal wizard by your side! ๐Ÿง™โ€โ™‚๏ธโœจ

  5. Displaying the Summary ๐Ÿ“‹: The generated summary is sent back to the extension, which then displays it in an alert window and updates the progress popup with "Analysis complete โœ…". Sit back, relax, and enjoy the condensed version! ๐Ÿ“–๐Ÿ“

  6. Closing the Progress Popup ๐Ÿšช: After displaying the summary or encountering an error, the progress popup window is automatically closed. No need to say goodbye, it knows when to exit gracefully! ๐Ÿ‘‹

Usage ๐Ÿš€

To use the Terms Trackers extension, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/gd03champ/policypal-extention.git
  2. Open Google Chrome and go to the Extensions page by entering the following URL in the address bar:

    chrome://extensions/
    
  3. Enable Developer mode by toggling the switch at the top right corner.

  4. Click on the "Load unpacked" button and select the cloned project directory (policypal-extention). Let the extension come to life! โšก๏ธ

  5. Update the API key in the Options page:

    • Click on the Policypal extension icon in the Extensions menu. It's time to give it some personal touch! ๐Ÿ˜Ž
      image
    • Select "Options" and enter your API key in the provided input field. Let the magic happen! ๐Ÿช„โœจ
  6. To analyze a TOS or privacy policy page:

    • Right-click on a link to a TOS or privacy policy page.
    • Select the "[PolicyPalโœจ] - Inspect Policy" option from the context menu or clikcing the extention icon top open popup. It's like having a secret detective tool! ๐Ÿ•ต๏ธโ€โ™‚๏ธ
      imageimage

- The progress popup window will appear, showing the progress of the analysis. Stay tuned! โŒ›๏ธ๐Ÿ“Š
image
- After the analysis is complete, the summary will be displayed in an alert window. Get ready to see the essence of the content! ๐Ÿงชโœจ
image
- The progress popup window will automatically close. It knows when it's time to exit the stage! ๐Ÿšช๐ŸŽญ

Bard API ๐Ÿง™โ€โ™‚๏ธ๐Ÿ”ฎ

The Bard API is an unofficial custom API developed by me using Node.js and Express. The Bard API uses bard to generate result using bard cookieID and input prompt. In the Terms Trackers extension, the Bard API works its magic to analyze the content of TOS or privacy policy pages. It provides the summarized results and identifies potential harmful elements. Make sure to set up and deploy the Bard API to unlock its full potential! โœจ

Contributing ๐Ÿค

Contributions to the Terms Trackers project are highly appreciated! We believe in the power of collaboration and welcome your contributions with open arms. If you find any issues or have suggestions for improvements, please create a GitHub issue or submit a pull request. Before contributing, make sure to review the project's guidelines for contributing and code of conduct.

Let's make the PolicyPal extension even more awesome together!

License ๐Ÿ“„

The Terms Trackers project is licensed under the MIT License. Feel free to explore, modify, and use the code according to the terms of the license. Let the magic begin! โœจโœจ

About

PolicyPal: Your Smart Companion for Terms & Privacy Analysis ๐Ÿ•ต๏ธโ€โ™€๏ธ๐Ÿ”

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published