{"id":16014880,"url":"https://github.com/thheller/chrome-ext-v3","last_synced_at":"2025-06-28T11:36:19.566Z","repository":{"id":140236410,"uuid":"544749233","full_name":"thheller/chrome-ext-v3","owner":"thheller","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-03T06:45:15.000Z","size":162,"stargazers_count":28,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-09T08:09:01.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thheller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-10-03T06:44:57.000Z","updated_at":"2025-04-01T23:00:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec20d630-b6d1-4425-b23b-f1820b77d731","html_url":"https://github.com/thheller/chrome-ext-v3","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"147139ea97f6c3c1bc3d7c2f64761b9fa98658cb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thheller/chrome-ext-v3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fchrome-ext-v3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fchrome-ext-v3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fchrome-ext-v3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fchrome-ext-v3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thheller","download_url":"https://codeload.github.com/thheller/chrome-ext-v3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thheller%2Fchrome-ext-v3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262423733,"owners_count":23308991,"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":[],"created_at":"2024-10-08T15:05:24.689Z","updated_at":"2025-06-28T11:36:19.543Z","avatar_url":"https://github.com/thheller.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chrome Extension v3 in CLJS\n\nPorted [this example](https://github.com/GoogleChrome/chrome-extensions-samples/tree/17956f44b6f04d28407a4b7eee428611affd4fab/examples/water_alarm_notification) to use ClojureScript with shadow-cljs.\n\nClone this repo and run\n\n```\nnpm install\nnpx shadow-cljs watch ext\n# or\nnpx shadow-cljs release ext\n```\n\nThen load the `ext` folder as an \"Unpacked Extension\" via [Chrome Extensions](chrome://extensions/).\n\nWritten using the \"modern\" [:target :esm](https://shadow-cljs.github.io/docs/UsersGuide.html#target-esm), which appears to work fine. Manifests no longer need to be modified by the build because ESM can load additional files on its own (as done with the `:shared` module).\n\nOnly relevant change over the JS version was adding `\"type\": \"module` to the `\"background\"` in `manifest.json`. As well as `type=\"module\"` in the `popup.html`.\n\nFor me the notification doesn't actually show and I'm not sure why. Might be because I blocked Chrome from showing Notifications, but I can't find any indicator about any of that. The code does load and run fine which is all I wanted to show.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthheller%2Fchrome-ext-v3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthheller%2Fchrome-ext-v3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthheller%2Fchrome-ext-v3/lists"}