vite-plugin-ngrok weekly downloads statistics
By aphex (2 listings) · npm · Vite plugins
A Vite plugin for seamless integration with ngrok, allowing you to easily share your local development server with anyone, anywhere.
vite-plugin-ngrok has 676 recorded weekly downloads on npm, a decrease of 92.9% over the past 30 days, ranking #2185 of 3,247 tracked listings.
About vite-plugin-ngrok
Vite Plugin ngrok 🎉
A vite plugin to automatically create a ngrok tunnel during local dev. This plugin uses the @ngrok/ngrok Javascript SDK
Features
- Ngrok Integration: Quickly expose your Vite development server to the internet using Ngrok tunnels.
- Dynamic URLs: Automatically updates Ngrok URLs when your local server restarts or when the Ngrok tunnel is reopened.
- Custom Configuration: Fine-tune Ngrok options through a simple configuration file.
- Simple Sharing: Just install the plugin, add your auth token, and start sharing your project.
How to use
-
Create a Vite project
-
Install the plugin into your project
npm i -D vite-plugin-ngrok
- Create / Configure a
vite.config.tsfile in your project root.
import { loadEnv, defineConfig } from 'vite'
import { ngrok } from 'vite-plugin-ngrok'
export default defineConfig({
// Note you should not store your ngrok token in your code/repo. Make sure to move this to
// a more secure place before sharing your project.
plugins: [
ngrok('NGROK_AUTH_TOKEN_IN_HERE'),
],
})
- Fire up Vite as usual
npm run dev
Configuration
The ngrok plugin can be configured in 3 ways.
- No configuration. This will default to automatically use the vite port and
authtoken_from_envwill be set totrue. This will look forNGROK_AUTHTOKENin your environmental variables.
ngrok()
- If given a string the plugin will assume this is your auth token and configure it automatically with the vite port.
ngrok('NGROK_AUTH_TOKEN_IN_HERE'),
- Full ngrok config. If given an object you can pass in any options from the ngrok config. This will be merged with the default port from vite so that does not need to be set. Config properties can be found in the ngrok Javascript SDK Config docs
ngrok({
domain: 'my-domain.ngrok.app',
compression: true,
authtoken: 'NGROK_AUTH_TOKEN_IN_HERE',
...
})
Advanced
You can use Vite's built in env parsing to store your ngrok token in a local file and ignore it from git.
import { loadEnv, defineConfig } from 'vite'
import { ngrok } from 'vite-plugin-ngrok'
const { NGROK_AUTH_TOKEN } = loadEnv('', process.cwd(), 'NGROK')
export default defineConfig({
plugins: [
ngrok({
authtoken: NGROK_AUTH_TOKEN,
}),
],
})
Description from the npm listing.
- vite-plugin
- vite
- ngrok
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (142)Similar npm Vite plugins plugins
All 20 vite-plugin-ngrok alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/vite-plugin-ngrok. First seen Nov 8, 2026; last successful collection Nov 18, 2026. See the methodology.