{"id":20194719,"url":"https://github.com/yanishoss/dumby","last_synced_at":"2026-05-31T21:31:10.596Z","repository":{"id":64303640,"uuid":"145744012","full_name":"yanishoss/dumby","owner":"yanishoss","description":"A super simple and lightweight protocol :zap:","archived":false,"fork":false,"pushed_at":"2018-09-08T16:47:10.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T12:01:51.891Z","etag":null,"topics":["golang","iot","ipc","protocol","tcp"],"latest_commit_sha":null,"homepage":"","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/yanishoss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-22T17:55:12.000Z","updated_at":"2018-09-08T16:47:12.000Z","dependencies_parsed_at":"2023-01-15T10:00:25.769Z","dependency_job_id":null,"html_url":"https://github.com/yanishoss/dumby","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yanishoss/dumby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanishoss%2Fdumby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanishoss%2Fdumby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanishoss%2Fdumby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanishoss%2Fdumby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanishoss","download_url":"https://codeload.github.com/yanishoss/dumby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanishoss%2Fdumby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33750474,"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-05-31T02:00:06.040Z","response_time":95,"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":["golang","iot","ipc","protocol","tcp"],"created_at":"2024-11-14T04:13:49.454Z","updated_at":"2026-05-31T21:31:10.577Z","avatar_url":"https://github.com/yanishoss.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :ram: Dumby  \n[![Build Status](https://travis-ci.org/yanishoss/dumby.svg?branch=master)](https://travis-ci.org/yanishoss/dumby)\n[![Go Report Card](https://goreportcard.com/badge/github.com/yanishoss/dumby)](https://goreportcard.com/report/github.com/yanishoss/dumby)\n[![GoDoc](https://godoc.org/github.com/yanishoss/dumby?status.svg)](https://godoc.org/github.com/yanishoss/dumby)\n[![Coverage Status](https://coveralls.io/repos/github/yanishoss/dumby/badge.svg?branch=master)](https://coveralls.io/github/yanishoss/dumby?branch=master)  \n\n\u003e Dumby is a super lightweight and fast protocol\n\n## :satellite: How to download ?   \n```shell\n$ go get -u github.com/yanishoss/dumby/...\n```\n\n## :electric_plug: How to use ?\n\n```golang\n/*\n\nIn this file, we are going to create a simple Dumby server.\nIt will print the client's message and reply back.\n\n\nGo ahead, even a Dumb can do that!\n\n*/\n\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/yanishoss/dumby/protocol\"\n\t\"github.com/yanishoss/dumby/server\"\n)\n\nconst (\n\t// The address the server will listen to\n\thost = \"localhost:8080\"\n\n\tactionHello = iota + 2\n)\n\nfunc main() {\n\ts := server.New(\u0026server.Config{\n\t\tMaxConnections: 5000,\n\t})\n\n\ts.AddHandlers(actionHello, func(trame *protocol.Trame, s chan\u003c- *protocol.Trame) {\n\t\t// Print the message sent by the client\n\t\tfmt.Println(\"Someone says: \", string(trame.Payload))\n\n\t\t// Respond back with a message\n\t\ts \u003c- protocol.New(trame.Session, actionHello, []byte(\"Hello my friend! Is Dumby the best protocol on this world ?\"))\n\t})\n\n\ts.Listen(host)\n\n\t// So it's not difficult, right ?\n}\n```  \n**You did it** :clap:\n\n[See more example](./example \"Examples\")\n\n## :heart: Contributing\n**You want to contribute ?**   \nTake a look at [our next projects](https://github.com/yanishoss/dumby/projects \"Projects\") and pick a task up !  \nThe community **worships you** :clap:\n\n## :running: Yet to come  \n\n* A simple client\n* A more robust server implementation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanishoss%2Fdumby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanishoss%2Fdumby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanishoss%2Fdumby/lists"}