Steps to Convert an Angular App into a Browser Extension


β Convert Your Angular App into a Browser Extension (Chrome Extension)
This allows your local Angular project to:
Run like a New Tab Page
Work completely offline
Store data in LocalStorage
Open instantly without any hosting/server
β Steps to Create a Chrome Extension from Your Angular App
Tech Details
Angular 17 (dependent Node and NPM
Note:
make changes in angular.json where add
"outputHashing": "none"
π§ 1. Build Your Angular App
ng build --configuration=production
This creates static files in dist/
.
ποΈ 2. Create manifest.json
in the dist/
Folder
Create a manifest.json
file in the dist/
directory:
{
"manifest_version": 3,
"name": "Lounch Dock",
"version": "1.0",
"description": "A local tab and shortcut manager",
"chrome_url_overrides": {
"newtab": "index.html"
},
"icons": {
"128": "favicon.ico"
},
"permissions": ["storage"],
"action": {
"default_title": "Shortcut Manager"
}
}
πΈ chrome_url_overrides
sets your Angular app as the new tab page.
π 3. Structure Your Extension Folder
Your dist/
folder (after build) should now contain:
dist/
βββ index.html
βββ main.js
βββ styles.css
βββ manifest.json β
βββ assets/
βββ favicon.ico
Note: Before add to chrome/Jiosphere/edge. Please add one line in index.html file <head> section
<link rel="stylesheet" href="./styles.css">
π§ͺ 4. Load as Chrome Extension
Open Chrome
Go to:
chrome://extensions
Enable Developer Mode (top right)
Click βLoad unpackedβ
Select your
dist/
folder
π Now, every time you open a new tab, your Angular app will open.
π§ Notes
This works offline and without a backend
You can store everything in
localStorage
, just like you're doing nowYou can even enhance this later with sync storage or IndexedDB
You donβt need hosting or a web server anymore
π Want to Automatically Open This Page on Startup?
If you're using it like a dashboard, also add it as your Startup page:
Go to
chrome://settings/onStartup
Choose Open a specific page or set of pages
Add:
chrome://newtab
(which will now be your extensionβs Angular app)
Subscribe to my newsletter
Read articles from Nagesh Bulbule directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Nagesh Bulbule
Nagesh Bulbule
Hi, I'm developer who loves coding and learning new things.