r/VibeCodeDevs • u/Whole-Low-2995 • Nov 02 '26
CWIST, Easy and Structured C Web Framework
At first, I'd like to say this. Many subreddits require users to clarify how AI was used. Yep that's a huge ethical problem.
So, I think I gotta clarify its boundary. Sorry for my poor English.
- I used Kimi and Claude, and many more.. for Code Generation. However a basic structure of this project were not just by Agent Swarms. I read all the codes, before merging or commiting, so I'm pretty don't sure if we still have to call it slop? I really don't know.
- I did it for fun, and it is not a good portfolio to get a job as a C programmer. 😄
- Each changes should pass sanitizers, cppcheck, http soak test, https c100k test, wasm/wasi smoke test, http/2 test, and so on. actually I thought that I should do something for http/3 but it's just borrowing many things from lsquic so I just didn't do it.
Anyway, now let's see "why it's simple?"
It's an example from CWIST's readme.
static void
int
Some would say it's not that simple. They may say this.
static void
static void
int
Yeah, it looks reasonable at a glance. And this definitely has its own strength. But, some parts are set up by struct members. some are not. some are in ALL CAPS, and some are not. Amalgamation can be done with additional scripts. so enforcing cwist.h is quite too much.
Well, in my opinion unifying as many as I can would be a good solution for simplifying code.
Also, when somebody vibe-codes an application without looking at their code(although it's a really bad habit but I've seen somebody who does it) hallucinations are more frequently happened from struct members. However public functions seems quite good to be probabilistically inferenced.
Also, second one needs more "helper codes". Formally, yep, CWIST's main is kinda bloated, but each steps specified in main function is executed by a wrapper function. It's just like making a lego building.
I know it's not like Drogon
There are really many "mature" C/C++ web frameworks like Drogon, and when you are doing things for production, you cannot use this framework since it's not measured and monitored by security professionals. But y'all know many AI-assisted codes are hard to read, and I'm a bit tired of reading some toys made with NextJS+Tailwind CSS+Ugly Glossy Theme+Redis docker image.
Then I just thought that I can write something else for my toy projects like my dev blog(it's written in CWIST).
Although it's not "blazingly fast C web framework other than CGI" its performance is fair for developing some small websites.
And I am pretty sure it will give you a new perspective to see your code as a "well-structured building".
Stars welcomed
I don't get donations, or even attach a donation link for this.
I just want to leave it 'for fun' so .. well, getting more stars is much valuable than $1 donations(although I don't have any links tho)
Pull Requests are much more welcomed
C4Punks is an organization with many people but some members are quite busy to co-maintain this, so currently I am mainly checking its status.
But it's quite hard to read all those modules and refactor, sometimes I couldn't sleep before releasing a new tag.
Any pull requests(including documentations) are welcomed.
Thanks for reading yall.
•
u/endofthread-bot Nov 02 '26
Hey u/Whole-Low-2995, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/t7SD4ThKuE
• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.
If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.