Skip to content
PluginStats

@pitlane/vite-plugin-fetch-server weekly downloads statistics

By pitlane (3 listings) · npm · Vite plugins

Vite development server bridge that sends requests to an app's Fetch handler.

View on npm Fresh · Oct 30, 2026

@pitlane/vite-plugin-fetch-server has 19,103 recorded weekly downloads on npm, ranking #1003 of 2,687 tracked listings.

Weekly downloads
19,103
Official API · Oct 28, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1003
Among tracked npm listings

About @pitlane/vite-plugin-fetch-server

@pitlane/vite-plugin-fetch-server

Serve vite dev requests through the Fetch handler your server module exports.

fetchServer({ entry }) sends every request Vite does not answer itself to the fetch method of entry's default export. The module is loaded through Vite's module runner on each request, so it is transformed like the rest of your app and an edit takes effect on the next request without a restart. It works with any framework, or none: all it needs is a module exporting { fetch }.

// src/http.ts
export default {
    async fetch(request: Request): Promise<Response> {
        return new Response(`You asked for ${new URL(request.url).pathname}`);
    },
};
// vite.config.ts
import { fetchServer } from "@pitlane/vite-plugin-fetch-server";
import { defineConfig } from "vite";

export default defineConfig({
    plugins: [fetchServer({ entry: "src/http.ts" })],
});

Install

npm install --save-dev @pitlane/vite-plugin-fetch-server
# or
vp add -D @pitlane/vite-plugin-fetch-server

Requires vite@>=8.1.0 as a peer.

fetchServer(options)

OptionDefaultMeaning
entrynone, requiredPath to the server module. Never inferred from build inputs.
environment"ssr"The Vite environment that loads entry. It must be runnable, running its modules inside the dev server process.
  • Development only. The plugin does nothing during vite build or vite preview and opens no port of its own.
  • A fallback. Files in public/, modules the browser requests, and other plugins' middleware come first. The plugin sets appType: "custom" unless your config sets one.
  • Requests and responses as sent. The URL, including the Vite base, plus the method, headers, body, status, repeated headers, and streamed bodies pass through unchanged. A client disconnect aborts request.signal and cancels a streaming body. Forwarded headers are not trusted.
  • Errors go to Vite. A throwing handler, a module that fails to load, or a default export without fetch produces Vite's development error page and an Internal server error: log line.
  • Configuration errors stop startup. A missing or empty entry, an environment that does not exist, and a non-runnable environment, such as Cloudflare's, each fail with a message. Leave the plugin out where a runtime integration serves requests itself.

With @pitlane/assets

// vite.config.ts
import { assets } from "@pitlane/assets/vite-plugin";
import { fetchServer } from "@pitlane/vite-plugin-fetch-server";
import { defineConfig } from "vite";

export default defineConfig({
    environments: {
        client: { build: { outDir: "dist/client" } },
        ssr: {
            build: {
                outDir: "dist/server",
                rolldownOptions: { input: "src/http.ts" },
            },
        },
    },
    plugins: [assets(), fetchServer({ entry: "src/http.ts" })],
});

The Fetch server guide covers the full behavior.

Description from the npm listing.

  • fetch
  • pitlane
  • ssr
  • vite
  • 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

@pitlane/vite-plugin-fetch-server weekly downloads on npm, last 90 days: 19,103 weekly downloads as of Oct 28, 2026.@pitlane/vite-plugin-fetch-serverWeekly downloads on npm · Last 90 days19,103downloads / week17K18K19K20K21K22KJul 30Aug 14Aug 29Sep 13Sep 28Oct 13Oct 28downloads / weekOct 28, 2026 – Oct 28, 2026 · 1 observations · Updated Oct 28, 2026pluginstats.com
@pitlane/vite-plugin-fetch-server weekly downloads on npm, last 90 days: 19,103 weekly downloads as of Oct 28, 2026.

7/30/90-day growth

@pitlane/vite-plugin-fetch-server weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.@pitlane/vite-plugin-fetch-serverWeekly downloads growth on npm19,103downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 28, 2026pluginstats.com
@pitlane/vite-plugin-fetch-server weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@pitlane/vite-plugin-fetch-server npm ranking history: currently #1003 (by weekly downloads).@pitlane/vite-plugin-fetch-servernpm ranking · by weekly downloads · Last 90 days#1003current rank#1001#1002#1003#1004#1005Aug 1Aug 16Aug 31Sep 15Sep 30Oct 15Oct 30rankOct 30, 2026 – Oct 30, 2026 · 1 observations · Updated Oct 28, 2026pluginstats.com
@pitlane/vite-plugin-fetch-server npm ranking history: currently #1003 (by weekly downloads).

Listing placement

All npm2,686 listings · 135 pages · 1,345 shown · page 51, #20 (overall #1,020)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins277 listings · 14 pages · page 10, #1 (overall #181)
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 (1)
Recent weekly downloads observations for @pitlane/vite-plugin-fetch-server
Date (UTC)Weekly downloadsChange vs. previous
19,103—

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/@pitlane/vite-plugin-fetch-server. First seen Oct 30, 2026; last successful collection Oct 30, 2026. See the methodology.