Version 0.3.0 published

The Full Stack
Web Framework
for Performance

Build blazing-fast web applications with CWEB. Native C performance meets modern web development with integrated API documentation and seamless tooling.

Start a new Project

$ cweb new my-project

Write Less, Build More

Clean, intuitive syntax that compiles to highly optimized machine code

main.c
#include <cweb/app.h>
int main() {
    CWebApp *app = cweb_app_new();
    cweb_get(app, "/", ^(CWebRequest *req, CWebResponse *res) {
        cweb_send_html(res, "<h1>Hello, CWEB!</h1>");
    });
    cweb_listen(app, 3000);
    return 0;
}
}

api.c
#include <cweb/app.h>

database.c
#include <cweb/db.h>

CWebDB *db = cweb_db_connect("postgresql://localhost/mydb");

cweb_post(app, "/api/posts", ^(CWebRequest *req, CWebResponse *res) {
    CWebJSON *body = cweb_parse_json(req);

    CWebQuery *query = cweb_query(db)
        "INSERT INTO posts (title, content) VALUES ($1, $2) RETURNING id
",        cweb_json_get_string(body, "title"),
        cweb_json_get_string(body, "content")
    );    cweb_send_json(res, cweb_query_first(query));
});

Everything You Need

A complete toolkit for modern web development

Native Performance

Low level for maximum perfomance. C is the perfomance language. Why not a Webframework in C?

Integrated cwagger

Built-in API documentation generator. Automatically create interactive API docs from your code annotations.

Binary FileCache

In your cweb application, everything comes out of the executable. For Images and other static files you get the ultra fast zero config binary FileCache

VS Code Extension

First-class IDE support with syntax highlighting, IntelliSense, debugging, and Language Server Protocol.

Async Utilitys

More scalabiity, more perfomance through easy use asny function API

Automations

As much automation as possible without removing developer freedom. Overwrite-able functions and modular architectur

C web framework

Full Stack

it doesn't matter for what it is used. Landing Pages, Frontends, API - always lightweight, no overhead and portable

at the moment: http/1.1
WEBSERVER
lightweight and fast
APIs, Backend
BACKEND
Logic in C - all possibilitys
Template Engine
FRONTEND
Write C Code and HTML Code together
In memory
FileServer
Instant response time

cwagger automatically generates beautiful, interactive API documentation from your code. No separate tools needed—documentation lives alongside your implementation and stays in sync.

Get Started in Seconds

Install CWEB on your platform of choice

Auto Installation Commands (Alpine, Fedora, Debian/Ubuntu)
# inital Setup
curl -fsSL https://archive.cwebframework.com/setup.sh | sudo -E sh

# Install CWEB Framework and CLI
sudo apt install -y libcweb-dev cweb-cli

# Verify installation
cweb --version
Manual Installation Commands
# Initial Setup
sudo install -d -m 0755 /etc/apt/keyrings
sudo apt-get update
sudo apt-get install -y ca-certificates curl
curl -fsSL https://archive.cwebframework.com/keys/cweb-archive.asc \
  | sudo tee /etc/apt/keyrings/cweb-archive.asc >/dev/null

echo 'deb [signed-by=/etc/apt/keyrings/cweb-archive.asc] https://archive.cwebframework.com/apt/ ./' | sudo tee /etc/apt/sources.list.d/cweb.list
sudo apt update

# Install CWEB Framework and CLI
sudo apt install -y libcweb-dev cweb-cli

# Verify installation
cweb --version
Manual Installation Commands
# Initial Setup
curl -fsSL https://archive.cwebframework.com/keys/cweb-apk.rsa.pub \
  -o /etc/apk/keys/cweb-apk.rsa.pub
echo 'https://archive.cwebframework.com/apk/' >> /etc/apk/repositories
apk update

# Install CWEB Framework and CLI
apk add libcweb-dev cweb-cli

# Verify installation
cweb --version
Manual Installation Commands
# Initial Setup
sudo rpm --import https://archive.cwebframework.com/keys/RPM-GPG-KEY-cweb

sudo tee /etc/yum.repos.d/cweb.repo >/dev/null <<'EOF'
[cweb]
name=cweb Packages
baseurl=https://archive.cwebframework.com/rpm/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://archive.cwebframework.com/keys/RPM-GPG-KEY-cweb
EOF

# Install CWEB Framework and CLI
sudo dnf install -y libcweb-dev cweb-cli

# Verify installation
cweb --version



VS Code Extension

Install the official CWEB extension for VS Code to get syntax highlighting, IntelliSense, code snippets, and integrated debugging support.