# Some Node.js Examples?

**URL:** <https://openziti.discourse.group/t/some-node-js-examples/428>\
**Category:** Uncategorized\
**Created:** [April 25, 2022, 3:05pm UTC](https://openziti.discourse.group/t/some-node-js-examples/428 "2022-04-25T15:05:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![monizb](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@monizb](https://openziti.discourse.group/u/monizb)\
**Post date:** [April 25, 2022, 3:05pm UTC](https://openziti.discourse.group/t/some-node-js-examples/428/1 "2022-04-25T15:05:37Z")

</div>

Hey everyone! I’m really new here, I want to integrate OpenZiti with my Node.js app, I tried using the SDK but couldn’t find any helpful examples, can someone please help me with some Node.js examples? Thanks!

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [April 25, 2022, 3:13pm UTC](https://openziti.discourse.group/t/some-node-js-examples/428/2 "2022-04-25T15:13:08Z")

</div>

Hi @monizb! Welcome to the community! I’m not the best person for node help but I’ll ping some people and maybe we can get you some help.

Do you just need some kind of very simple client-side type app? Are you looking to host a service? Some information about what you’re trying to do would be helpful. Or are you just exploring and looking for any kind of sample?

Again, welcome!

---

<div class="post-metadata">

**Author:** ![smilindave26](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/smilindave26/32/185_2.png) [@smilindave26](https://openziti.discourse.group/u/smilindave26)\
**Post date:** [April 25, 2022, 3:57pm UTC](https://openziti.discourse.group/t/some-node-js-examples/428/3 "2022-04-25T15:57:57Z")

</div>

[GitHub - openziti/ziti-gitlab-webhook](https://github.com/openziti/ziti-gitlab-webhook) and [GitHub - openziti/ziti-webhook-action: Github Action to post a Webhook over a Ziti network](https://github.com/openziti/ziti-webhook-action) use the Node.js SDK

---

<div class="post-metadata">

**Author:** ![monizb](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@monizb](https://openziti.discourse.group/u/monizb)\
**Post date:** [April 25, 2022, 4:39pm UTC](https://openziti.discourse.group/t/some-node-js-examples/428/4 "2022-04-25T16:39:37Z")

</div>

Hey @TheLumberjack ! Yes, I’m looking to host my REST API + Websocket service built on top of Node.js, I was trying to use the SDK examples but I couldn’t really understand them, any kind of sample built on top of Node so that I can reference it for mine thanks!

---

<div class="post-metadata">

**Author:** ![PhilipGriffiths](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/philipgriffiths/32/341_2.png) [@PhilipGriffiths](https://openziti.discourse.group/u/PhilipGriffiths)\
**Post date:** [April 25, 2022, 6:33pm UTC](https://openziti.discourse.group/t/some-node-js-examples/428/5 "2022-04-25T18:33:42Z")

</div>

Curious question @monizb, when deploying your app server, do you intend to have a reverse proxy in front of it? In terms of examples, this HTTP agent is built on Node.JS [GitHub - openziti/ziti-http-agent](https://github.com/openziti/ziti-http-agent). @curt built that and is our expert on node, he may chime in further.

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [April 26, 2022, 1:02pm UTC](https://openziti.discourse.group/t/some-node-js-examples/428/6 "2022-04-26T13:02:55Z")

</div>

At this time, the Node.js SDK doesn’t support ‘Bind’ of services. You can run a `ziti-edge-tunnel` on your server though. If you wanted to use node as the server, that’s what I’d tell you to do. ziti-http-agent probably isn’t ready for you to try out just yet.

I would make a node client app, with one identity, and a ziti-edge-tunnel running with another id and make a service that offloads the ziti traffic to “localhost”. You could also run the server in go/java/C/etc but… just not node at this time.
