{"id":30260319,"url":"https://github.com/berbyte/sinkzone","last_synced_at":"2026-01-14T21:26:30.308Z","repository":{"id":308553493,"uuid":"1033240369","full_name":"berbyte/sinkzone","owner":"berbyte","description":"Block everything. Allow only what matters. A DNS tool for productivity, focus, and child safety. Allowlist-only internet for distraction-free work.","archived":false,"fork":false,"pushed_at":"2025-12-04T14:26:38.000Z","size":2749,"stargazers_count":333,"open_issues_count":4,"forks_count":16,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-07T22:37:59.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/berbyte.png","metadata":{"files":{"readme":"README-Docker.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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},"funding":{"github":"berbyte"}},"created_at":"2025-08-06T14:05:14.000Z","updated_at":"2025-12-04T14:26:35.000Z","dependencies_parsed_at":"2025-08-06T16:08:20.380Z","dependency_job_id":"6b50a1a4-7c45-4b3d-a5fc-e6a6dc9e0ddb","html_url":"https://github.com/berbyte/sinkzone","commit_stats":null,"previous_names":["berbyte/sinkzone"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/berbyte/sinkzone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berbyte%2Fsinkzone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berbyte%2Fsinkzone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berbyte%2Fsinkzone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berbyte%2Fsinkzone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berbyte","download_url":"https://codeload.github.com/berbyte/sinkzone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berbyte%2Fsinkzone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28435006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"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":[],"created_at":"2025-08-15T19:01:49.490Z","updated_at":"2026-01-14T21:26:30.300Z","avatar_url":"https://github.com/berbyte.png","language":"Go","funding_links":["https://github.com/sponsors/berbyte"],"categories":["Go","\u003ca name=\"productivity\"\u003e\u003c/a\u003eProductivity"],"sub_categories":[],"readme":"# Sinkzone with Unbound Docker Setup\n\nA Docker Compose setup for Sinkzone with Unbound as the upstream DNS resolver.\n\n## Quick Start\n\n1. **Create environment file:**\n   ```bash\n   cat \u003e .env \u003c\u003c 'EOF'\n   DOCKER_NETWORK_SUBNET=172.30.0.0/16\n   SINKZONE_IP=172.30.0.1\n   UNBOUND_IP=172.30.0.2\n   SINKZONE_UPSTREAM_NAMESERVERS=unbound\n   EOF\n   ```\n\n2. **Start services:**\n   ```bash\n   docker compose up -d\n   ```\n\n3. **Test DNS resolution:**\n   ```bash\n   dig @127.0.0.1 -p 5353 google.com\n   ```\n\n## Usage\n\n### DNS Resolution\n- **Sinkzone**: `dig @127.0.0.1 -p 5353 google.com`\n- **Direct Unbound**: `dig @127.0.0.1 -p 5335 google.com`\n\n### API Access\n```bash\n# Health check\ncurl http://localhost:8080/health\n\n# View DNS queries\ncurl http://localhost:8080/api/queries\n\n# Enable focus mode\ncurl -X POST http://localhost:8080/api/focus \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"enabled\": true, \"duration\": \"1h\"}'\n```\n\n### Sinkzone Commands via Docker Exec\n\n```bash\n# Terminal UI\ndocker compose exec -it sinkzone ./sinkzone tui --api-url http://localhost:8080\n\n# Monitor DNS requests\ndocker compose exec -it sinkzone ./sinkzone monitor --api-url http://localhost:8080\n\n# Add domain to allowlist\ndocker compose exec -it sinkzone ./sinkzone allowlist add google.com\n\n# Remove domain from allowlist\ndocker compose exec -it sinkzone ./sinkzone allowlist remove google.com\n\n# List allowlist\ndocker compose exec -it sinkzone ./sinkzone allowlist list\n\n# Enable focus mode\ndocker compose exec -it sinkzone ./sinkzone focus start\n\n# Disable focus mode\ndocker compose exec -it sinkzone ./sinkzone focus --disable\n\n# Check status\ndocker compose exec -it sinkzone ./sinkzone status\n```\n\n## Ports\n\n- **5353**: Sinkzone DNS server\n- **8080**: Sinkzone API server  \n- **5335**: Unbound DNS server (direct access)\n\n## Architecture\n\n```\nClient → Sinkzone (5353) → Unbound (172.30.0.2) → Internet\n```\n\n## Troubleshooting\n\n```bash\n# View logs\ndocker compose logs -f\n\n# Restart services\ndocker compose restart\n\n# Rebuild and restart\ndocker compose up -d --build\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberbyte%2Fsinkzone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberbyte%2Fsinkzone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberbyte%2Fsinkzone/lists"}