You may be familiar with zrok, the open-source solution built on OpenZiti, which makes it very easy to securely share resources over the internet. If

The NodeJS zrok SDK

submited by
Style Pass
2024-05-06 22:00:05

You may be familiar with zrok, the open-source solution built on OpenZiti, which makes it very easy to securely share resources over the internet. If you are already a zrok fan, that's great news -- Thank you for being part of our community!

zrok is built to enable developers to seamlessly and securely share their applications (we previously released our zrok Golang SDK, and our zrok Python SDK). Using just a little code enables you to share your app through zrok's robust network.

Today we are excited to expand our zrok SDK philosophy by introducing a NodeJS SDK (available as of zrok 0.4.30), and that is what we'll discuss in this article.

If you want to follow along you'll need to have a zrok environment set up. If you don't want to self-host you can sign up for a free account at zrok.io.

This zrok.express call spins up a NodeJS Express server, however, the Express server is transparently instrumented by the zrok SDK (and its embedded Ziti SDK for NodeJS) to enable the Express web server to "bind" (i.e. host) the Ziti Service represented by the zrok share.

Leave a Comment