Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chrome extension example built with plasmo #16

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tantara
Copy link

@tantara tantara commented Dec 2, 2024

Summary

This PR implements chrome extension with transformers.js and plasmo. LLaMA, Phi3, SmolLM, Qwen series have been tested on Apple M1 Max.

Demo

The chrome extension hasn't been released to chrome store yet. Please refer to youtube demo or the original repo for how it works.

Reproduce

  1. Install dependencies
cd chrome-extension-plasmo
pnpm install
pnpm run dev

It will build chrome extension and output build/chrome-mv3-dev.

  1. Install chrome extension manually

Open chrome chrome://extensions and load unpacked from build/chrome-mv3-dev

  1. Click on icon to open side panel.

Enjoy!

@tantara
Copy link
Author

tantara commented Dec 2, 2024

Hi @xenova , can you review PR for chrome extension example?

@xenova
Copy link
Collaborator

xenova commented Jan 22, 2025

Hey @tantara! Thanks for the PR! Apologies for not responding earlier - it's been a super busy time lately!

The PR is quite large, so it might take some time to fully review, but I'll do my best to get to it ASAP! In the meantime, I see there are a few "WIP" and TODOs in the README. Are those planned in a future update, or is it something you'd like to include in this PR?

Thanks! 🤗

@tantara
Copy link
Author

tantara commented Jan 25, 2025

Hi @xenova thanks for following up. I just wanted to make this PR bare minimum for chrome extension with plasmo. I think plasmo would require more setup than your extension demo.

Edit: I updated README to make it clear. I've completed some WIP and TODOs (e.g. deepseek-r1) in a separate repo https://github.com/tantara/transformers.js-chrome. If this PR is merged, I will add more features into this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants