{"id":50128709,"url":"https://github.com/whtsht/ginn","last_synced_at":"2026-06-26T13:01:12.195Z","repository":{"id":215237887,"uuid":"736508000","full_name":"whtsht/ginn","owner":"whtsht","description":"Ginn is not nginx.","archived":false,"fork":false,"pushed_at":"2024-01-07T05:42:31.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-07T10:16:38.124Z","etag":null,"topics":["c","educational-project","http","http-server","linux"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whtsht.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}},"created_at":"2023-12-28T05:16:14.000Z","updated_at":"2024-01-07T06:01:31.000Z","dependencies_parsed_at":"2024-01-03T10:16:32.099Z","dependency_job_id":null,"html_url":"https://github.com/whtsht/ginn","commit_stats":null,"previous_names":["whtsht/ginn"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/whtsht/ginn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtsht%2Fginn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtsht%2Fginn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtsht%2Fginn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtsht%2Fginn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whtsht","download_url":"https://codeload.github.com/whtsht/ginn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whtsht%2Fginn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34817641,"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-06-26T02:00:06.560Z","response_time":106,"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":["c","educational-project","http","http-server","linux"],"created_at":"2026-05-23T21:00:29.530Z","updated_at":"2026-06-26T13:01:12.190Z","avatar_url":"https://github.com/whtsht.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# Ginn\n\nGinn is not nginx.\n\n## What is Ginn?\n\nGinn is a web server inspired by [nginx](https://www.nginx.com/). It employs an event-driven approach to address [C10k problems](http://www.kegel.com/c10k.html) and achieves scaling by reloading configuration files without dropping client requests.\n\nNote. _This was created for educational purposes and is not suitable for real production._\n\n## Installation\n\nFirst, clone this repository and go to the directory.\n\n### Install Local\n\nBuild Ginn locally and place it in the appropriate directory.\n\n```\n$ make \u0026\u0026 sudo make install\n```\n\nStart Ginn with root permission.\n\n```\n$ sudo ginn start\n```\n\nand open [http://localhost](http://localhost).\n\nGinn uses a well-known 80 port by default. If you don't like this behavior, edit `/etc/ginn.conf`.\n\n```\n- # port 4700;\n+ port 4700;\n```\n\n### Using Docker\n\nStart Ginn using docker-compose.\n\n```\n$ docker compose up -d\n```\n\nand open [http://localhost:4700](http://localhost:4700).\n\n## Unit tests\n\nThis project uses [CUnit Test Framework](https://cunit.sourceforge.net/). Please install it.\n\nRun all tests with the following command.\n\n```\n$ make test\n```\n\n## Benchmarking\n\nYou can test and benchmark using [siege](https://github.com/JoeDog/siege).\n\nNote. _Start Ginn on port number 4700._\n\n```\n$ siege -c 200 -t 5S -b -i --log=/tmp/siege.log -f ./urls.txt\n```\n\n## References\n\n- [Pico HTTP Server in C](https://github.com/foxweb/pico)\n\n- [pidfile.c at enki/gvpe](https://github.com/enki/gvpe/blob/master/lib/pidfile.c)\n\n- [pasce/daemon-skeleton-linux-c](https://github.com/pasce/daemon-skeleton-linux-c)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhtsht%2Fginn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhtsht%2Fginn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhtsht%2Fginn/lists"}