We waste cycles evaluating third-party packages for URL manipulation when the standard library handles query string parsing. I usually advocate building this in Go to avoid dependency bloat and on-call load, but this TypeScript implementation relies strictly on the standard library without external services.
qs.ts
Run the test suite alongside the implementation to verify edge cases and check our SLOs for malformed inputs.