Introducing mesh - A lightweight HTTP server library for Zig

Hey ziggit! I’ve been create on mesh, a lightweight HTTP server library for Zig built on top of zap.

What’s inside

  • Tree-based router - fast and straightforward route matching.
  • Middleware support- plug in the pieces you need, skip the rest.
  • JSON helpers - because most APIs speak JSON anyway.
  • Optional DDB.zig integration - periodic persistence is there if you want it, but it’s completely optional.

The whole thing is designed to be lightweight and easy to embed - no frameworks, no bloat, just the essentials you need to get a server running.

Why another HTTP library?

It was created simply because I was using the same code template in all my backends. So, after some thought, I decided to move this template out and fix some details and tweak it for more flexible use in different situations.

Try it out

Full source code and docs are here: github.com/Neon32eeee/mesh

Would love your feedback

This is still early days, so I’d really appreciate your thoughts - bugs, API ergonomics, performance feedback, or ideas for new features. Feel free to open issues or PRs!