unplugin-typegpu weekly downloads statistics
By software-mansion (2 listings) · npm · Vite plugins
Build plugins for TypeGPU, enabling seamless JavaScript -> WGSL transpilation and improved debugging.
unplugin-typegpu has 134,862 recorded weekly downloads on npm, an increase of 11.3% over the past 30 days, ranking #593 of 3,247 tracked listings.
About unplugin-typegpu
unplugin-typegpu
Read more about the plugin in the TypeGPU documentation.
</div>A set of bundler plugins and runtime hooks that enhance TypeGPU with:
- JavaScript/TypeScript shader support ('use gpu' directive)
- Improved debugging with automatic naming of resources
Getting Started
npm install unplugin-typegpu
- babel
// babel.config.js (React Native with Expo)
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['unplugin-typegpu/babel'],
};
};
- vite
// vite.config.js
import { defineConfig } from 'vite';
import typegpu from 'unplugin-typegpu/vite';
export default defineConfig({
plugins: [typegpu()],
});
- bun
// preload.ts
import { plugin } from 'bun';
import typegpu from 'unplugin-typegpu/bun';
await plugin(typegpu());
Run with bun --preload ./preload.ts main.ts, or add
preload = ["./preload.ts"] to bunfig.toml.
For Bun.build, pass typegpu() in the plugins array instead.
The Bun plugin accepts a single regular expression for include and does not
support exclude.
- Node.js (22.15+) and Deno (2.8+)
// preload.mjs
import install from 'unplugin-typegpu/node';
const hooks = install(); // Accepts the usual plugin options.
// Call hooks.deregister() to stop transforming future imports.
Run with node --import ./preload.mjs main.ts or
deno run --import ./preload.mjs main.ts. unplugin-typegpu/deno is an alias
for the same installer.
The hooks transform .js, .ts, .mjs, .mts, .cjs, and .cts modules.
Deno also handles .jsx and .tsx; Node.js needs an additional JSX loader.
Node.js's native TypeScript support is limited to erasable syntax by default
and does not use tsconfig.json.
Alternatively, call install()
in your entry module and then load your application with await import('./main.ts').
Static imports in the module calling install() are loaded before the hooks are
installed. Already loaded modules are not transformed retroactively.
TypeGPU is created by Software Mansion
Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – Hire us.
Description from the npm listing.
- babel-plugin
- gpgpu
- rollup-plugin
- shaders
- typegpu
- typescript
- unplugin
- vite-plugin
- webgpu
- wgpu
- wgsl
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 (170)Similar npm Vite plugins plugins
All 20 unplugin-typegpu 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/unplugin-typegpu. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.