
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@http4t/bidi
Advanced tools
NB: This is nowhere near production ready at time of writing.
I should be able to define a route at GET /widgets/{id} and use that route to both:
HttpHandlerBy sharing the routes between client and server I avoid bugs with my client sending the wrong shaped requests to my server.
If I have a route GET /widgets/{widgetId} that returns a json-serialised response body containing a Widget,
I want to be able to give my server a handler function that knows nothing about http, like:
(args: {widgetId: string}) => Promise<Widget>
...and have the server destructure the request into that shape and then serialise
the function result into an HttpResponse.
On the client side, I want to be able to generate a function with the same signature
that takes care of serialising to an HttpRequest, sending to an HttpHandler, then
deserialising from HttpResponse.
See client.test.ts for an example of a complete round trip from client to server and back.
FAQs
NB: This is nowhere near production ready at time of writing.
We found that @http4t/bidi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.