{"id":13499833,"url":"https://github.com/dravenk/webthing-go","last_synced_at":"2025-04-12T12:12:48.572Z","repository":{"id":52832080,"uuid":"208641091","full_name":"dravenk/webthing-go","owner":"dravenk","description":"Go implementation of a Web Thing server","archived":false,"fork":false,"pushed_at":"2024-03-25T11:15:17.000Z","size":123,"stargazers_count":22,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T12:12:43.549Z","etag":null,"topics":["go","golang","iot","mozilla-iot","rest-api","web-of-things","websocket-api","webthing","wot"],"latest_commit_sha":null,"homepage":"https://webthings.io/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dravenk.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":"2019-09-15T18:48:54.000Z","updated_at":"2024-02-07T19:54:35.000Z","dependencies_parsed_at":"2024-06-20T17:27:18.630Z","dependency_job_id":"5d95bc0e-b037-4d47-ab8d-b428ef129691","html_url":"https://github.com/dravenk/webthing-go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dravenk%2Fwebthing-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dravenk%2Fwebthing-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dravenk%2Fwebthing-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dravenk%2Fwebthing-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dravenk","download_url":"https://codeload.github.com/dravenk/webthing-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565081,"owners_count":21125418,"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","iot","mozilla-iot","rest-api","web-of-things","websocket-api","webthing","wot"],"created_at":"2024-07-31T22:00:43.713Z","updated_at":"2025-04-12T12:12:48.531Z","avatar_url":"https://github.com/dravenk.png","language":"Go","funding_links":[],"categories":["Go","Section"],"sub_categories":["Libraries"],"readme":"# Web of Things\n\n---\n\n [![GitHub forks](https://img.shields.io/github/forks/dravenk/webthing-go.svg?style=social\u0026label=Fork\u0026maxAge=2592000)](https://GitHub.com/dravenk/webthing-go/network/)\n [![GitHub version](https://badge.fury.io/gh/dravenk%2Fwebthing-go.svg)](https://badge.fury.io/gh/dravenk%2Fwebthing-go)\n [![GoDoc](https://godoc.org/github.com/dravenk/webthing-go?status.png)](https://godoc.org/github.com/dravenk/webthing-go)\n [![Codacy Badge](https://api.codacy.com/project/badge/Grade/bef38274a3cb4156b374bb76dc1670e5)](https://www.codacy.com/manual/dravenk/webthing-go?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=dravenk/webthing-go\u0026amp;utm_campaign=Badge_Grade)\n [![travis](https://api.travis-ci.com/dravenk/webthing-go.svg)](https://api.travis-ci.com/dravenk/webthing-go.svg)\n [![Go Report Card](https://goreportcard.com/badge/github.com/dravenk/webthing-go)](https://goreportcard.com/report/github.com/dravenk/webthing-go)\n [![codebeat badge](https://codebeat.co/badges/090b9189-b20c-4910-8ff2-d7c12a28e55f)](https://codebeat.co/projects/github-com-dravenk-webthing-go-master)\n [![Build Status](https://img.shields.io/docker/cloud/build/dravenk/webthing.svg)](https://cloud.docker.com/repository/docker/dravenk/webthing/builds)\n\n## USAGE\n\nThis library fully supports [Web Thing REST API](https://webthings.io/api/#web-thing-rest-api).You can start building your Web of Thing by looking at [single-thing](https://github.com/dravenk/webthing-go/blob/master/examples/single-thing/single-thing.go).\n\n### Download and import\n\nThis package name is called `webthing`. This project is called webthing-go to keep the naming consistent with the implementation of other languages. You just need to import this package the way golang normally imports a package.\n\n```shell\ngo get -u -v github.com/dravenk/webthing-go\n```\n\n```go\nimport (\n \"github.com/dravenk/webthing-go\"\n)\n```\n\n#### Create Thing\n\n```go\n// Create a Lamp.\nthing := webthing.NewThing(\"urn:dev:ops:my-thing-1234\",\n \"Lamp\",\n []string{\"OnOffSwitch\", \"Light\"},\n \"A web connected thing\")\n```\n\nFor more information on Creating Webthing, please check the wiki [Create-Thing](https://github.com/dravenk/webthing-go/wiki/Create-Thing)\n\n#### Example\n\n```shell\ncd $GOPATH/src/github.com/dravenk/webthing-go\ngo run examples/single-thing/single-thing.go\n```\n\nYou can also run a sample with [docker](https://hub.docker.com/r/dravenk/webthing):\n\n```shell\ndocker run -ti --name single-thing -p 8888:8888 dravenk/webthing\n```\n\nFor more information on Run Example, please check the wiki [Run-Example](https://github.com/dravenk/webthing-go/wiki/Run-example)\n\nRESOURCES\n\n* \u003chttps://github.com/dravenk/webthing-go/\u003e\n* \u003chttps://webthings.io/framework/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdravenk%2Fwebthing-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdravenk%2Fwebthing-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdravenk%2Fwebthing-go/lists"}