{"id":24575094,"url":"https://github.com/luc-wallace/rack","last_synced_at":"2025-03-17T12:16:51.622Z","repository":{"id":273614761,"uuid":"920300499","full_name":"luc-wallace/rack","owner":"luc-wallace","description":"A primitive HTTP server implemented in C.","archived":false,"fork":false,"pushed_at":"2025-02-15T21:35:18.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T22:25:42.501Z","etag":null,"topics":["c","http","sockets"],"latest_commit_sha":null,"homepage":"","language":"C","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/luc-wallace.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":"2025-01-21T22:52:56.000Z","updated_at":"2025-02-15T21:35:21.000Z","dependencies_parsed_at":"2025-01-22T00:24:32.084Z","dependency_job_id":"015d17ab-4004-43ff-acdc-9b613b6a5b2b","html_url":"https://github.com/luc-wallace/rack","commit_stats":null,"previous_names":["luc-wallace/rack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luc-wallace%2Frack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luc-wallace%2Frack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luc-wallace%2Frack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luc-wallace%2Frack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luc-wallace","download_url":"https://codeload.github.com/luc-wallace/rack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031152,"owners_count":20386534,"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":["c","http","sockets"],"created_at":"2025-01-23T21:54:47.502Z","updated_at":"2025-03-17T12:16:51.616Z","avatar_url":"https://github.com/luc-wallace.png","language":"C","readme":"# rack\n\nA fast, single-threaded HTTP server implemented in C.\n\nCurrently very primitive.\n\nPlanned features:\n- Response pipeline\n- Routing with paths/methods\n- JSON?\n\n# Why?\n\nBecause I wanted to learn how networking and concurrency works at a low level using\nsystem calls. I also just wanted to work on a project in C to improve my skills.\n\n# Usage\n\nBuild the project by creating a build directory in the root folder and running:\n\n```\ncmake ..\n```\n\nThen, compile the project using:\n\n```\ncmake --build .\n```\n\n# Benchmarks\n\nApacheBench (5000 requests):\n\n```\nServer Software:        rack/1.0\nServer Hostname:        localhost\nServer Port:            80\n\nDocument Path:          /\nDocument Length:        47 bytes\n\nConcurrency Level:      500\nTime taken for tests:   0.178 seconds\nComplete requests:      5000\nFailed requests:        0\nTotal transferred:      915000 bytes\nHTML transferred:       235000 bytes\nRequests per second:    28161.40 [#/sec] (mean)\nTime per request:       17.755 [ms] (mean)\nTime per request:       0.036 [ms] (mean, across all concurrent requests)\nTransfer rate:          5032.75 [Kbytes/sec] received\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluc-wallace%2Frack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluc-wallace%2Frack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluc-wallace%2Frack/lists"}