Skip to content
JS
Package

vite-plugin-graphql-codegen

Zero-config vite plugin that uses the vite file watcher to run graphql codegen programmatically without needing to start a separate watcher

v4.0.1, 16 Jun 2026MITESM onlyTypes: NoneGraphQLBundler plugins and loaders
$ npm install vite-plugin-graphql-codegen

Key numbers

As of 25 Sept 2026
Weekly downloads
40.8k
+25% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 months ago
v4.0.1
GitHub stars
91
11 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
31

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60k80kSept 2025Mar 2026Sept 2026High 64.5k (4 Aug 2026)Low 10.1k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

40,823 downloads last week, 208,692 in the last month. The 12-month change of +25% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
4.0.1, 16 Jun 20263 months ago
First published
-
Last push to GitHub
14 Aug 202641 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
31
Dependents on npm
8

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
16 kB
Dependencies (0)
None
Peer dependencies (3)
vitegraphql@graphql-codegen/cli
npm install vite-plugin-graphql-codegen
  • jsDelivrhttps://cdn.jsdelivr.net/npm/vite-plugin-graphql-codegen@4.0.1/
  • unpkghttps://unpkg.com/vite-plugin-graphql-codegen@4.0.1/
  • esm.shhttps://esm.sh/vite-plugin-graphql-codegen@4.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
@magidoc/rollup-plugin-gql-schema17.9k-1 month agoESM only-
graphql-codegen-apollo-next-ssr6.7k-4 years agoCommonJS-
gatsby-plugin-typegen6k-3 years agoCommonJS-
@graphql-tools/relay-operation-optimizer7m-17 days agoESM + CommonJS-
@graphql-toolkit/relay-operation-optimizer15.4k-6 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.