Build an open source AI powered Chrome extension help auto grouping tabs in one hour
Yuhang Xia
0 replies
The extension is called `ai-group-tabs`, now it's open sourced at https://github.com/MichaelYuhe/ai-group-tabs.
Here is the story of how I build this extension in one hour and get 160 stars in a day.
1. Idea: Yesterday, I saw a colleague searching for a Group Tabs plugin to organize dozens of tabs. However, he found that the existing ones only grouped tabs based on domain names, which still resulted in many crowded groups. This led me to think, why not use AI for summarizing and categorizing? Just like my workspaces in Arc, categorizing into development, entertainment, etc.
2. Research: Before going to sleep, I suddenly remembered this idea and checked out a few open-source Group Tabs plugins on GitHub. I discovered that Chrome already offers a Group API, meaning the most challenging part of the task was already done. After a quick assessment, I realized it would only take about half an hour of work, so I immediately started writing the code.
3. AI Summary: I used a starter template from github.com to quickly kickstart the plugin development. The first step was to write an AI that summarizes all current tabs based on their title and URI, using GPT-4.
4. Prompt Optimization: After ensuring the summary was working, I began optimizing the prompts. The goal was to get the category for each tab. With my limited skills in crafting prompts, I managed to complete this task.
5. Tab Categorization: After obtaining the type for each tab, the last step was categorization. Here, I directly used Chrome's native API to categorize tabs based on the types analyzed by AI. This completed the basic functionality and met the requirements.
6. Follow-up: This was a small project developed out of interest, but it seems to meet the needs of others as well. So, I open-sourced the plugin code. Friends who are interested can join in optimizing this plugin. There seems to be a lot more functionality that can be added!
🤔
No comments yet be the first to help
No comments yet be the first to help