{"id":13982936,"url":"https://github.com/larscom/ng-chrome-extension","last_synced_at":"2025-04-07T09:16:24.446Z","repository":{"id":39654589,"uuid":"250848576","full_name":"larscom/ng-chrome-extension","owner":"larscom","description":"CLI tool to generate angular chrome extensions","archived":false,"fork":false,"pushed_at":"2024-06-23T09:21:53.000Z","size":383,"stargazers_count":184,"open_issues_count":1,"forks_count":31,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T08:12:03.592Z","etag":null,"topics":["angular","browser","browser-extension","chrome","chrome-extension","cli","extension","javascript","linux","macos","ng"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/larscom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-28T17:00:14.000Z","updated_at":"2025-03-25T21:21:54.000Z","dependencies_parsed_at":"2024-11-19T16:41:50.545Z","dependency_job_id":null,"html_url":"https://github.com/larscom/ng-chrome-extension","commit_stats":{"total_commits":45,"total_committers":3,"mean_commits":15.0,"dds":0.3111111111111111,"last_synced_commit":"d7d049077b02520d3204041296330de26eb4a042"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larscom%2Fng-chrome-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larscom%2Fng-chrome-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larscom%2Fng-chrome-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larscom%2Fng-chrome-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larscom","download_url":"https://codeload.github.com/larscom/ng-chrome-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247622988,"owners_count":20968575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","browser","browser-extension","chrome","chrome-extension","cli","extension","javascript","linux","macos","ng"],"created_at":"2024-08-09T05:01:34.204Z","updated_at":"2025-04-07T09:16:24.421Z","avatar_url":"https://github.com/larscom.png","language":"JavaScript","funding_links":[],"categories":["Angular"],"sub_categories":["CLI Tools"],"readme":"# @larscom/ng-chrome-extension\n\n[![npm-release](https://img.shields.io/npm/v/@larscom/ng-chrome-extension.svg?label=npm)](https://www.npmjs.com/package/@larscom/ng-chrome-extension)\n![npm](https://img.shields.io/npm/dt/@larscom/ng-chrome-extension)\n\n\u003e Easily create `Angular` Chrome Extensions (manifest v3)\n\nThe following scenarios are supported:\n\n- Popup \u0026#10003;\n- New Tab \u0026#10003;\n- Options \u0026#10003;\n- Side Panel \u0026#10003;\n- Service Worker \u0026#10003;\n- Content Page \u0026#10003;\n\n## Disclaimer\n\nThis CLI tool should work on Linux/macOS, it is not tested on Windows.\n\n## How to install\n\n```bash\nnpm install -g @larscom/ng-chrome-extension\n```\n\n## Start creating a new project\n\n```bash\nng-chrome new\n```\n\n![alt text](https://snipboard.io/OYcNzx.jpg 'ng-chrome CLI')\n\n## How to use/develop\n\n- change directory to your newly created project\n- run `npm run start`\n- goto: `chrome://extensions` in the browser and enable `'developer mode'`\n- press `Load unpacked` and target the folder `angular/dist`\n\nThe project is automatically being watched, any changes to the files will recompile the project.\n\n**NOTE**: changes to the **content page** and **service worker** scripts requires you to reload the extension in `chrome://extensions`\n\n![alt text](https://snipboard.io/KToCI3.jpg 'Angular Chrome Popup')\n![alt text](https://snipboard.io/VYfGoD.jpg 'Angular Chrome Tab')\n\n## Build/package for production\n\n- update version number inside `./angular/src/manifest.json`\n- run `npm run build:production`\n- upload `extension-build.zip` to the chrome webstore.\n\nThis will run a production build and will automatically zip it as a extension package in the root folder named: `extension-build.zip`\n\n## Debugging\n\nRun: `npm start`\n\nGo to: Developer tools (inspect popup) =\u003e Sources =\u003e webpack\n\nYou can find your source files (TypeScript) over there.\n\n## Upgrade Angular\n\nAfter you have created a new project with `ng-chrome` and you want to update angular.\n\nJust follow the regular upgrade guide of angular. See: https://update.angular.io/\n\n## Angular folder\n\nThis folder contains the angular source code.\nEach feature (popup,options,tab,side-panel) lives inside its own standalone component and gets lazily loaded.\n\nsee: `./angular/src/app/modules`\n\n## Chrome folder\n\nThis folder contains the content page/service worker scripts and has its own `package.json` to manage it's dependencies.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarscom%2Fng-chrome-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarscom%2Fng-chrome-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarscom%2Fng-chrome-extension/lists"}