{"id":13582057,"url":"https://github.com/huin/goupnp","last_synced_at":"2025-06-14T08:10:53.611Z","repository":{"id":10852861,"uuid":"13135466","full_name":"huin/goupnp","owner":"huin","description":"UPnP client library for Go (#golang)","archived":false,"fork":false,"pushed_at":"2025-04-27T14:11:54.000Z","size":551,"stargazers_count":440,"open_issues_count":4,"forks_count":86,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-27T15:23:48.694Z","etag":null,"topics":["go","golang","upnp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huin.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2013-09-26T22:09:52.000Z","updated_at":"2025-04-27T14:11:58.000Z","dependencies_parsed_at":"2023-02-10T13:55:14.009Z","dependency_job_id":"2356d91d-4c25-4d24-82bd-c98340bb4db7","html_url":"https://github.com/huin/goupnp","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/huin/goupnp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huin%2Fgoupnp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huin%2Fgoupnp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huin%2Fgoupnp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huin%2Fgoupnp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huin","download_url":"https://codeload.github.com/huin/goupnp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huin%2Fgoupnp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259783067,"owners_count":22910301,"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":["go","golang","upnp"],"created_at":"2024-08-01T15:02:24.498Z","updated_at":"2025-06-14T08:10:53.593Z","avatar_url":"https://github.com/huin.png","language":"Go","funding_links":[],"categories":["Go","Device Discovery"],"sub_categories":["uPNP"],"readme":"goupnp is a UPnP client library for Go\n\n## Installation\n\nRun `go get -u github.com/huin/goupnp`.\n\n## Documentation\n\nSee [GUIDE.md](GUIDE.md) for a quick start on the most common use case for this\nlibrary.\n\nSupported DCPs (you probably want to start with one of these):\n\n- [![GoDoc](https://godoc.org/github.com/huin/goupnp?status.svg) av1](https://godoc.org/github.com/huin/goupnp/dcps/av1) - Client for UPnP Device Control Protocol MediaServer v1 and MediaRenderer v1.\n- [![GoDoc](https://godoc.org/github.com/huin/goupnp?status.svg) internetgateway1](https://godoc.org/github.com/huin/goupnp/dcps/internetgateway1) - Client for UPnP Device Control Protocol Internet Gateway Device v1.\n- [![GoDoc](https://godoc.org/github.com/huin/goupnp?status.svg) internetgateway2](https://godoc.org/github.com/huin/goupnp/dcps/internetgateway2) - Client for UPnP Device Control Protocol Internet Gateway Device v2.\n\nCore components:\n\n- [![GoDoc](https://godoc.org/github.com/huin/goupnp?status.svg) (goupnp)](https://godoc.org/github.com/huin/goupnp) core library - contains datastructures and utilities typically used by the implemented DCPs.\n- [![GoDoc](https://godoc.org/github.com/huin/goupnp?status.svg) httpu](https://godoc.org/github.com/huin/goupnp/httpu) HTTPU implementation, underlies SSDP.\n- [![GoDoc](https://godoc.org/github.com/huin/goupnp?status.svg) ssdp](https://godoc.org/github.com/huin/goupnp/ssdp) SSDP client implementation (simple service discovery protocol) - used to discover UPnP services on a network.\n- [![GoDoc](https://godoc.org/github.com/huin/goupnp?status.svg) soap](https://godoc.org/github.com/huin/goupnp/soap) SOAP client implementation (simple object access protocol) - used to communicate with discovered services.\n\n## Regenerating dcps generated source code:\n\n1. Build code generator:\n\n   `go get -u github.com/huin/goupnp/cmd/goupnpdcpgen`\n\n2. Regenerate the code:\n\n   `go generate ./...`\n\n## Supporting additional UPnP devices and services:\n\nSupporting additional services is, in the trivial case, simply a matter of\nadding the service to the `dcpMetadata` whitelist in `cmd/goupnpdcpgen/metadata.go`,\nregenerating the source code (see above), and committing that source code.\n\nHowever, it would be helpful if anyone needing such a service could test the\nservice against the service they have, and then reporting any trouble\nencountered as an [issue on this\nproject](https://github.com/huin/goupnp/issues/new). If it just works, then\nplease report at least minimal working functionality as an issue, and\noptionally contribute the metadata upstream.\n\n## Migrating due to Breaking Changes\n\n- \\#40 introduced a breaking change to handling non-utf8 encodings, but removes a heavy\n  dependency on `golang.org/x/net` with charset encodings. If this breaks your usage of this\n  library, you can return to the old behavior by modifying the exported variable and importing\n  the package yourself:\n\n```go\nimport (\n  \"golang.org/x/net/html/charset\"\n  \"github.com/huin/goupnp\"\n)\n\nfunc init() {\n  // should be modified before goupnp libraries are in use.\n  goupnp.CharsetReaderFault = charset.NewReaderLabel\n}\n```\n\n## `v2alpha`\n\nThe `v2alpha` subdirectory contains experimental work on a version 2 API. The plan is to eventually\ncreate a `v2` subdirectory with a stable version of the version 2 API. The v1 API will stay where\nit currently is.\n\n\u003e NOTE:\n\u003e \n\u003e * `v2alpha` will be deleted one day, so don't rely on it always existing.\n\u003e * `v2alpha` will have API breaking changes, even with itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuin%2Fgoupnp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuin%2Fgoupnp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuin%2Fgoupnp/lists"}