{"id":20743605,"url":"https://github.com/ntwigs/gooka","last_synced_at":"2026-05-06T19:36:22.752Z","repository":{"id":84650134,"uuid":"327021708","full_name":"ntwigs/gooka","owner":"ntwigs","description":"Unused CSS selectors have nowhere to hide! :knife:","archived":false,"fork":false,"pushed_at":"2021-04-19T16:56:21.000Z","size":1240,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-18T02:25:43.771Z","etag":null,"topics":["app","css","electron"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ntwigs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-01-05T14:21:58.000Z","updated_at":"2023-11-01T14:50:20.000Z","dependencies_parsed_at":"2023-03-12T23:58:33.112Z","dependency_job_id":null,"html_url":"https://github.com/ntwigs/gooka","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntwigs%2Fgooka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntwigs%2Fgooka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntwigs%2Fgooka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntwigs%2Fgooka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntwigs","download_url":"https://codeload.github.com/ntwigs/gooka/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243035944,"owners_count":20225630,"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":["app","css","electron"],"created_at":"2024-11-17T07:12:12.657Z","updated_at":"2026-05-06T19:36:17.726Z","avatar_url":"https://github.com/ntwigs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg alt='gooka' src='https://user-images.githubusercontent.com/14088342/107887804-f4a7ef00-6f08-11eb-8325-8ea2e2d1f214.png' width='250'/\u003e\n\u003c/div\u003e\n\u003ch1 align=\"center\"\u003eGooka for \u003ca href=\"https://github.com/ntwigs/gooka/releases/download/v0.1.1/Gooka-0.1.1.AppImage\"\u003eLinux\u003c/a\u003e and \u003ca href=\"https://github.com/ntwigs/gooka/releases/download/v0.1.1/Gooka.0.1.1.exe\"\u003eWindows\u003c/a\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003eThe naive and simplified way to find unused css selectors.\u003c/p\u003e\n   \u003cp align=\"center\"\u003e\n    \u003cimg alt='css badge' src='https://img.shields.io/badge/css-found!-green.svg?style=flat-square' /\u003e\n    \u003cimg alt='build badge' src='https://img.shields.io/badge/build-passing-green.svg?style=flat-square' /\u003e\n    \u003cimg alt='version badge' src='https://img.shields.io/badge/version-0.1.1-blue.svg?style=flat-square' /\u003e\n  \u003c/p\u003e\n\n---\n\n## What's this?\n\nAre you still using CSS-outside-JS (also known as just \"CSS\") - and you know that there _might_ be some old CSS selectors that are no longer in use? Such as `.deleteLater` and `.testing123`? But you're also quite sure about not wanting something fully automatic - so you know that you're in control? Then **Gooka** is for you!\n\nGooka is an easy way to find unused CSS classes in your code. It takes a CSS file and some non-CSS files and searches for the selectors inside those files. If no unused selectors are found, **congratulations**. But if Gooka finds some unused selectors - you'll get a list of those selectors, and you'll be able to manually delete them. Also - there's a **dark mode**!\n\n\n![gooka-gif](https://user-images.githubusercontent.com/14088342/115273038-5a9a3800-a13f-11eb-8118-8ccb3a60bcda.gif)\n\n\n## Why this?\n\nUsing scripts such as [PurgeCSS](https://github.com/FullHuman/purgecss), [PurifyCSS](https://github.com/purifycss/purifycss), and [UnCSS](https://github.com/uncss/uncss) is scary. Especially if you're working on a humongous project. Therefore, I created something more manual to be more selective in my selector deletions.\n\n## Pitfalls\n\nIt's extremely naive. Let's say you have a selector called `.red` - and you add a file called `explaining-colors.ts` which contains a string `red`. It will take that as a \"Ah, `.red` is being used here!\". Which it isn't.\n\n## Development prerequisites\n\nSo you're going to join the fun world of Gooka - and you're going to give it everything you have? Nice! This is what you'll need.\n\n1. [Node version manager](https://github.com/nvm-sh/nvm) (Optional)\n2. [Node \u003e= v12](https://nodejs.org/en/)\n3. [Yarn](https://classic.yarnpkg.com/en/)\n\nIf you're going to be building the app - it easier with:\n4. [Docker](https://docs.docker.com/get-docker/)\n\n## Develop on Linux\n\nIt should be super simple to get going - as long as you have the prerequisites.\n\n1. Open your terminal.\n2. Install packages with `yarn`.\n3. Start development with `yarn electron:dev`.\n\n## Develop on Windows\n\nBasically the same as above. Except it's Windows.\n\n1. Open your terminal.\n2. Install packages with `yarn`.\n3. Start development with `yarn electron:windows`.\n\n## Build for production\n\nWe're building for Linux and Windows! *Woo!*\n\n1. Start the script `build-with-docker` - with the command: `bash build-with-docker`.\n\n  If it's your first build - \n\n2. Run `yarn \u0026\u0026 yarn electron:build`.\n\n  else\n\n2. Run `yarn electron:build`.\n3. Now there should be a folder called `dist` containing both a `Gooka.x.x.x.exe` and a `Gooka-x.x.x.AppImage`.\n\n### License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntwigs%2Fgooka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntwigs%2Fgooka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntwigs%2Fgooka/lists"}