r/ForgeYourProject • u/IncomeOk7237 • 22d ago
Launch Viltrum: a web framework for V where I wrote the whole wire myself (HTTP/1.1, HTTP/2, WebSocket, TLS 1.3)
Viltrum is a web framework for the V language that I've been building, and the slightly unreasonable part is that it owns the whole wire. The accept loop, the HTTP/1.1 parser, HTTP/2 with HPACK, WebSocket framing and the TLS 1.3 record layer and handshake are all written in the repo, not wrapped. The rest of the crypto comes from mbedtls, which ships with V, and v.mod has no dependencies.
A few things I care about:
No allocation per request, and CI enforces it. Tests run each request shape 10,000 times and fail if the GC heap grows by a single byte (HTTP/1.1, HTTP/2, TLS, WebSocket, streaming, static files).
One epoll worker per CPU, and the same router, middleware and Ctx answer HTTP/1.1, HTTP/2 and WebSocket on the same port.
The parsers get fuzzed in CI, 500k mutations each, and ambiguous HTTP/1.1 framing (TE+CL, duplicate Content-Length, obs-fold, bare CR/LF) just gets a 400.
On benchmarks: on 2026-10-14 HttpArena had it 99th of 151 on its baseline. Twelve days later, after a new engine, it came out first of 19 on HTTP/1.1 and first of 14 on WebSocket in HttpArena's Experimental category (that's the category for young frameworks without much production use, so take it with that in mind). The full table and method notes are in the README.
Quick start is v install Tuntii.Viltrum. Serving needs Linux for now since the engine is epoll.
Repo (MIT): https://github.com/Tuntii/viltrum
What's on the list next is https:// upstreams for the built-in HTTP client, WebSocket over HTTP/2, and metrics. If you were picking a framework in a smaller language like V, what would you need to see before trying it on a real project? And which of those three would you want first?



