{"id":41888987,"url":"https://github.com/abiiranathan/epollix","last_synced_at":"2026-01-25T13:37:50.810Z","repository":{"id":203608741,"uuid":"710008194","full_name":"abiiranathan/epollix","owner":"abiiranathan","description":"An ambitious project to create a web server using epoll in C","archived":false,"fork":false,"pushed_at":"2025-06-14T00:22:56.000Z","size":549,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T01:26:38.729Z","etag":null,"topics":["c","clanguage","epoll","server","web"],"latest_commit_sha":null,"homepage":"https://github.com/abiiranathan/epollix","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/abiiranathan.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,"zenodo":null}},"created_at":"2023-10-25T20:24:05.000Z","updated_at":"2025-06-14T00:22:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"4364fbb9-e348-483f-a4fc-1f489ee7569d","html_url":"https://github.com/abiiranathan/epollix","commit_stats":null,"previous_names":["abiiranathan/async-servers-in-c","abiiranathan/epollix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abiiranathan/epollix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiiranathan%2Fepollix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiiranathan%2Fepollix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiiranathan%2Fepollix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiiranathan%2Fepollix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abiiranathan","download_url":"https://codeload.github.com/abiiranathan/epollix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abiiranathan%2Fepollix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28753517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","clanguage","epoll","server","web"],"created_at":"2026-01-25T13:37:50.417Z","updated_at":"2026-01-25T13:37:50.804Z","avatar_url":"https://github.com/abiiranathan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# epollix\n\nRobust web server written in C using epoll.\n\n## Features\n\n- [x] Robust HTTP server with epoll.\n- [x] Efficient static file serving with chunked transfer with `sendfile` unix function.\n- [x] Routing with parameter parsing and query string parsing(regex not supported yet)\n- [x] Support for route groups.\n- [x] Form processing(application/x-www-form-urlencoded + multipart/form-data that supports multiple file uploads).\n- [x] Support for binary files in multipart/form-data\n- [x] Support for range requests( making it easy to stream videos and audio files)\n- [x] Very fast (80K - 90K req/sec on 4 threads) and efficient, uses epoll for event handling. Consumes ~= 6 MB of memory for \u003e 1,000,000 concurrent connections and \u003c 15% CPU usage.\n- [x] Robust Middleware support at route, group, and application level.\n- [x] CMAKE integration\n- [x] Use of `solidc` library for common data structures and utilities.\n\n## Utilities\n\n- [x] `epollix` comes with a simple and easy to use logger middleware, BasicAuth middleware, and BearerAuth middleware using JWT.\n- [x] `epollix` has a crypto module that supports hashing, encryption, base64 encoding and decoding and decryption using openssl and libsodium.\n- [x] Support for gzip compression and decompression using zlib. Both static files and dynamic responses can be compressed.\n\n## Big missing features\n\n- [ ] Support for keep-alive connections\n- [ ] Support for cookies\n- [ ] Support for sessions\n- [ ] HTTPS support\n- [ ] Websocket support\n- [ ] Tests for all features\n\n## Tested modules (see tests directory)\n\n- [x] crypto\n- [x] gzip\n- [x] mime\n- [x] epollix (web server): header parsing, query and parameter parsing, form processing.\n      More tests are added as the library grows.\n\n## Installation\n\nThis repository contains a [./build.sh](./build.sh) script that will install all\nthe required dependencies on Debian/Ubuntu and Arch, then build the library.\n\n```bash\ngit clone https://github.com/abiiranathan/epollix.git\n\nchmod +x build.sh\n./build.sh\n```\n\n### Dependencies\n\n- **solidc**: A personal C library for common data structures and utilities that are cross-platform and easy to use. [Find solidc on Github](https://github.com/abiiranathan/solidc)\n\n### Optional dependencies\n\n- **cipherkit**: A personal C library for cryptographic functions, hashing etc. [Find solidc on Github](https://github.com/abiiranathan/cipherkit)\n\nThe middleware and example are only built if the optional dependencies are found. If you want to build the middleware and example, you need to clone the `cipherkit` repository and build it. Not that it also depends on OpenSSL, libsodium, zlib, cjson.\n\n## Run the example\n\nAfter building the library, you can run the example server by running the following commands:\n\n```bash\ncd example\n\n# default port 3000.\n../build/example/example\n```\n\nFix ASAN issues:\n[https://github.com/google/sanitizers/issues/1614](Github issue)\n`sudo sysctl vm.mmap_rnd_bits=28`\n\n## Public API Reference\n\nThe public API is defined in the `include/epollix.h` header file. The API is well documented with comments. You can find the API reference in the [docs](./docs) directory.\n\n[Read the docs here](docs/epollix.md)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiiranathan%2Fepollix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabiiranathan%2Fepollix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabiiranathan%2Fepollix/lists"}