Last 12 weeks · 0 commits
1 of 6 standards met
Before releasing this extension, there are a few steps to verify: [ ] Update the location of the Prompt API. Currently we use , and that's certainly not the final destination of the API. This should be updated in . [ ] Verify the location of the Summarizer API. It seems like it may stay at , and it should be verified before GA. [ ] Add confirmation to clip deletion. Right now, clicking on the delete icon immediately deletes the clip. It would be good to add a confirmation step so people don't accidentally delete clips.
We are interested in trying out Chrome's built-in AI APIs (specifically the experimental Prompt AI or Summarizer API, with a fallback if not present) to add the ability to summarize the last few bookmarks a user added. This might be displayed on clicking a Gemini-style "sparkle" button. Prompt API is https://developer.chrome.com/docs/extensions/ai/prompt-api, Summarizer is https://developer.chrome.com/docs/ai/summarizer-api The main changes to the current logic might be to store enough context about the current page when a bookmark is being saved (this could either be via saving text from element with the longest text, the text from the selected node or something more clever) and then feeding this to the API as part of briefly summarizing the bookmarks. The AI APIs use Gemini Nano (a small on-device model with a smaller context window). Notes There are a few ways one could determine the element with the main content on the page for a description to be saved. One is finding the element in body with the most text such as via the below. Other approaches could involve looking at information in meta/social descriptions elsewhere in the page.
I just noticed the way I implemented deleting clips meant that the entire list was re-rendered when a clip was deleted. This results in losing scroll position on longer lists of clips. This switches to using the clip timestamp instead of the clip index to better target which clip to delete and allows me to delete the clip card directly from the DOM without re-rendering the list.
Repository: addyosmani/clipai. Description: A visual bookmark organizer for Chrome using built-in AI Stars: 37, Forks: 6. Primary language: JavaScript. Languages: JavaScript (81.5%), CSS (9.9%), HTML (6.1%), TypeScript (2.4%). Topics: bookmarking, bookmarks. Open PRs: 0, open issues: 2. Last activity: 1y ago. Community health: 28%. Top contributors: nzakas, addyosmani.