Adding Translation with a Web Component and Chrome AI / / No Comments A few days ago, I blogged about using Chrome’s built-in generative AI features (which are still super duper too early to even consider for production) to add on-device translation capabilities to a web app. It got me thinking, what if we could do translation automatically via a web component? If for some reason it failed, that would be fine as the original text would still be there, but in cases where it could work, it would be automatic. Here’s what I built. First, I whipped up a quick HTML demo of the text I’d like translated: <translate-text>Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the... more → Posted in: JavaScript Tagged with: Adding, Chrome, Component, Translation
Using Chrome AI for Translation / / No Comments I’ve done a couple blog posts now on Chrome’s efforts to bring generative AI to the browser. It’s still somewhat of a rough process (remember, you can sign up for access to test and learn more at the intro post from the Chrome engineers), but it’s getting better over time. One thing I mentioned in my last post ("Using Chrome AI to Rewrite Text") was how the Chrome team is shipping focused APIs for specific purposes, not just general Q and A. In that previous post, I demonstrated an example of the Rewriter API. As yet another example of this, you can now test out on device translation. As with everything else I’ve shared in this space, you should consider... more → Posted in: JavaScript Tagged with: Chrome, Translation, using
Using Chrome AI to Rewrite Text / / No Comments Earlier this month, I discussed how Chrome’s upcoming built-in AI support was adding new features specifically tailored to certain use-cases. In that post, I looked at the Summarizer API. For today, I decided to take a look at the rewriter API. As a quick reminder, this is very early on, and if you want to try this yourself, you should hit the sign-up form and read the intro post from the Chrome folks first. Obviously, everything I’m going to show below probably will, almost certainly will, change before shipping. Ok, with that out of the way, let’s talk rewriting, specifically, how the Chrome API operates. Given a set of source input, the API can shorten, or lengthen the input,... more → Posted in: JavaScript Tagged with: Chrome, Rewrite, text, using
Using the Chrome AI Summarizer (Early Look) / / No Comments I’ve looked at Chrome’s on-device GenAI development a few times now, and as a feature it is moving pretty fast. In fact, that first post and my follow up both don’t work anymore due to the API changing. I’m fine with that as I knew it was a bleeding edge feature, but I just want to warn folks ahead of time that everything you see here may, no, will change, probably a lot. As before though, I’m keep getting more and more excited about the possibilities here. I’m still not certain this will see the light of day (in mainline Chrome) or expand out to other browsers, but it’s quite interesting. Most recently, Google has added three new APIs to the feature: A... more → Posted in: JavaScript Tagged with: Chrome, Early, Look, Summarizer, using
Real-Time Sentiment Analysis on Device with AI in Chrome / / No Comments Last week, I took a look at Chrome’s GenAI implementation in the browser. What I found was interesting, and rough, but possibly something that could be incredibly useful in the future. I’ve been thinking about it more the last few days. First off, if this feature interests you, there is an early preview program you can sign up for that gives you access to a mailing list containing docs, announcements, and more information. I’ve done that and it was a relatively quick process. There are already cool things I’ve seen there that I want to dig into soon, but today I wanted to share a little experiment. This too does not work terribly well yet, but I think the idea has merit... more → Posted in: JavaScript Tagged with: Analysis, Chrome, device, realtime, Sentiment
A Quick Look at AI in Chrome / / No Comments Google announced a while back their intent to experiment with generative AI in the browser itself. Personally, I think this could be a really good idea, but I’m really unsure as to how many other vendors would support it. With Edge being a Chromium product, and Microsoft being pro-GenAI, it seems like a safe bet it would support it. Safari and Firefox… I honestly feel like they probably never would. That being said, initial support landed in Chrome Canary (the bleeding edge version of Chrome) and I thought I’d take a quick look. Here’s what I found. Setting it Up To test this new feature, you need either Chrome Canary or Dev. Enabling support requires tweaking two flags... more → Posted in: JavaScript Tagged with: Chrome, Look, Quick
Chrome 91 is up to 23% faster, thanks to new JavaScript compiler, memory optimizations – 9to5Google / / No Comments Chrome 91 is up to 23% faster, thanks to new JavaScript compiler, memory optimizations 9to5Google “JavaScript” – Google News… more → Posted in: JavaScript Tagged with: 9to5Google, Chrome, compiler, faster, JavaScript, memory, optimizations, Thanks
Google Chrome Will Get New Feature to Stop JavaScript Based ‘Tab-Napping’ Attacks: Report – Gadgets 360 / / No Comments Google Chrome Will Get New Feature to Stop JavaScript Based ‘Tab-Napping’ Attacks: Report Gadgets 360 “JavaScript” – Google News… more → Posted in: JavaScript Tagged with: ‘TabNapping’, attacks, based, Chrome, feature, Gadgets, Google, JavaScript, Report, Stop