TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

WXT: Next-Gen Web Extension Framework

37 pointsby nateb20225 months ago

6 comments

cxr5 months ago
Running browser extensions through minifiers is pretty representative of the absurdity of the NodeJS&#x2F;NPM cargo cult.<p>No one who&#x27;s writing an open source browser extension should be using minification, and no one who&#x27;s installing a browser extension should be installing one that&#x27;s closed source. Previously:<p>&gt; <i>Most people aren&#x27;t (or at least feel they aren&#x27;t) able to take a hardline stance about only using free software, but if there&#x27;s one area of your digital life you should be able to apply it to, it&#x27;s browser extensions.</i><p>&lt;<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41998764">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41998764</a>&gt;
评论 #42404323 未加载
Animats5 months ago
Oh, this is a <i>framework</i>, in the JavaScript sense, not a new scheme for web extensions. So it doesn&#x27;t need Google&#x27;s approval.
jauntywundrkind5 months ago
Buult a small extension recently, and spent a while trying crxjs and some various rollup plugins and other options.<p>It was taking a long long time, and I didn&#x27;t have many dependencies I needed. So I just wrote the code by hand, unbundled. Using esm wasn&#x27;t too too hard, but you have to use dynamic imports &amp; a chrome specific getURL. <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;53033388" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;53033388</a>
hysan5 months ago
For those who have worked a lot with web extensions, I’m curious to hear what their experiences are with frameworks. There are quite a few that I’ve come across:<p>- WXT<p>- Plasmo: www.plasmo.com<p>- CRXJS: <a href="https:&#x2F;&#x2F;crxjs.dev&#x2F;vite-plugin" rel="nofollow">https:&#x2F;&#x2F;crxjs.dev&#x2F;vite-plugin</a><p>- Web Extension Vite Starter: <a href="https:&#x2F;&#x2F;github.com&#x2F;antfu-collective&#x2F;vitesse-webext" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;antfu-collective&#x2F;vitesse-webext</a><p>- Bedframe: <a href="https:&#x2F;&#x2F;github.com&#x2F;nyaggah&#x2F;bedframe" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nyaggah&#x2F;bedframe</a><p>to name a few. Has anyone used multiple of these? If so, how do they compare? What makes one stand out above the others?
评论 #42398240 未加载
Andugal5 months ago
WXT is heavily inspired by Nuxt (with emphasis on DX) and we gladly use both at my company.
tmpfs5 months ago
I decided to try this recently on my first browser extension and so far the experience has been good.<p>Sometimes the websocket connection for the hot reload dies but apart from that I&#x27;ve been quite impressed.<p>Just abstracting away the different manifest files and using the webextension polyfill is all I need and it works.<p>The only shame is how abysmal the experience is in Firefox I find myself preferring to debug the extension in Chrome as getting to the debugger in Firefox is such a pain. And I use Firefox as my primary browser so it&#x27;s not because of a Chrome bias I say this. The Firefox folks could really improve the UX here.
评论 #42397181 未加载