Cwist
Cwist is a tiny, easy, and structured web framework for C, created for personal toy projects (such as a dev blog) as a simpler alternative to typical NextJS+Tailwind+Redis toy stacks. It emphasizes unified conventions (favoring public functions over struct members) and explicit wrapper functions for each setup step in main. Each change passes sanitizers, cppcheck, HTTP soak tests, HTTPS c100k tests, WASM/WASI smoke tests, and HTTP/2 tests. Performance is fair for small websites, and it is listed in the external web-frameworks-benchmark.
What it addresses
The author was tired of toy projects built with NextJS, Tailwind CSS, glossy themes, and Redis Docker images, and wanted a simpler, structured alternative for personal projects such as a dev blog.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Cwist
Cwist is a tiny, easy, and structured web framework for C, created for personal toy projects (such as a dev blog) as a simpler alternative to typical NextJS+Tailwind+Redis toy stacks. It emphasizes unified conventions (favoring public functions over struct members) and explicit wrapper functions for each setup step in main. Each change passes sanitizers, cppcheck, HTTP soak tests, HTTPS c100k tests, WASM/WASI smoke tests, and HTTP/2 tests. Performance is fair for small websites, and it is listed in the external web-frameworks-benchmark.
Problem: The author was tired of toy projects built with NextJS, Tailwind CSS, glossy themes, and Redis Docker images, and wanted a simpler, structured alternative for personal projects such as a dev blog.
Audience: The author's personal toy projects (e.g., a dev blog); explicitly not intended for production use.
Posted by @gg582 · Original source ↗
Story title · @gg582 · · Source ↗
Show HN: Cwist — Tiny, Easy, and Structured Web Framework for C
Submitted URL · @gg582 · · Source ↗
https://github.com/c4punks/cwist
Source text · @gg582 · · Source ↗
I was a bit tired of reading some toys made with NextJS+Tailwind CSS+Ugly Glossy Theme+Redis docker image, so I just thought that I can write something else for my toy projects like my dev blog.
Source text · @gg582 · · Source ↗
Well, in my opinion unifying 'conventions' as many as I can would be a good solution for simplifying code.
Source text · @gg582 · · Source ↗
hallucinations are more frequently happened from struct members. However public functions seems quite good to be probabilistically inferenced.
Source text · @gg582 · · Source ↗
each step specified in the main function is executed by an explicit wrapper function
Source text · @gg582 · · Source ↗
Each change should pass sanitizers, cppcheck, http soak test, https c100k test, wasm/wasi smoke test, http/2 test, and so on.
Source text · @gg582 · · Source ↗
It's in this external benchmark: https://web-frameworks-benchmark.netlify.app/
Source text · @gg582 · · Source ↗
Although it's not "blazingly fast C web framework other than CGI", its performance is fair for developing some small websites.
Source text · @gg582 · · Source ↗
when you are doing things for production, you cannot use this framework since it's not measured and monitored by security professionals
Cwist
Cwist (CWIST) is a hobby-grade C17 web framework aimed at keeping simple CRUD and RDBMS apps easy to build. It trades memory safety, smart pointers, and modern C++ abstractions for more predictable compile errors, and includes CWIST GC (a lightweight garbage sweeper for fast prototyping), a dev blog engine, an HTML template engine, and WASM support.
Problem: Long C/C++ template errors are annoying when developing simple apps like a blog at 8 PM; industrial code needs safer code, not easier code, so simple CRUD/RDBMS web work lacks a simple framework option.
Posted by @gg582 · Original source ↗
Story title · @gg582 · · Source ↗
Show HN: Cwist; a hobby-grade C17 web framework that keeps your app simple
Submitted URL · @gg582 · · Source ↗
https://github.com/c4punks/cwist
Source text · @gg582 · · Source ↗
It sacrifices memory safety, smart pointers, and modern C++ abstractions. In return, compile errors are more predictable.
Source text · @gg582 · · Source ↗
Features - CWIST GC for fast prototyping. It's closer to a garbage sweeper than a traditional GC, and lighter. - Dev blog engine - HTML Template Engine - WASM
Source text · @gg582 · · Source ↗
Industrial code needs safer code, not easier code. But when you're developing a blog at 8 PM, long template errors are annoying.
Source text · @gg582 · · Source ↗
You need CRUD and RDBMS. It's simple. CWIST is for that kind of work.