<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-the-ngrok-javascript-sdk-fmj48m1q8" -->

---
title: Introducing the ngrok JavaScript SDK | daily.dev
description: ngrok has released a native JavaScript/TypeScript SDK, ngrok-javascript, that packages the ngrok agent as a Node.js library. It lets developers add secure...
canonical: https://daily.dev/posts/introducing-the-ngrok-javascript-sdk-fmj48m1q8
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing the ngrok JavaScript SDK | daily.dev
og:description: ngrok has released a native JavaScript/TypeScript SDK, ngrok-javascript, that packages the ngrok agent as a Node.js library. It lets developers add secure...
og:url: https://daily.dev/posts/introducing-the-ngrok-javascript-sdk-fmj48m1q8
og:image: https://api.daily.dev/og/posts/fMJ48m1q8.png
og:image:alt: Introducing the ngrok JavaScript SDK
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing the ngrok JavaScript SDK

**[ngrok Blog](https://daily.dev/sources/ngrok)** · 4 min read · 0 upvotes · 0 comments

## Summary

ngrok has released a native JavaScript/TypeScript SDK, ngrok-javascript, that packages the ngrok agent as a Node.js library. It lets developers add secure ingress to their apps with a single line of code (ngrok.forward()), without managing IPs, NATs, certificates, load balancers, or ports. The SDK is open source on GitHub with documentation and a quickstart guide, works across any deployment environment (bare metal, Kubernetes, serverless, Raspberry Pi, laptop), and supports features like OAuth-based ingress declarations, built-in forwarding to any TCP/Unix socket framework, and logging integration via console or winston.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ngrok.com/blog/ngrok-js>

## Questions this post answers

### How do I expose a local Node.js server to the internet using ngrok without installing the ngrok agent separately?

Use the ngrok-javascript SDK, which packages the ngrok agent as a native Node.js library instead of a separate binary. Install it via npm, yarn, or pnpm, then call ngrok.forward(port) or ngrok.listen(server) to create a secure outbound TLS tunnel to ngrok's ingress network in a single line of code, without configuring IPs, NATs, or certificates.

_daily.dev surfaces SDK releases like this for developers wiring up ingress in Node.js apps._

### Does ngrok's JavaScript SDK support authentication like OAuth out of the box?

Yes, ngrok-javascript supports declarative authentication options directly in the forward call, such as ngrok.forward({oauth_provider: "google"}), letting developers add OAuth-based access control to their ingress without building it themselves. It also supports built-in logging via console or winston through ngrok.consoleLog("INFO").

_Developers evaluating ingress options for auth-protected apps can track SDK updates like this on daily.dev._

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#devtools](https://daily.dev/tags/devtools), [#nodejs](https://daily.dev/tags/nodejs), [#typescript](https://daily.dev/tags/typescript), [#networking](https://daily.dev/tags/networking)

[View this post on daily.dev](https://daily.dev/posts/introducing-the-ngrok-javascript-sdk-fmj48m1q8)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introducing the ngrok JavaScript SDK","url":"https://daily.dev/posts/introducing-the-ngrok-javascript-sdk-fmj48m1q8","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-the-ngrok-javascript-sdk-fmj48m1q8"},"datePublished":"2026-08-23T07:21:40.340Z","dateModified":"2026-08-23T07:28:31.525Z","description":"ngrok has released a native JavaScript/TypeScript SDK, ngrok-javascript, that packages the ngrok agent as a Node.js library. It lets developers add secure...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6c3118b3f16ba149fdfa68f8bf47b821?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6c3118b3f16ba149fdfa68f8bf47b821?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ngrok Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ngrok Blog","logo":"https://media.daily.dev/image/upload/s--718XXxvE--/f_auto,q_auto/v1787469610/logos/ngrok?_a=BAMAMicg0","url":"https://daily.dev/sources/ngrok"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/introducing-the-ngrok-javascript-sdk-fmj48m1q8","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,devtools,nodejs,typescript,networking","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ngrok Blog","item":"https://daily.dev/sources/ngrok"},{"@type":"ListItem","position":3,"name":"Introducing the ngrok JavaScript SDK"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/introducing-the-ngrok-javascript-sdk-fmj48m1q8#faq","mainEntity":[{"@type":"Question","name":"How do I expose a local Node.js server to the internet using ngrok without installing the ngrok agent separately?","acceptedAnswer":{"@type":"Answer","text":"Use the ngrok-javascript SDK, which packages the ngrok agent as a native Node.js library instead of a separate binary. Install it via npm, yarn, or pnpm, then call ngrok.forward(port) or ngrok.listen(server) to create a secure outbound TLS tunnel to ngrok's ingress network in a single line of code, without configuring IPs, NATs, or certificates. daily.dev surfaces SDK releases like this for developers wiring up ingress in Node.js apps."}},{"@type":"Question","name":"Does ngrok's JavaScript SDK support authentication like OAuth out of the box?","acceptedAnswer":{"@type":"Answer","text":"Yes, ngrok-javascript supports declarative authentication options directly in the forward call, such as ngrok.forward({oauth_provider: \"google\"}), letting developers add OAuth-based access control to their ingress without building it themselves. It also supports built-in logging via console or winston through ngrok.consoleLog(\"INFO\"). Developers evaluating ingress options for auth-protected apps can track SDK updates like this on daily.dev."}}]}
```

