facil.io is an event-driven networking library and web application microframework designed for developing HTTP services and network applications. It combines asynchronous socket handling with facilities for processing web requests, managing persistent connections and exchanging messages between clients. Developers can use its higher-level web APIs or work directly with lower-level networking interfaces to implement custom protocols.
The framework supports applications that need to handle ordinary HTTP traffic alongside long-lived connections such as WebSockets. Its event-driven design allows many connections to be managed without assigning a separate thread to each client. Applications can also use multiple processes and threads to distribute work.
Development continues in the facil.io C Server Toolbox Library (C STL), which extends the framework with reusable data structures and additional networking facilities. It provides binary-safe strings, dynamically typed objects, hash maps, arrays and related utilities for managing application data. The library is suitable for embedding networking functionality into existing applications as well as developing standalone services.
This is free and open source software.
Key Features
- HTTP/1.1 server functionality with application request handlers.
- Event-driven networking using epoll, kqueue and poll backends.
- WebSocket server and client support for bidirectional communication.
- Server-Sent Events (SSE) for streaming updates to connected clients.
- HTTP routing and resource-action dispatch facilities.
- Supports single-threaded, multithreaded and multiprocess operation.
- Integrated publish/subscribe messaging between application components and worker processes.
- Inter-process communication and cluster messaging facilities.
- JSON parsing and serialization for application data.
- Static file serving with response compression support.
- TLS functionality for encrypted network communication.
- Support for developing custom TCP/IP application protocols.
- Asynchronous networking facilities for both server and client connections.
- Redis protocol handling utilities.
- Cross-platform support – runs on Linux, BSD, macOS, and Windows.
Website: github.com/boazsegev/facil.io
Support:
Developer: Boaz Segev
License: MIT License
facil.io is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| C Web Frameworks | |
|---|---|
| Kore | Secure web application framework for writing web APIs in C or Python |
| facil.io | High performance web application C framework |
| Onion | Library to create simple HTTP servers and web applications |
| Ulfius | HTTP Framework for REST Applications in C |
| libreactor | Extendable event driven high performance C-abstractions |
| ecewo | Asynchronous, single-threaded C web framework |
| Duda | Event-driven and high performant web services framework |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.