[{"data":1,"prerenderedAt":225},["ShallowReactive",2],{"articles":3,"article-en-the-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users":219},[4,21,33,46,60,72,81,90,100,111,121,130,141,151,166,177,187,200,209],{"slug":5,"locale":6,"title":7,"description":8,"publishedAt":9,"updatedAt":10,"tags":11,"cover":16,"minutes":17,"featured":10,"mostRead":18,"originalUrl":19,"originalLinked":18,"locales":20},"my-simple-strategy-for-3-268-5-star-chrome-extension-reviews","en","My Simple Strategy for 3,268 5‑Star Chrome Extension Reviews","Around 3.7% of my users leave a review. It comes down to asking at the right moment.","2025-07-28",null,[12,13,14,15],"Marketing","Side Projects","Side Hustle","Chrome Extension","\u002Fblog\u002Fmedia\u002Fmy-simple-strategy-for-3-268-5-star-chrome-extension-reviews\u002Fcover.webp",6,false,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fmy-simple-strategy-for-3-268-5-star-chrome-extension-reviews\u002F",[6],{"slug":22,"locale":6,"title":23,"description":24,"publishedAt":25,"updatedAt":10,"tags":26,"cover":29,"minutes":17,"featured":30,"mostRead":18,"originalUrl":31,"originalLinked":18,"locales":32},"lessons-from-a-bamboo-tree-staying-motivated-on-my-side-project","Five Years to 100K Users: The Bamboo Tree Story for Side Project Growth","For years almost nothing seemed to happen. Why I kept watering anyway.","2024-09-22",[27,28,13,14],"My Journey","Story","\u002Fblog\u002Fmedia\u002Flessons-from-a-bamboo-tree-staying-motivated-on-my-side-project\u002Fcover.webp",1,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Flessons-from-a-bamboo-tree-staying-motivated-on-my-side-project\u002F",[6],{"slug":34,"locale":6,"title":35,"description":36,"publishedAt":37,"updatedAt":10,"tags":38,"cover":41,"minutes":42,"featured":42,"mostRead":43,"originalUrl":44,"originalLinked":18,"locales":45},"3-practical-growth-hacks-i-applied-to-scale-my-chrome-extension-to-100k-users-without-any-marketing-budget","How I Grew My Chrome Extension to 100K Users Without Marketing Costs","Learning SEO, asking for reviews, and building ONE great product.","2024-06-18",[39,40,14,12,27],"Web Development","SEO","\u002Fblog\u002Fmedia\u002F3-practical-growth-hacks-i-applied-to-scale-my-chrome-extension-to-100k-users-without-any-marketing-budget\u002Fcover.webp",4,true,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002F3-practical-growth-hacks-i-applied-to-scale-my-chrome-extension-to-100k-users-without-any-marketing-budget\u002F",[6],{"slug":47,"locale":6,"title":48,"description":49,"publishedAt":50,"updatedAt":10,"tags":51,"cover":57,"minutes":42,"featured":10,"mostRead":18,"originalUrl":58,"originalLinked":18,"locales":59},"the-art-of-slow-growth-how-i-calmly-grew-my-chrome-extension-to-100k-users-in-5-years","The Art of Slow Growth: How I Calmly Grew My Chrome Extension to 100K Users In 5 Years","It took me over a year to get my first ten users. Why I stopped rushing.","2024-06-04",[52,53,39,54,55,56],"Entrepreneurship","marketing","#growth","startup","Startups","\u002Fblog\u002Fmedia\u002Fthe-art-of-slow-growth-how-i-calmly-grew-my-chrome-extension-to-100k-users-in-5-years\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fhow-i-calmly-grew-my-chrome-extension-to-100k-users-in-5-years\u002F",[6],{"slug":61,"locale":6,"title":62,"description":63,"publishedAt":64,"updatedAt":10,"tags":65,"cover":67,"minutes":68,"featured":69,"mostRead":18,"originalUrl":70,"originalLinked":18,"locales":71},"3-unusually-painful-mistakes-on-my-side-project-journey-to-100k-users","3 Unusually Painful Mistakes on My Side Project Journey to 100K Users","Never questioning growth, building an audience too late, and not writing things down.","2024-05-03",[66,52,56],"solopreneur","\u002Fblog\u002Fmedia\u002F3-unusually-painful-mistakes-on-my-side-project-journey-to-100k-users\u002Fcover.webp",5,3,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002F3-unusually-painful-mistakes-on-my-side-project-journey\u002F",[6],{"slug":73,"locale":6,"title":74,"description":75,"publishedAt":76,"updatedAt":10,"tags":77,"cover":78,"minutes":17,"featured":10,"mostRead":18,"originalUrl":79,"originalLinked":18,"locales":80},"forget-about-marketing-focus-on-building-an-awesome-product","Forget About Marketing. Focus on Building An Awesome Product","Everyone says great products need a megaphone. Why I still put the product first.","2024-03-04",[52,56,53],"\u002Fblog\u002Fmedia\u002Fforget-about-marketing-focus-on-building-an-awesome-product\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fforget-about-marketing-focus-on-building-an-awesome-product\u002F",[6],{"slug":82,"locale":6,"title":83,"description":84,"publishedAt":85,"updatedAt":10,"tags":86,"cover":87,"minutes":17,"featured":10,"mostRead":18,"originalUrl":88,"originalLinked":18,"locales":89},"5-reasons-why-side-projects-never-get-finished","5 Reasons Why Side-Projects Never Get Finished","Shiny objects, boredom, a lack of courage — and how to get back on track.","2023-08-01",[13],"\u002Fblog\u002Fmedia\u002F5-reasons-why-side-projects-never-get-finished\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002F5-reasons-why-side-projects-never-get-finished\u002F",[6],{"slug":91,"locale":6,"title":92,"description":93,"publishedAt":94,"updatedAt":10,"tags":95,"cover":97,"minutes":17,"featured":10,"mostRead":18,"originalUrl":98,"originalLinked":18,"locales":99},"time-vs-dreams-why-i-decided-to-sell-my-b2b-saas-ai-business","Time Vs. Dreams: Why I Decided to Sell My B2B SaaS AI Business","ChatGPT fever, competitors with thousands of users within weeks, and too little time. Why I sold my AI business.","2023-07-12",[96,66,56,52],"side project","\u002Fblog\u002Fmedia\u002Ftime-vs-dreams-why-i-decided-to-sell-my-b2b-saas-ai-business\u002Fcover.webp","https:\u002F\u002Fblog.marius-bongarts.de\u002Ftime-vs-dreams-why-i-decided-to-sell-my-b2b-saas-ai-business",[6],{"slug":101,"locale":6,"title":102,"description":103,"publishedAt":104,"updatedAt":10,"tags":105,"cover":107,"minutes":108,"featured":10,"mostRead":18,"originalUrl":109,"originalLinked":18,"locales":110},"the-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users","Web Highlights Tech Stack: Chrome Extension With 100k+ Users","Web Components, Vue.js and the rest of the stack behind the extension.","2023-02-27",[39,106,27],"Web Highlights","\u002Fblog\u002Fmedia\u002Fthe-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users\u002Fcover.webp",9,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fthe-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users\u002F",[6],{"slug":112,"locale":6,"title":113,"description":114,"publishedAt":115,"updatedAt":10,"tags":116,"cover":118,"minutes":42,"featured":10,"mostRead":18,"originalUrl":119,"originalLinked":18,"locales":120},"failing-forward-the-importance-of-publishing-your-side-projects","Failing Forward: The Importance of Publishing Your Side Projects","Publish your side projects, even if they fail — and why failing forward makes you more creative.","2023-02-20",[14,13,39,117,27],"Programming","\u002Fblog\u002Fmedia\u002Ffailing-forward-the-importance-of-publishing-your-side-projects\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Ffailing-forward-the-importance-of-publishing-your-side-projects\u002F",[6],{"slug":122,"locale":6,"title":123,"description":124,"publishedAt":125,"updatedAt":10,"tags":126,"cover":127,"minutes":68,"featured":10,"mostRead":18,"originalUrl":128,"originalLinked":18,"locales":129},"rocketing-to-10-000-users-how-i-achieved-a-270-increase-in-just-9-months-with-my-chrome-extension","How I Increased Chrome Extension Users by 270% in 9 Months","Simple SEO, done consistently: the nine months that took the extension to 10,000 users.","2023-02-06",[12,40,14,106],"\u002Fblog\u002Fmedia\u002Frocketing-to-10-000-users-how-i-achieved-a-270-increase-in-just-9-months-with-my-chrome-extension\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Frocketing-to-10-000-users-how-i-achieved-a-270-increase-in-just-9-months-with-my-chrome-extension\u002F",[6],{"slug":131,"locale":6,"title":132,"description":133,"publishedAt":134,"updatedAt":10,"tags":135,"cover":137,"minutes":138,"featured":10,"mostRead":18,"originalUrl":139,"originalLinked":18,"locales":140},"seo-strategies-i-used-to-gain-2-000-users-in-two-months","SEO Strategies I Used to Gain 2,000 Users In Two Months","A blog, backlinks and a cleaner site structure: how my user base grew 37% in two months.","2022-10-17",[40,12,39,136,27,28],"Software","\u002Fblog\u002Fmedia\u002Fseo-strategies-i-used-to-gain-2-000-users-in-two-months\u002Fcover.webp",8,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fseo-strategies-i-used-to-gain-2-000-users-in-two-months\u002F",[6],{"slug":142,"locale":6,"title":143,"description":144,"publishedAt":145,"updatedAt":10,"tags":146,"cover":147,"minutes":148,"featured":10,"mostRead":18,"originalUrl":149,"originalLinked":18,"locales":150},"my-journey-to-5000-users-with-a-web-pdf-highlighter-chrome-extension","How I Achieved 5000+ Users with My Chrome Extension","Just do it, do things that don’t scale, and talk about your product.","2022-10-10",[15,13,27,28],"\u002Fblog\u002Fmedia\u002Fmy-journey-to-5000-users-with-a-web-pdf-highlighter-chrome-extension\u002Fcover.webp",7,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fmy-journey-to-5000-users-with-a-web-pdf-highlighter-chrome-extension\u002F",[6],{"slug":152,"locale":6,"title":153,"description":154,"publishedAt":155,"updatedAt":10,"tags":156,"cover":163,"minutes":164,"featured":10,"mostRead":18,"originalUrl":10,"originalLinked":18,"locales":165},"are-web-components-dead","Are Web Components Dead?","Some say they died years ago, others call them the future. Where they show up today and what holds developers back.","2022-06-20",[157,39,158,159,160,161,162],"Web Components","software development","web developers","Programming Blogs","Programming Tips","Frontend Development","\u002Fblog\u002Fmedia\u002Fare-web-components-dead\u002Fcover.webp",10,[6],{"slug":167,"locale":6,"title":168,"description":169,"publishedAt":170,"updatedAt":10,"tags":171,"cover":174,"minutes":69,"featured":10,"mostRead":18,"originalUrl":175,"originalLinked":43,"locales":176},"how-to-compete-with-google-apple-microsoft-and-co","How to Compete with Google, Apple, Microsoft, and Co.","The giants set the standard for software. A solo developer can still win — by doing things that don’t scale.","2022-06-13",[66,172,52,173,39],"buildinpublic","SaaS","\u002Fblog\u002Fmedia\u002Fhow-to-compete-with-google-apple-microsoft-and-co\u002Fcover.webp","https:\u002F\u002Fmedium.com\u002Fdev-genius\u002Fhow-to-compete-with-google-apple-microsoft-and-co-315da7aa5376",[6],{"slug":178,"locale":6,"title":179,"description":180,"publishedAt":181,"updatedAt":10,"tags":182,"cover":184,"minutes":42,"featured":10,"mostRead":18,"originalUrl":185,"originalLinked":43,"locales":186},"rule-of-three-three-strikes-and-you-refactor","Rule of Three — Three Strikes And You Refactor","DRY is about knowledge, not code. Why I wait for the third copy before I abstract.","2022-05-02",[39,160,158,183],"Software Engineering","\u002Fblog\u002Fmedia\u002Frule-of-three-three-strikes-and-you-refactor\u002Fcover.webp","https:\u002F\u002Fjavascript.plainenglish.io\u002Frule-of-three-three-strikes-and-you-refactor-942d13e7d5cd",[6],{"slug":188,"locale":6,"title":189,"description":190,"publishedAt":191,"updatedAt":10,"tags":192,"cover":196,"minutes":148,"featured":197,"mostRead":18,"originalUrl":198,"originalLinked":43,"locales":199},"my-journey-to-the-first-999-with-my-side-project","My Journey to the First $ 9.99 with My Side Project","Four users after one month: me, my brother, my mum and a friend. How it all started.","2022-04-04",[160,96,39,193,194,195],"chrome extension","Build In Public","passive income","\u002Fblog\u002Fmedia\u002Fmy-journey-to-the-first-999-with-my-side-project\u002Fcover.webp",2,"https:\u002F\u002Fmedium.com\u002F@mariusbongarts\u002Fmy-journey-to-the-first-9-99-with-my-side-project-3edc13dd1f2d",[6],{"slug":201,"locale":6,"title":202,"description":203,"publishedAt":204,"updatedAt":10,"tags":205,"cover":206,"minutes":148,"featured":10,"mostRead":18,"originalUrl":207,"originalLinked":43,"locales":208},"will-web-components-replace-frontend-frameworks","Will Web Components Replace Frontend Frameworks?","Probably not — and that’s fine. They solve different problems and work well together.","2021-10-11",[39,158,183,162,157],"\u002Fblog\u002Fmedia\u002Fwill-web-components-replace-frontend-frameworks\u002Fcover.webp","https:\u002F\u002Fmedium.com\u002F@mariusbongarts\u002Fwill-web-components-replace-frontend-frameworks-535891d779ba",[6],{"slug":210,"locale":6,"title":211,"description":212,"publishedAt":213,"updatedAt":10,"tags":214,"cover":216,"minutes":148,"featured":10,"mostRead":18,"originalUrl":217,"originalLinked":43,"locales":218},"when-you-should-duplicate-code","When You SHOULD Duplicate Code","Duplicated code isn’t always duplicated knowledge. When copying is the cleaner choice.","2021-01-06",[160,39,158,215],"design patterns","\u002Fblog\u002Fmedia\u002Fwhen-you-should-duplicate-code\u002Fcover.webp","https:\u002F\u002Fmedium.com\u002F@mariusbongarts\u002Fwhen-you-should-duplicate-code-b0d747bc1c67",[6],{"slug":101,"locale":6,"title":102,"description":103,"publishedAt":104,"updatedAt":10,"tags":220,"cover":107,"minutes":108,"featured":10,"mostRead":18,"originalUrl":109,"originalLinked":18,"locales":221,"html":222,"highlights":223,"headings":224},[39,106,27],[6],"\u003Cp>Web Highlights is a \u003Ca href=\"https:\u002F\u002Fchromewebstore.google.com\u002Fdetail\u002Fweb-highlights-pdf-web-hi\u002Fhldjnlbobkdkghfidgoecgmklcemanhm\" target=\"_blank\" rel=\"noopener\">Chrome\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fmicrosoftedge.microsoft.com\u002Faddons\u002Fdetail\u002Fweb-highlights-pdf-we\u002Fghdpaajjhmlfkogblgeibaabcpjfgldn\" target=\"_blank\" rel=\"noopener\">Edge\u003C\u002Fa> extension created to help users highlight and save important web content. With over 100,000 weekly users, it has become a go-to tool for many who need to keep track of key information online.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002F\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Web Highlights - PDF &amp; Web Highlighter\u003C\u002Fstrong>\u003C\u002Fa> — Best highlighter for the web. Just like you do on books, highlight on any web page or PDF, and take notes. Organize with tags and find your research in the app. (Marius Bongarts)\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>In this article, I’m excited to share with you the technology stack that powers the extension and brought this project to life.\u003C\u002Fp>\n\u003Ch3 id=\"introduction\">Introduction\u003C\u002Fh3>\n\u003Cp>When I started developing Web Highlights 5 years ago, I wasn’t too worried about the tech stack.\u003C\u002Fp>\n\u003Cp>It was just a fun side project and my first attempt at building a Chrome extension. Like many developers, I grabbed the tools I knew and started building. Even though the tech stack has evolved over the years, I’m still happy with my original choice.\u003C\u002Fp>\n\u003Cp>Without making any major changes, the extension can sync all highlights with the cloud and the web app, and so far, it’s been able to handle the needs of 100,000 users.\u003C\u002Fp>\n\u003Ch3 id=\"frontend\">Frontend\u003C\u002Fh3>\n\u003Cp>At the core of the Web Highlights Chrome extension are two primary front-end applications:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>the \u003Cstrong>extension\u003C\u002Fstrong> itself, which is loaded into the user’s browser,\u003C\u002Fli>\n\u003Cli>and the associated \u003Cstrong>Web App\u003C\u002Fstrong> that can be accessed at \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\" target=\"_blank\" rel=\"noopener\">web-highlights.com\u003C\u002Fa> .\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch4>Browser Extension\u003C\u002Fh4>\n\u003Cp>At the heart of \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002F\" target=\"_blank\" rel=\"noopener\">Web Highlights\u003C\u002Fa> is obviously the browser extension itself. This application part is loaded in the user’s browser, enabling text highlighting on any web page and PDF.\u003C\u002Fp>\n\u003Cp>It also displays a \u003Cstrong>collapsible and expandable sidebar\u003C\u002Fstrong> that shows all the user’s text \u003Cstrong>highlights, notes, and tags\u003C\u002Fstrong> .\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"\u002Fblog\u002Fmedia\u002Fthe-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users\u002F01.webp\" alt=\"Web Highlights Chrome Extension — Sidebar &amp; Highlighter\" loading=\"lazy\" decoding=\"async\">\u003C\u002Fp>\n\u003Cp>\u003Cem>Web Highlights Chrome Extension — Sidebar &amp; Highlighter\u003C\u002Fem>\u003C\u002Fp>\n\u003Cp>Those who follow my articles will probably already guess that a large part of my front-end architecture is built using \u003Cstrong>Web Components\u003C\u002Fstrong> .\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>Web Components are reusable client-side components based on official web standards. They are an excellent way of encapsulating functionality from the rest of our code. Not only that, but you can reuse them in every web application and web page.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>I have written many articles on how to build a Chrome Extension using Web Components. For example, \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fbuilding-your-own-new-tab-chrome-extension\u002F\" target=\"_blank\" rel=\"noopener\">in this article I build a New Tab browser extension using Web Components\u003C\u002Fa> .\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fbuilding-your-own-new-tab-chrome-extension\u002F\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Building Your Own New Tab Chrome Extension\u003C\u002Fstrong>\u003C\u002Fa> — How to build a beautiful New Tab Chrome Extension with plain HTML, CSS, JavaScript, and Web Components (Marius Bongarts)\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>Web Components offer numerous advantages, so I used them from the beginning of developing the browser extension. To streamline the process of creating Web Components, I opted to utilize the \u003Ca href=\"https:\u002F\u002Flit.dev\u002F\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Lit library\u003C\u002Fstrong>\u003C\u002Fa> .\u003C\u002Fp>\n\u003Cp>This lightweight library, maintained by Google, is specifically designed for building web components and makes the development process significantly easier.\u003C\u002Fp>\n\u003Cp>I have discussed the benefits of Web Components in various articles previously. However, the most significant advantage that saves me a lot of work is the \u003Cstrong>reusability of components\u003C\u002Fstrong> .\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Ca href=\"\u002Fblog\u002Fwill-web-components-replace-frontend-frameworks\">\u003Cstrong>Will Web Components Replace Frontend Frameworks?\u003C\u002Fstrong>\u003C\u002Fa> — They are built to solve different problems. (Marius Bongarts)\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>Thanks to their easy reusability, I can quickly integrate some components from the extension into the web app. For instance, if you prefer React, you can easily \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fhow-to-use-web-components-in-react\u002F\" target=\"_blank\" rel=\"noopener\">use your Web Components in your React app\u003C\u002Fa> . I’ll explain more about that in the next section.\u003C\u002Fp>\n\u003Cp>I also use \u003Cstrong>Typescript\u003C\u002Fstrong> like in all of my other applications as well. Furthermore, I included \u003Cstrong>Redux\u003C\u002Fstrong> to manage and synchronize states within the application.\u003C\u002Fp>\n\u003Ch4>Web App\u003C\u002Fh4>\n\u003Cp>In addition to the Chrome extension, Web Highlights includes a progressive web app (PWA) allowing users to access their saved highlights from any device.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>A \u003Cstrong>progressive web app\u003C\u002Fstrong> (PWA) is an app that's built using web platform technologies, but that provides a user experience like that of a platform-specific app. - \u003Ca href=\"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FProgressive_web_apps\" target=\"_blank\" rel=\"noopener\">MDN\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>Here is what the dashboard looks like:\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"\u002Fblog\u002Fmedia\u002Fthe-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users\u002F02.webp\" alt=\"Web Highlights dashboard\" loading=\"lazy\" decoding=\"async\">\u003C\u002Fp>\n\u003Cp>\u003Cem>Web Highlights dashboard\u003C\u002Fem>\u003C\u002Fp>\n\u003Cp>I decided to use Vue.js for the PWA somewhat on a whim. It was early in Vue.js’s rise, and there was a lot of excitement around it. I was eager to learn it, which led me to start building the WebApp’s frontend with it.\u003C\u002Fp>\n\u003Cp>Nevertheless, as already mentioned, I reuse many Web Components from the extension in Vue.js. This saves me a lot of duplicated code and work. When looking at Web Highlights’ dashboard, you might have noticed that some components look very similar to the ones in the extension.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fthe-dangers-of-relying-too-much-on-frontend-frameworks-a-short-story\u002F\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>The Dangers of Relying Too Much on Frontend Frameworks - A Short Story\u003C\u002Fstrong>\u003C\u002Fa> — Frontend Frameworks can be powerful tools, but the balance between innovation and established web standards like Web Components is key for staying competitive. (Marius Bongarts)\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>The reason for this is that they are essentially identical, except for the fact that they are loaded within my Vue.js app. To illustrate this, let’s compare the screenshot from my extension with the Vue.js PWA and note their similarities:\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"\u002Fblog\u002Fmedia\u002Fthe-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users\u002F03.webp\" alt=\"Web Components in Web App and Chrome Extension\" loading=\"lazy\" decoding=\"async\">\u003C\u002Fp>\n\u003Cp>\u003Cem>Web Components in Web App and Chrome Extension\u003C\u002Fem>\u003C\u002Fp>\n\u003Cp>As you can see, the rich editor, share button, and toolbar are used in both the web app and the Chrome extension. Many other components are shared between the two as well. Hopefully, this comparison clearly shows the advantages of reusing web components.\u003C\u002Fp>\n\u003Ch4>Blog\u003C\u002Fh4>\n\u003Cp>Besides the frontend, I also run a blog under the subdomain \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>web-highlights.com\u002Fblog\u003C\u002Fstrong>\u003C\u002Fa> . The main motive for setting up the blog was to rank higher on Google.\u003C\u002Fp>\n\u003Cp>In the last few weeks, I have dealt extensively with the topic of SEO and understood that a blog on one’s domain could significantly improve the Google ranking. When it comes to SEO, then there is no way around it.\u003C\u002Fp>\n\u003Cp>Hosting a blog and creating content on my website was a game-changer. If you want to learn more about it, read this article:\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002F3-instant-ways-to-increase-your-google-ranking\u002F\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>3 Instant Ways to Increase Your Google Ranking\u003C\u002Fstrong>\u003C\u002Fa> — Anyone can implement these three essential points to make their product visible on Google, Bing, and Co. (Marius Bongarts)\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>When it comes to hosting a blog, there are several choices available. However, I opted for a self-hosted \u003Cstrong>Ghost\u003C\u002Fstrong> instance.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Cstrong>Ghost\u003C\u002Fstrong> \u003Cem>It comes with modern tools to build a website, publish content, send newsletters &amp; offer paid subscriptions to members. —\u003C\u002Fem>  \u003Ca href=\"https:\u002F\u002Fghost.org\u002F\" target=\"_blank\" rel=\"noopener\">\u003Cem>https:\u002F\u002Fghost.org\u002F\u003C\u002Fem>\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>I created a digital ocean droplet and set up Ghost on it. This is easy, as Ghost and Digital Ocean provide excellent \u003Ca href=\"https:\u002F\u002Fghost.org\u002Fdocs\u002Finstall\u002Fdigitalocean\u002F\" target=\"_blank\" rel=\"noopener\">getting-started articles\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fmarketplace.digitalocean.com\u002Fapps\u002Fghost\" target=\"_blank\" rel=\"noopener\">documentation\u003C\u002Fa> .\u003C\u002Fp>\n\u003Chr>\n\u003Ch3 id=\"backend\">Backend\u003C\u002Fh3>\n\u003Cp>When choosing a server, it was essential to me that I could also use JavaScript\u002FTypescript. For two main reasons:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>I simply \u003Cstrong>know JavaScript best\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>I can \u003Cstrong>share code between the server and frontend\u003C\u002Fstrong>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>The second point is particularly important to me. The fact that I can reuse code in both the frontend and the backend makes my code so much cleaner. In my article “ \u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts\u002Fshare-code-between-react-client-and-express-server-5dc0977faa76\" target=\"_blank\" rel=\"noopener\">Share Code between React Client and Express Server\u003C\u002Fa> ,” you can learn how to implement this using a \u003Cstrong>mono repository\u003C\u002Fstrong> .\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts\u002Fshare-code-between-react-client-and-express-server-5dc0977faa76\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Share Code between React Client and Express Server\u003C\u002Fstrong>\u003C\u002Fa> — Set up a mono repository with yarn workspaces (Marius Bongarts)\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch4>Main Server\u003C\u002Fh4>\n\u003Cp>A huge part of my application forms one server, which relies on \u003Cstrong>Nest.js\u003C\u002Fstrong> . Nest.js is a powerful Node.js framework that provides a robust set of tools for building scalable and efficient server-side applications.\u003C\u002Fp>\n\u003Cp>The server synchronizes users’ highlights, bookmarks, tags, and notes with the cloud. This functionality allows users to access their highlights not only within the extension but also from anywhere there is an internet connection. Users can log in to the web app, which downloads all their highlights from the server. It is also possible to share your research with friends who do not have the extension.\u003C\u002Fp>\n\u003Cp>To ensure secure authentication, the server implements JSON Web Tokens ( \u003Cstrong>JWT\u003C\u002Fstrong> ) technology. Furthermore, I integrated Google Sign-In with \u003Cstrong>Firebase\u003C\u002Fstrong> .\u003C\u002Fp>\n\u003Cp>Furthermore, my server handles a few asynchronous processes I implemented with \u003Cstrong>CRON\u003C\u002Fstrong> jobs. For example, users can set email reminders that are then executed every hour in a CRON job.\u003C\u002Fp>\n\u003Cp>To make some recurring queries faster and more efficient, I also introduced a caching system that simply uses the \u003Ccode>NodeCache\u003C\u002Fcode> to cache time-consuming database queries and return them faster.\u003C\u002Fp>\n\u003Ch4>Micro Server\u003C\u002Fh4>\n\u003Cp>In addition to the main server, I implemented a small microservice using \u003Cstrong>Express.js\u003C\u002Fstrong> . This microservice exports HTML to PDF files using the \u003Cstrong>Puppeteer\u003C\u002Fstrong> library.\u003C\u002Fp>\n\u003Cp>I had initially considered implementing this functionality in the main Nest.js server, but given the Puppeteer library's large size and resource-intensive operations, I decided to offload it to a separate microservice. This way, I can keep the central server lean and fast while still providing the necessary PDF export functionality via the microservice.\u003C\u002Fp>\n\u003Ch3 id=\"database\">Database\u003C\u002Fh3>\n\u003Cp>The Web Highlights Chrome extension relies on a \u003Cstrong>MongoDB\u003C\u002Fstrong> database to store user data. MongoDB is a popular NoSQL database with high scalability, availability, and performance.\u003C\u002Fp>\n\u003Cp>I am using Mongoose, which is a popular object data modeling (ODM) library for MongoDB, to model the data in the database. \u003Cstrong>Mongoose\u003C\u002Fstrong> provides a simple and intuitive API for defining schemas, creating queries, and validating data.\u003C\u002Fp>\n\u003Cp>The database is hosted on \u003Cstrong>MongoDB Atlas Cloud Database,\u003C\u002Fstrong> which handles all the complexity of deploying and managing my database. Additionally, it offers the security of automatic backups.\u003C\u002Fp>\n\u003Ch3 id=\"hosting\">Hosting\u003C\u002Fh3>\n\u003Ch4>Server\u003C\u002Fh4>\n\u003Cp>Currently, my main server and microservice are hosted on Heroku Dynos, which provide flexible hosting for my apps.\u003C\u002Fp>\n\u003Cp>Heroku has been really convenient because it lets me easily deploy from GitHub and set up a pre-production testing server by deploying from my development branch.\u003C\u002Fp>\n\u003Cp>It might also be more cost-effective to host the main server on the Digital Ocean droplet, but I’m really happy with Heroku. I like knowing I can easily restart the server from anywhere using their web app. It gives me peace of mind knowing it works reliably and I can manage it, even when I’m on vacation for a few weeks, ensuring my server is always running.\u003C\u002Fp>\n\u003Ch4>Frontend\u003C\u002Fh4>\n\u003Cp>I have set up a \u003Cstrong>Digital Ocean droplet\u003C\u002Fstrong> to host the front end of my Vue.js web app. This setup has changed a lot over the years. When talking about the front end, I have to differentiate between the marketing website at \u003Ca href=\"web-highlights.com\">web-highlights.com\u003C\u002Fa> and the actual web app at \u003Ca href=\"app.web-highlights.com\">app.web-highlights.com\u003C\u002Fa> .\u003C\u002Fp>\n\u003Cp>The marketing website is a server-side rendered Nuxt3 application, while the PWA is a client-side rendered Vue3 app that even works offline.\u003C\u002Fp>\n\u003Cp>A configured A-record in my domain provider, \u003Cstrong>Strato\u003C\u002Fstrong> , directs the domain \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\" target=\"_blank\" rel=\"noopener\">\u003Cem>web-highlights.com\u003C\u002Fem>\u003C\u002Fa> to the IP address of my Digital Ocean droplet.\u003C\u002Fp>\n\u003Cp>The droplet is set up to serve the web app as a static site and the marketing website through the port of the running Nuxt3 app. I also configured an NGINX server to host my Ghost CMS blog under the \u002Fblog subfolder of the domain. This setup allows visitors to access both the web app and blog from the same domain easily.\u003C\u002Fp>\n\u003Ch4>Payment\u003C\u002Fh4>\n\u003Cp>Since my app offers \u003Ca href=\"https:\u002F\u002Fweb-highlights.com\u002Fpricing\" target=\"_blank\" rel=\"noopener\">different paid subscription plans\u003C\u002Fa> , I needed to choose a payment provider. Some of the most popular options are Stripe, Paddle, Lemon Squeezy, and others.\u003C\u002Fp>\n\u003Cp>I went with Paddle because, like Lemon Squeezy, they offer a Merchant of Record system that makes it easy to manage payments globally. This is especially important for being legally compliant in European countries.\u003C\u002Fp>\n\u003Cp>Integrating Paddle into my Nest.js backend was simple, thanks to their excellent documentation and easy-to-use sandbox environment for testing.\u003C\u002Fp>\n\u003Ch3 id=\"testing-jest-cypress\">Testing: Jest + Cypress\u003C\u002Fh3>\n\u003Cp>Initially, like many others, I developed my application without any unit tests or integration tests. However, over time, I added a significant number of unit tests and integration tests, which have helped me avoid many issues.\u003C\u002Fp>\n\u003Cp>Although it was challenging to test the Chrome extension fully integrated, I established a test environment where I could launch and test my application locally. Using Cypress, I have tested almost every feature of my application. Additionally, I have implemented many unit tests for complex logic, for which I utilize Jest.\u003C\u002Fp>\n\u003Ch3 id=\"final-thoughts\">Final Thoughts\u003C\u002Fh3>\n\u003Cp>That's it! Of course, I didn’t cover every single technology or library I’m using, but I hope this gives you some useful insights. Maybe you can even apply some of these ideas to build your own Chrome extension.\u003C\u002Fp>\n\u003Cp>Here’s a quick summary of the tech stack:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Frontend:\u003C\u002Fstrong> Web Components + Lit, Vue 3 PWA, Nuxt3, Typescript, Redux, Ghost CMS\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Backend:\u003C\u002Fstrong> Nest.js, Express.js, JWT, Firebase Auth\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Database:\u003C\u002Fstrong> MongoDB, Mongoose, MongoDB Atlas Cloud\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Payment\u003C\u002Fstrong> : Paddle\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Hosting:\u003C\u002Fstrong> Heroku, Digital Ocean, Strato\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Testing:\u003C\u002Fstrong> Jest, Cypress\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>I hope you enjoyed reading this article! I’m always happy to answer questions and open to feedback. Feel free to reach out anytime 😊\u003C\u002Fp>\n\u003Cp>I hope you enjoyed reading this article. I am always happy to answer questions and am open to criticism. Feel free to contact me at any time 😊\u003C\u002Fp>\n\u003Cp>Get in touch with me via \u003Ca href=\"https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fmarius-bongarts-6b3638171\u002F\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>LinkedIn\u003C\u002Fstrong>\u003C\u002Fa> or follow me on \u003Ca href=\"https:\u002F\u002Ftwitter.com\u002FMariusBongarts\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Twitter\u003C\u002Fstrong>\u003C\u002Fa> . Also, check out my \u003Ca href=\"https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fweb-highlights-pdf-web-hi\u002Fhldjnlbobkdkghfidgoecgmklcemanhm\" target=\"_blank\" rel=\"noopener\">PDF &amp; Web Highlighter Chrome\u003C\u002Fa> extension if you haven’t. \u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts\" target=\"_blank\" rel=\"noopener\">Follow me on Medium\u003C\u002Fa> for more articles like this.\u003C\u002Fp>\n",[],[],1796321908931]