Skip to content
PluginStats

@hono/vite-dev-server weekly downloads statistics

By hono (2 listings) · npm · Vite plugins

Vite dev-server plugin for Hono

View on npm Stale · Oct 17, 2026

@hono/vite-dev-server has 98,455 recorded weekly downloads on npm, a decrease of 48.2% over the past 30 days, ranking #456 of 2,256 tracked listings.

Weekly downloads
98,455
Official API · Oct 17, 2026
7-day growth
-54.4%
-117.3K weekly downloads
30-day growth
-48.2%
-91.6K weekly downloads
90-day growth
-46.7%
-86.3K weekly downloads
Rank
#456
Among tracked npm listings

About @hono/vite-dev-server

@hono/vite-dev-server

@hono/vite-dev-server is a Vite Plugin that provides a custom dev-server for fetch-based web applications like those using Hono. You can develop your application with Vite. It's fast.

Features

• Support any fetch-based applications. • Hono applications run on. • Fast by Vite. • HMR (Only for the client side). • Adapters are available, e.g., Cloudflare. • Also runs on Bun.

Demo

https://github.com/honojs/vite-plugins/assets/10682/a93ee4c5-2e1a-4b17-8bb2-64f955f2f0b0

Supported applications

You can run any application on @hono/vite-dev-server that uses fetch and is built with Web Standard APIs. The minimal application is the following.

This code can also run on Cloudflare Workers or Bun. And if you change the entry point, you can run on Deno, Vercel, Lagon, and other platforms.

Hono is designed for fetch-based applications like this.

So, any Hono application will run on @hono/vite-dev-server.

Usage

Installation

You can install vite and @hono/vite-dev-server via npm.

Or you can install them with Bun.

Settings

Add "type": "module" to your package.json. Then, create vite.config.ts and edit it.

Development

Just run vite.

Or

Options

The options are below.

Default values:

injectClientScript

If it's true and the response content type is "HTML", inject the script that enables Hot-reload. default is true.

exclude

The paths that are not served by the dev-server.

If you have static files in public/assets/* and want to return them, exclude /assets/* as follows:

ignoreWatching

You can add target directories for the server to watch.

adapter

You can pass the env value of a specified environment to the application.

base

The base option specifies the base path under which your application is served. It provides behavior equivalent to Hono's .basePath(), but does not depend on Hono itself. Note that c.req will contain paths without the base you specify here.

Provide an empty string or / to serve from the root, or a leading-slash path such as /foo/bar.

When this option is set, the Vite base configuration will be overridden by the vite-dev-server.

For example, if you set base to /foo/bar, when a browser requests /foo/bar/path the vite-dev-server will handle that request and pass /path to your application.

Adapter

Cloudflare

You can pass the Bindings specified in wrangler.toml to your application by using "Cloudflare Adapter".

Install miniflare and wrangler to develop and deploy your cf project.

Node.js & Bun

No additional dependencies needed.

Helper

ConnInfo

You can use the ConnInfo helper to get connection information. For more details: ConnInfo Helper.

You can use it like this:

You can also use different ConnInfo Helpers in development and production environments as shown below:

Tips

You can get vite dev server's instance from request context.

Client-side

You can write client-side scripts and import them into your application using Vite's features. If /src/client.ts is the entry point, simply write it in the script tag. Additionally, import.meta.env.PROD is useful for detecting whether it's running on a dev server or in the build phase.

In order to build the script properly, you can use the example config file vite.config.ts as shown below.

You can run the following command to build the client script.

Frequently Asked Questions

exports is not defined

If you use a package that only supports CommonJS, you will encounter the error exports is not defined.

In that case, specify the target package in ssr.external in vite.config.ts:

Importing Asset as URL is not working

If you want to import assets as URL with the following code, the logo image may not be found.

This is because logo.png is served from this dev-server, even though it is expected to be served from Vite itself. So to fix it, you can add *.png to the exclude option:

Authors

• Yusuke Wada

License

MIT

Description from the npm listing.

  • hono
  • vite-plugin

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

@hono/vite-dev-server weekly downloads on npm, last 90 days: 98,455 weekly downloads as of Oct 17, 2026, -46.7% over 90 days.@hono/vite-dev-serverWeekly downloads on npm · Last 90 days98,455downloads / week-46.7% over 90 days80K100K120K140K160K180K200K220K240K260K280KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
@hono/vite-dev-server weekly downloads on npm, last 90 days: 98,455 weekly downloads as of Oct 17, 2026, -46.7% over 90 days.

7/30/90-day growth

@hono/vite-dev-server weekly downloads growth on npm: -54.4% over 7 days, -48.2% over 30 days, -46.7% over 90 days.@hono/vite-dev-serverWeekly downloads growth on npm98,455downloads / week now7-day growth-117,339 weekly downloads-54.4%30-day growth-91,564 weekly downloads-48.2%90-day growth-86,281 weekly downloads-46.7%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@hono/vite-dev-server weekly downloads growth on npm: -54.4% over 7 days, -48.2% over 30 days, -46.7% over 90 days.

Ranking history

@hono/vite-dev-server npm ranking history: currently #456 (by weekly downloads).@hono/vite-dev-servernpm ranking · by weekly downloads · Last 90 days#456current rank#454#455#456#457#458Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@hono/vite-dev-server npm ranking history: currently #456 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 23, #16 (overall #456)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins250 listings · 13 pages · page 4, #3 (overall #63)
Vite plugins: every listing in weekly downloads order

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 (121)
Recent weekly downloads observations for @hono/vite-dev-server
Date (UTC)Weekly downloadsChange vs. previous
98,455-17.7K
116,196-1.5K
117,675-45.2K
162,866-47.3K
210,1600
210,160-8.5K
218,610+2.8K
215,794-2.3K
218,057+927
217,130-2.7K
219,800+4K
215,815-45.2K
261,064-188
261,252—

Similar npm Vite plugins plugins

All 20 @hono/vite-dev-server alternatives

Data 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/@hono/vite-dev-server. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.