{"id":14995799,"url":"https://github.com/Jensen-holm/FireTCP","last_synced_at":"2025-09-25T15:31:33.859Z","repository":{"id":208540540,"uuid":"721834100","full_name":"Jensen-holm/FireTCP","owner":"Jensen-holm","description":"TCP Service framework for the mojo programming language 🔥","archived":false,"fork":false,"pushed_at":"2024-07-30T19:55:51.000Z","size":20108,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-07-31T02:10:37.342Z","etag":null,"topics":["mojo","rest-api","tcp-client","tcp-client-server","tcp-server","websocket"],"latest_commit_sha":null,"homepage":"","language":"Mojo","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/Jensen-holm.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":"2023-11-21T21:40:34.000Z","updated_at":"2024-07-30T23:58:27.000Z","dependencies_parsed_at":"2023-12-12T19:09:58.379Z","dependency_job_id":"f5b4b081-3bc1-48a3-94d3-f493c2e20fb4","html_url":"https://github.com/Jensen-holm/FireTCP","commit_stats":null,"previous_names":["jensen-holm/mojo-rest-framework","jensen-holm/firetcp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jensen-holm%2FFireTCP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jensen-holm%2FFireTCP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jensen-holm%2FFireTCP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jensen-holm%2FFireTCP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jensen-holm","download_url":"https://codeload.github.com/Jensen-holm/FireTCP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867921,"owners_count":16554380,"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":["mojo","rest-api","tcp-client","tcp-client-server","tcp-server","websocket"],"created_at":"2024-09-24T16:19:49.442Z","updated_at":"2025-09-25T15:31:28.540Z","avatar_url":"https://github.com/Jensen-holm.png","language":"Mojo","funding_links":[],"categories":["TCP Framework"],"sub_categories":[],"readme":"# FireTCP\n\nBring your [mojo](https://www.modular.com/max/mojo) Api to your network with a simple FireTCP server!!\n\n### Dependencies\n - mojo version 24.4.0 or newer\n - Python version 3.10 or newer\n\n### Hello FireApi\nStep 1: `$ mkdir hello_fire_api \u0026\u0026 cd hello_fire_api` \u003cbr\u003e\n\nStep 2: `$ curl -sS https://raw.githubusercontent.com/Jensen-holm/FireTCP/main/install.sh | bash`\n\nStep 3: Once you have made a project and cloned the FireApi you can get coding! Check out the examples below or in the examples directory before getting started or [read this tutorial I made on medium](https://medium.com/@jensen.dev.01/socket-programming-in-mojo-e113f6c8cbef).\n\n### Example code\n\napp.mojo\n```mojo\nfrom FireTCP import TCP\n\n\n@value\nstruct HelloService(TCP.Service):\n    fn func(self, req: TCP.Request) raises -\u003e TCP.Response:\n        return TCP.Response(\n            body=\"You sent the following data: \" + req.body(),\n        )\n\n\nfn main() raises -\u003e None:\n    var server = TCP.TCPLite[HelloService](\n        service=HelloService(),\n        port=9090,\n        host_addr=\"127.0.0.1\",\n    )\n\n    server.serve()\n```\n\nclient.mojo\n```mojo\nfrom FireTCP import TCP\n\n\nfn main() raises -\u003e None:\n    var client = TCP.Client(\n        port=9090,\n        host_name=\"127.0.0.1\",\n    )\n\n    var request = TCP.Request(\n        body=\"Hello FireTCP\",\n    )\n\n    var response = client.send_request(request)\n    print(response.body())\n```\n\noutput: \"You sent the following data: Hello FireTCP\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJensen-holm%2FFireTCP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJensen-holm%2FFireTCP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJensen-holm%2FFireTCP/lists"}