Full-Stack C++20 Web Framework

yNet

Routing, template engine, security middleware, WebSocket and more. Everything you need for a web server, built with C++20. This page is served by yNet.

## features

HTTP/HTTPS

High-performance server with epoll event loop and thread pool. OpenSSL TLS support.

🛡️

Security Middleware

CORS, CSRF, Rate Limiter, Session, Input Sanitizer, Secure Headers as middleware.

🔌

WebSocket

Real-time bidirectional communication. Handshake to frame parsing, built from scratch.

📄

Template Engine

Mustache-style syntax. Variables, conditionals, loops, partials, mtime caching.

🧰

Utilities

JSON parser, URL encoding, MIME mapping, SHA-256, multipart file upload parser.

🚀

CLI Tool

ynet new, build, run, clean. From project creation to launch in one command.

## quickstart

Ready in 3 minutes

Create, build, and run a project with the yNet CLI. FetchContent pulls yNet automatically — no manual install needed.

Requirements: CMake 3.20+, C++20 compiler, OpenSSL.

# Install CLI

$ git clone https://github.com/dvdsvds/yNet.git

$ sudo cp yNet/cli/ynet /usr/local/bin/

# Create & run

$ ynet new myapp

$ cd myapp

$ ynet build

$ ynet run