Context
turboAPI and merjs now share a common Zig library: turboapi-core (justrach/turboapi-core). It provides:
- Radix trie router — method-aware,
{param} + *wildcard support, fuzz-tested, O(log n) matching
- HTTP utilities —
queryStringGet, percentDecode, statusText, formatHttpDate
- Bounded response cache — thread-safe
BoundedCache(V) with max entry cap
The dependency is already wired in build.zig.zon and build.zig (via mer_mod.addImport("turboapi-core", core_mod)). All merjs tests pass.
What's done
What's next
Context
turboAPI and merjs now share a common Zig library: turboapi-core (
justrach/turboapi-core). It provides:{param}+*wildcardsupport, fuzz-tested, O(log n) matchingqueryStringGet,percentDecode,statusText,formatHttpDateBoundedCache(V)with max entry capThe dependency is already wired in
build.zig.zonandbuild.zig(viamer_mod.addImport("turboapi-core", core_mod)). All merjs tests pass.What's done
What's next
turboapi-core.Routerforapi/routes to get method-based dispatch (GET vs POST on same path)queryParamFromStrinrequest.zigwithcore.http.queryStringGet(identical signature, needs module import plumbing)justrach/turboapi-corerepo is published on GitHub