The C framework
for the web
A high-performance Linux server: HTTP/1, HTTP/2 and HTTP/3 (QUIC), WebSockets, databases and ORM out of the box — no reverse proxy, no runtime
A high-performance Linux server: HTTP/1, HTTP/2 and HTTP/3 (QUIC), WebSockets, databases and ORM out of the box — no reverse proxy, no runtime
Clone the repository, build the project with the database drivers you need and launch the server with a single command.
git clone https://github.com/fraxer/C-web-framework.git
cd C-web-framework/backend
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DINCLUDE_POSTGRESQL=yes \
-DINCLUDE_MYSQL=yes \
-DINCLUDE_REDIS=yes \
-DINCLUDE_SQLITE=yes
cmake --build . -j$(nproc)
./exec/cwfr -c /path/to/config.json{
"/": {
"GET": {
"file": "handlers/libindexpage.so",
"function": "index"
}
}
}#include "http.h"
void index(httpctx_t* ctx) {
ctx->response->send_data(
ctx->response,
"Hello world!"
);
}A handler is just a function — Each route loads a handler from a .so library. Read the request, build the response — nothing else to wire up.
Build & run guide →A complete toolkit for modern web services — protocols, databases, security and utilities out of the box.
A hand-written QUIC stack (RFC 9000) over UDP: TLS 1.3 handshake in one RTT, no head-of-line blocking, connection migration across networks — switch from Wi-Fi to LTE and the connection survives.
Up to 100 multiplexed streams, HPACK and Rapid Reset protection.
Real-time channels with broadcasting and named groups.
Full server and client: routing, vhosts, TLS.
Four drivers behind one unified API with ORM and migrations.
PostgreSQLMySQLRedisSQLiteAuthentication, sessions and RBAC without external services.
Local FS and S3 plus transactional email with DKIM.
Template engine, i18n, JSON, JWT and the task scheduler.
Hot reload of handlers, logging, the HTTP client, scheduled tasks and more — in the docs.
Open the docs →High-performance APIs for mobile and web applications
Chats, notifications and live updates via WebSocket
Microservices and monolithic applications
Request routing and proxying between services
Authentication, RBAC and CRUD operations
Local and S3-compatible cloud storage
Transactional email sending with DKIM
Multilingual content with gettext and pluralization
Read the introduction, browse the examples, or open the source on GitHub.