{"id":22785486,"url":"https://github.com/imseanconroy/blocklist","last_synced_at":"2026-05-07T17:32:19.855Z","repository":{"id":252370083,"uuid":"831555324","full_name":"ImSeanConroy/blocklist","owner":"ImSeanConroy","description":" Chrome extension that helps you stay productive by blocking distracting websites.","archived":false,"fork":false,"pushed_at":"2026-03-16T16:21:16.000Z","size":698,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-17T03:39:50.408Z","etag":null,"topics":["chrome","chrome-extension"],"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/ImSeanConroy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-20T22:59:33.000Z","updated_at":"2026-03-16T16:21:21.000Z","dependencies_parsed_at":"2024-08-09T10:44:27.135Z","dependency_job_id":"ae849868-e43d-4516-9d13-f631f9f36017","html_url":"https://github.com/ImSeanConroy/blocklist","commit_stats":null,"previous_names":["imseanconroy/website-blocking-extension","imseanconroy/blocklist"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ImSeanConroy/blocklist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImSeanConroy%2Fblocklist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImSeanConroy%2Fblocklist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImSeanConroy%2Fblocklist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImSeanConroy%2Fblocklist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ImSeanConroy","download_url":"https://codeload.github.com/ImSeanConroy/blocklist/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImSeanConroy%2Fblocklist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32748553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chrome","chrome-extension"],"created_at":"2024-12-11T23:06:24.585Z","updated_at":"2026-05-07T17:32:19.850Z","avatar_url":"https://github.com/ImSeanConroy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlockList: Block Websites \u0026 Stay Focused\n\nBlockList is a Chrome extension that helps you stay focused by blocking distracting websites. Configure always-on or time-based blocking rules per domain, pause domains without losing your settings, and back up your entire list with a single click.\n\n![Project Image](/.github/repo-img.png)\n\n## Table of Contents\n\n- [About the Project](#about-the-project)\n- [Features](#features)\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [Development](#development)\n- [Testing](#testing)\n- [Contributing](#contributing)\n- [License](#license)\n- [Support](#support)\n\n## About the Project\n\nBlockList is a Manifest V3 Chrome extension built with TypeScript, React, Vite, and Tailwind CSS. It intercepts navigation requests via a background service worker and redirects matching URLs to a built-in blocked page before they load.\n\nBlocking rules are stored in `chrome.storage.sync`, so your list is automatically synced across devices where you're signed into Chrome. Each rule supports exact domains (`example.com`), wildcard subdomains (`*.example.com`), configurable time windows, specific days of the week, and a pause/resume toggle — all without removing the entry from your list.\n\n## Features\n\n- Block exact domains and wildcard patterns (e.g., `*.example.com`).\n- Flexible time-based blocking: daytime, overnight, and always-on schedules.\n- Per-domain pause/resume without losing schedule settings.\n- Import/export your blocklist as a JSON backup.\n- Search and at-a-glance stats in the options page.\n- Dedicated blocked page with schedule-aware messaging.\n\n## Getting Started\n\n### Prerequisites\n\nBefore getting started, ensure you have the following installed:\n\n- [Node.js](https://nodejs.org/)\n- [npm](https://www.npmjs.com/)\n- [Google Chrome](https://www.google.com/chrome/) or any Chromium-based browser\n\n### Installation\n\n1. **Clone the repository:**\n```bash\ngit clone https://github.com/imseanconroy/blocklist.git\ncd blocklist\n```\n\n2. **Install project dependencies:**\n```bash\nnpm install\n```\n\n3. **Build the extension:**\n```bash\nnpm run build\n```\n\nThis will generate the required files in the `dist/` folder.\n\n### Load the Extension in Chrome\n\n1. Open Chrome and navigate to `chrome://extensions/`.\n2. Enable **Developer mode** (toggle in the top right corner).\n3. Click **Load unpacked** and select the `dist/` folder created from the build step.\n\n## Usage\n\n1. Open extension options and add domains such as `example.com` or wildcard patterns like `*.example.com`.\n2. Configure each domain rule:\n\t- enable/disable blocking per domain\n\t- set start and end hour (`0` to `23`)\n\t- use `start == end` to block all day\n3. Use search to filter large lists quickly.\n4. Import/export your blocklist as JSON for backup and migration.\n\nThe exported file (`blocklist-backup.json`) uses the following format:\n\n```json\n{\n  \"sites\": {\n    \"example.com\": {\n      \"enabled\": true,\n      \"startHour\": 9,\n      \"endHour\": 17,\n      \"days\": [1, 2, 3, 4, 5]\n    },\n    \"*.social.com\": {\n      \"enabled\": true,\n      \"startHour\": 0,\n      \"endHour\": 0,\n      \"days\": [0, 1, 2, 3, 4, 5, 6]\n    }\n  }\n}\n```\n\n- `startHour` / `endHour`: hours in 24-hour format (`0`–`23`). Setting both to the same value blocks all day.\n- `days`: array of day indices — `0` = Sunday, `1` = Monday, ..., `6` = Saturday.\n- `enabled`: set to `false` to pause a domain without removing it.\n\n## Development\n\nTo make modifications and see changes in real-time:\n\n1. Run the following command for local development:\n\n```bash\nnpm run dev\n```\n\n2. For extension testing, run a production build and reload `dist/` in `chrome://extensions/`.\n\n## Testing\n\nUse the following command to run all tests:\n```bash\nnpm run test\n```\n\nRun tests in watch mode:\n\n```bash\nnpm run test:watch\n```\n\nGenerate a coverage report:\n\n```bash\nnpm run coverage\n```\n\nRun lint checks:\n\n```bash\nnpm run lint\n```\n\n## Contributing\n\nContributions are welcome. Please open an issue to discuss your proposed change, or fork the repository, create a feature branch (`feature/your-feature-name`), and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Support\n\nIf you encounter any issues or have questions, please [raise a new issue](https://github.com/ImSeanConroy/blocklist/issues/new/choose).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimseanconroy%2Fblocklist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimseanconroy%2Fblocklist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimseanconroy%2Fblocklist/lists"}