{"id":20019421,"url":"https://github.com/tambapps/speer","last_synced_at":"2025-10-11T14:34:32.917Z","repository":{"id":130832425,"uuid":"364013592","full_name":"tambapps/speer","owner":"tambapps","description":"A library to perform P2P connection and exchange data between peers","archived":false,"fork":false,"pushed_at":"2023-01-07T15:52:19.000Z","size":230,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T03:27:28.112Z","etag":null,"topics":["datagram","java","p2p","peer-to-peer","socket","speer","tcp","udp"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tambapps.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":"2021-05-03T17:47:47.000Z","updated_at":"2023-01-05T19:17:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"783c3e02-cc09-42c4-9370-ce41f3590de9","html_url":"https://github.com/tambapps/speer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tambapps/speer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tambapps%2Fspeer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tambapps%2Fspeer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tambapps%2Fspeer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tambapps%2Fspeer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tambapps","download_url":"https://codeload.github.com/tambapps/speer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tambapps%2Fspeer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007449,"owners_count":26084313,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["datagram","java","p2p","peer-to-peer","socket","speer","tcp","udp"],"created_at":"2024-11-13T08:27:32.135Z","updated_at":"2025-10-11T14:34:32.896Z","avatar_url":"https://github.com/tambapps.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Speer - a P2P communication library\n\nSpeer is a library used to perform P2P communication easier. It uses the plain Java\nSocket API to allow communicating between two devices.\n\nYou can consult the [wiki](https://github.com/tambapps/speer/wiki) for a detailed documentation\n\n## Use cases\nTake a look at [Fandem](https://github.com/tambapps/P2P-File-Sharing) a P2P file sharing app.\nThis project uses speer to send/receive files between devices in P2P, and also to discover Fandem peers with UDP.\n\n\n## Examples\n\nServer-side\n\n```groovy\nimport com.tambapps.p2p.speer.PeerServer\n\ntry (PeerServer server = peerServer();\n     PeerConnection connection = server.accept()) {\n  connection.writeUTF(\"Hello! do you want to talk to me?\");\n  if (\"yes\".equals(connection.readUTF())) {\n    talk(connection);\n  }\n}\n```\n\nClient-side\n\n```groovy\ntry (PeerConnection connection = PeerConnection.from(peer)) {\n  connection.readUTF()\n  connection.writeUTF(\"yes\")\n  talk(connection)\n}\n```\n\n## Import with maven\nThis library is [hosted on Jitpack](https://jitpack.io/#tambapps/speer/v1.0)\n\nYou can import it to your project by adding the Jitpack repository\n```xml\n  \u003crepositories\u003e\n    \u003crepository\u003e\n      \u003cid\u003ejitpack.io\u003c/id\u003e\n      \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n    \u003c/repository\u003e\n  \u003c/repositories\u003e\n```\n\nAnd then add the dependency\n```xml\n  \u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.tambapps\u003c/groupId\u003e\n    \u003cartifactId\u003espeer\u003c/artifactId\u003e\n    \u003cversion\u003e1.0\u003c/version\u003e\n  \u003c/dependency\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftambapps%2Fspeer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftambapps%2Fspeer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftambapps%2Fspeer/lists"}