{"id":15538636,"url":"https://github.com/patrickhollweck/srocket","last_synced_at":"2025-04-23T15:25:36.165Z","repository":{"id":34911284,"uuid":"121386010","full_name":"PatrickHollweck/SRocket","owner":"PatrickHollweck","description":"A socket.io framework focusing on type-safety","archived":false,"fork":false,"pushed_at":"2023-01-12T01:42:59.000Z","size":2540,"stargazers_count":4,"open_issues_count":22,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-20T10:43:52.588Z","etag":null,"topics":["framework","nodejs","socket-io","typescript","typescript-library","web","websocket"],"latest_commit_sha":null,"homepage":"https://patrickhollweck.github.io/SRocket/#/","language":"TypeScript","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/PatrickHollweck.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}},"created_at":"2018-02-13T13:31:51.000Z","updated_at":"2019-07-09T19:54:05.000Z","dependencies_parsed_at":"2023-01-15T10:16:08.943Z","dependency_job_id":null,"html_url":"https://github.com/PatrickHollweck/SRocket","commit_stats":null,"previous_names":["fetzenrndy/srocket"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickHollweck%2FSRocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickHollweck%2FSRocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickHollweck%2FSRocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickHollweck%2FSRocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickHollweck","download_url":"https://codeload.github.com/PatrickHollweck/SRocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250458780,"owners_count":21433941,"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":["framework","nodejs","socket-io","typescript","typescript-library","web","websocket"],"created_at":"2024-10-02T12:05:16.194Z","updated_at":"2025-04-23T15:25:36.145Z","avatar_url":"https://github.com/PatrickHollweck.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SRocket\n\nA [Socket.IO](https://socket.io/docs) Framework focusing on being **type-safe**.\n\n[![TRAVISCI Status](https://travis-ci.org/PatrickHollweck/SRocket.svg?branch=master)](https://travis-ci.org/PatrickHollweck/SRocket)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FPatrickHollweck%2FSRocket.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FPatrickHollweck%2FSRocket?ref=badge_shield)\n[![Known Vulnerabilities](https://snyk.io/test/github/PatrickHollweck/SRocket/badge.svg)](https://snyk.io/test/github/PatrickHollweck/SRocket)\n[![CodeFactor](https://www.codefactor.io/repository/github/patrickhollweck/srocket/badge)](https://www.codefactor.io/repository/github/patrickhollweck/srocket)\n\n\u003cbr /\u003e\n\n\u003cstrong\u003e\n\n[📚 Docs](https://patrickhollweck.github.io/SRocket/#/)\n\n[💨 Quickstart](https://patrickhollweck.github.io/SRocket/#/quickstart)\n\n[📝 Source Code](https://github.com/PatrickHollweck/srocket)\n\n\u003c/strong\u003e\n\n\u003cbr /\u003e\n\n\u003csub\u003eBuilt with ❤︎ by \u003ca href=\"https://github.com/PatrickHollweck\"\u003ePatrick Hollweck\u003c/a\u003e\u003c/sub\u003e\n\n## Sneak Peak\n\n### Server\n\n```ts\nimport { SRocket, SocketController, Controller, SocketRoute SEvent, V } from \"srocket\";\n\n@SocketController()\nclass UserController extends Controller\n{\n  greet(event: SEvent) {\n    const data = event.request.validate(\n      V.type({\n        name: V.string,\n      }\n    );\n\n    event.response\n      .withData({\n        greeting: `Hey, ${data.name}`,\n      })\n      .acknowledge();\n  }\n}\n\nSRocket.fromPort(5555)\n  .controllers(UserController)\n  .listen(() =\u003e console.log(\"SRocket listening at http://localhost:5555\"));\n```\n\n### Client\n\n```ts\nconst socket = io.connect(\"http://localhost:5555\");\n\nsocket.emit(\"greet\", { name: \"Patrick\" }, console.log);\n\u003e\u003e \"Hello, Patrick\"\n```\n\nInterested? Visit the [docs](https://patrickhollweck.github.io/SRocket/#/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickhollweck%2Fsrocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickhollweck%2Fsrocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickhollweck%2Fsrocket/lists"}