{"id":50926452,"url":"https://github.com/web1n/cups-mdns","last_synced_at":"2026-06-16T23:32:10.804Z","repository":{"id":361120452,"uuid":"1245814732","full_name":"web1n/cups-mdns","owner":"web1n","description":"CUPS printer discovery bridge — queries a CUPS server via IPP and advertises shared printers through mDNS.","archived":false,"fork":false,"pushed_at":"2026-05-29T08:06:56.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-29T10:07:28.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/web1n.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-21T15:26:43.000Z","updated_at":"2026-05-29T08:07:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/web1n/cups-mdns","commit_stats":null,"previous_names":["web1n/cups-mdns"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/web1n/cups-mdns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fcups-mdns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fcups-mdns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fcups-mdns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fcups-mdns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web1n","download_url":"https://codeload.github.com/web1n/cups-mdns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fcups-mdns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34428196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-06-16T23:32:10.388Z","updated_at":"2026-06-16T23:32:10.797Z","avatar_url":"https://github.com/web1n.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cups-mdns\n\nCUPS printer discovery bridge — queries a CUPS server via IPP and advertises shared printers through mDNS.\n\nTwo packages:\n\n| Package | Description |\n|---|---|\n| `cups-mdns` | Background daemon that polls CUPS and runs a built-in mDNS responder |\n| `cups-mdns-print` | Standalone CLI tool to query a CUPS server and list printers |\n\n## Build (native)\n\n```bash\ncd cups-mdns\nmake\n```\n\nRequires `libcurl` and `libresolv`. Produces `out/cups-mdns` and `out/cups-mdns-print`.\n\n## Build (OpenWrt)\n\nAdd to `feeds.conf`:\n\n```\nsrc-git cups_mdns https://github.com/web1n/cups-mdns.git\n```\n\n```bash\n./scripts/feeds update cups_mdns\n./scripts/feeds install cups-mdns cups-mdns-print luci-app-cups-mdns\nmake menuconfig\n# Network → Printing → cups-mdns, cups-mdns-print\n# LuCI → Applications → luci-app-cups-mdns\n```\n\n## Usage\n\n```bash\n# Daemon\ncups-mdns --host 192.168.31.115 --port 631\n\n# Print tool\ncups-mdns-print -H 192.168.31.115 -P 631\n```\n\n### Options\n\n| Flag | Default | Description |\n|---|---|---|\n| `-H, --host` | required | CUPS server IPv4 address |\n| `-P, --port` | required | CUPS server port |\n| `-n, --hostname` | `cups-proxy` | mDNS hostname (without `.local`) |\n| `-I, --iface` | auto | Network interface for mDNS multicast |\n| `-i, --interval` | `360` | CUPS poll interval (seconds) |\n| `-t, --timeout` | `5` | HTTP request timeout (seconds) |\n| `-d, --debug` | off | Verbose mDNS logging |\n| `-l, --loopback` | off | Enable multicast loopback |\n\n## How it works\n\n```\n┌──────────┐  IPP every 360s   ┌───────────────┐\n│   CUPS   │ ←───────────────  │   cups-mdns   │\n│  server  │ ───────────────→  │     daemon    │\n└──────────┘   printer list    │               │\n                               │ mDNS announce │  224.0.0.251:5353\n                               └───────┬───────┘\n                                       │\n                          ┌────────────▼──────────────┐\n                          │    Clients on the LAN     │\n                          │   (mDNS + IPP capable)    │\n                          └───────────────────────────┘\n```\n\nWhen the printer list changes, services are added/removed automatically.\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb1n%2Fcups-mdns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb1n%2Fcups-mdns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb1n%2Fcups-mdns/lists"}