Skip to content
PluginStats

@cpsoinos/vite-plugin-http2-proxy weekly downloads statistics

By cpsoinos · npm · Vite plugins

A Vite plugin that allows you to proxy requests to an HTTP2 server.

View on npm Fresh · Dec 6, 2026

@cpsoinos/vite-plugin-http2-proxy has 9,026 recorded weekly downloads on npm, an increase of 3.4% over the past 30 days, ranking #1313 of 3,247 tracked listings.

Weekly downloads
9,026
Official API · Dec 5, 2026
7-day growth
+1.0%
+91 weekly downloads
30-day growth
+3.4%
+298 weekly downloads
90-day growth
+230%
+6.3K weekly downloads
Rank
#1313
▼ 25 in 7 days

About @cpsoinos/vite-plugin-http2-proxy

vite-plugin-http2-proxy

Run an HTTP2 proxy in development mode with Vite. Works great when paired with vite-plugin-mkcert.

Why would I use this?

When using Vite's built-in proxy and https: true, all requests are downgraded to HTTP1.1. See this issue for discussion. This plugin is useful when you need to proxy requests to an external API in development mode and you want to use https and/or HTTP2.

Use this with vite-plugin-mkcert for seamless SSL certificate generation and use of https with proxy usage in development.

Install

Using npm
npm install @cpsoinos/vite-plugin-http2-proxy --save-dev
Using yarn
yarn add @cpsoinos/vite-plugin-http2-proxy -D
Using pnpm
pnpm add @cpsoinos/vite-plugin-http2-proxy -D

Usage

// vite.config.ts

import { defineConfig } from 'vite'
import http2Proxy from '@cpsoinos/vite-plugin-http2-proxy'
import mkcert from 'vite-plugin-mkcert' // optional - use to generate SSL certificates and use https in development

export default defineConfig(({ mode }) => {
  return {
    plugins: [
      // ... other plugins
      mkcert(), // optional
      http2Proxy({ quiet: true }), // optional -- suppress error logging
    ],
    server: {
      // optional - only in development mode
      ...(mode === 'development' && {
        proxy: {
          '/api': {
            target: 'https://api.example.com',
            changeOrigin: true,
            rewrite: (path) => path.replace(/^\/api/, ''), // optional - remove `/api` from request path
          },
        },
      }),
    },
  }
})

Accreditations

Adapted from a gist shared by @xfournet in this issue comment.

This plugin uses http2-proxy under the hood. See the http2-proxy package for more information.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2024 Corey Psoinos.

This project is MIT licensed.

Description from the npm listing.

  • vite
  • vite-plugin
  • http2
  • http2-proxy
  • proxy
  • https-proxy
  • vite-plugin-http2-proxy

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

@cpsoinos/vite-plugin-http2-proxy weekly downloads on npm, last 90 days: 9,026 weekly downloads as of Dec 5, 2026, +230% over 90 days.@cpsoinos/vite-plugin-http2-proxyWeekly downloads on npm · Last 90 days9,026downloads / week+230% over 90 days02K4K6K8K10KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@cpsoinos/vite-plugin-http2-proxy weekly downloads on npm, last 90 days: 9,026 weekly downloads as of Dec 5, 2026, +230% over 90 days.

7/30/90-day growth

@cpsoinos/vite-plugin-http2-proxy weekly downloads growth on npm: +1.0% over 7 days, +3.4% over 30 days, +230% over 90 days.@cpsoinos/vite-plugin-http2-proxyWeekly downloads growth on npm9,026downloads / week now7-day growth+91 weekly downloads+1.0%30-day growth+298 weekly downloads+3.4%90-day growth+6,287 weekly downloads+230%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@cpsoinos/vite-plugin-http2-proxy weekly downloads growth on npm: +1.0% over 7 days, +3.4% over 30 days, +230% over 90 days.

Ranking history

@cpsoinos/vite-plugin-http2-proxy npm ranking history: currently #1313 (by weekly downloads).@cpsoinos/vite-plugin-http2-proxynpm ranking · by weekly downloads · Last 90 days#1313current rank#1160#1180#1200#1220#1240#1260#1280#1300#1320Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 12, 2026 – Dec 6, 2026 · 25 observations · Updated Dec 5, 2026pluginstats.com
@cpsoinos/vite-plugin-http2-proxy npm ranking history: currently #1313 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 66, #13 (overall #1,313)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 12, #19 (overall #239)
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 (142)
Recent weekly downloads observations for @cpsoinos/vite-plugin-http2-proxy
Date (UTC)Weekly downloadsChange vs. previous
9,026+123
8,903-99
9,002+163
8,839-372
9,211-157
9,368+384
8,984+49
8,935-123
9,058-146
9,204-321
9,525+75
9,450+67
9,383-531
9,914—

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/@cpsoinos/vite-plugin-http2-proxy. First seen Nov 12, 2026; last successful collection Dec 6, 2026. See the methodology.