Skip to content
PluginStats

@kloudmate/sourcemaps weekly downloads statistics

By kloudmate · npm · Webpack plugins

Upload source maps to KloudMate so RUM stack traces show your original code

View on npm Fresh · Oct 28, 2026

@kloudmate/sourcemaps has 43 recorded weekly downloads on npm, a change of -57.4% over the past 7 days, ranking #1768 of 2,644 tracked listings.

Weekly downloads
43
Official API · Oct 26, 2026
7-day growth
-57.4%
-58 weekly downloads
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1768
Among tracked npm listings

About @kloudmate/sourcemaps

@kloudmate/sourcemaps

Uploads your source maps to KloudMate during a production build, so RUM stack traces show src/cart/applyCoupon.ts:42:7 instead of index-4f2a.js:1:84210.

On each build it does three things:

  1. Injects a debug ID into every script. The @kloudmate/rum-web SDK reports it with each error, so a frame finds its map even when the release does not match.
  2. Uploads the maps that KloudMate does not already hold.
  3. Removes the maps from the build output, so your source is never deployed.

Install

Add it as a dev dependency, so every build runs the version you pinned:

npm i -D @kloudmate/sourcemaps

Token

Create an Ingest Key - Backend (sk_…) in KloudMate under Settings → Ingest Keys, and expose it to your CI build as KM_SOURCEMAPS_TOKEN. Without it, nothing is uploaded, but a production build still loses its .map files, so a build made without the token never deploys them either. Set deleteAfterUpload: false to keep them.

Create the key in the workspace your app sends RUM data to. Maps are stored per workspace, so a key from another workspace uploads them where your errors never look. Personal API Keys (uk_) and the public pk_ key the SDK uses are refused.

# GitHub Actions
- run: npm run build
  env:
    KM_SOURCEMAPS_TOKEN: ${{ secrets.KM_SOURCEMAPS_TOKEN }}

Vite and Rollup

// vite.config.ts
import { kloudmateSourcemaps } from '@kloudmate/sourcemaps/vite';

export default defineConfig({
  build: { sourcemap: 'hidden' },
  plugins: [kloudmateSourcemaps({ app: 'shop-web' })],
});

The same plugin works in a Rollup config. Use sourcemap: 'hidden' so your scripts never point at a map that is not deployed.

webpack and Rspack

// webpack.config.mjs or rspack.config.mjs
import { kloudmateSourcemaps } from '@kloudmate/sourcemaps/webpack';

export default {
  mode: 'production',
  devtool: 'hidden-source-map',
  plugins: [kloudmateSourcemaps({ app: 'shop-web' })],
};

The package is ESM-only. A CommonJS config can require() it on Node 20.19 or 22.12 and later. In development mode or watch mode the plugin does nothing.

Both plugins act on browser bundles only. Vite SSR builds, library builds and non-client environments are left alone, and so are webpack and Rspack builds for a Node or Electron-main target, library builds and Next.js's server compilers.

Plugin options

Both plugins take the same options.

OptionDefaultNotes
app—Required. Must equal the SDK's applicationName exactly.
releaseKM_RELEASEShould equal the SDK's version. Debug IDs match without it, but a frame with no debug ID falls back to release and path.
urlPrefixVite's base or webpack's output.publicPath, else ~/The URL path the output directory is served from. /shop/, ~/shop and https://cdn.example.com/shop/ all mean the same; ~ stands for any origin.
deleteAfterUploadtrueDrops every .map file (and any .map.gz or .map.br copy) from the output, whether or not it was uploaded.
failOnErrorfalseFails the build when KloudMate is unreachable or refuses the upload. Otherwise it logs and carries on.
tokenKM_SOURCEMAPS_TOKENPrefer the environment variable over putting a key in config.
urlKM_SOURCEMAPS_URL, else https://api.kloudmate.comThe KloudMate API base URL.

Other bundlers: the CLI

Install the package first (see Install), then run the CLI as a post-build step, with inject before upload:

npx @kloudmate/sourcemaps inject ./dist
npx @kloudmate/sourcemaps upload ./dist --app shop-web --release "$APP_VERSION" --delete-after-upload

Always call it by its scoped name. npx runs the version installed in your project; any other name could resolve to an unrelated package on npm, running in your CI next to your token and your maps.

inject changes the built scripts. Run it before any step that hashes them, such as subresource integrity or a service worker manifest.

Next.js

This works with both webpack and Turbopack builds. Turn on browser source maps:

// next.config.js
module.exports = { productionBrowserSourceMaps: true };

Then run the CLI on .next/static, which is served under /_next/static:

// package.json
"build": "next build && npx @kloudmate/sourcemaps inject .next/static && npx @kloudmate/sourcemaps upload .next/static --app shop-web --url-prefix /_next/static --delete-after-upload"

With a basePath or a path in assetPrefix, add it to the prefix, for example --url-prefix /shop/_next/static. Do not use experimental.sri, because its hashes are computed before inject changes the files.

Angular

In angular.json, turn on hidden script maps for the production configuration:

"configurations": {
  "production": {
    "sourceMap": { "scripts": true, "styles": false, "hidden": true, "vendor": true }
  }
}

Then run the CLI on the browser output. Projects still on the older browser builder output to dist/shop-web, with no browser folder.

// package.json
"build": "ng build && npx @kloudmate/sourcemaps inject dist/shop-web/browser && npx @kloudmate/sourcemaps upload dist/shop-web/browser --app shop-web --release \"$APP_VERSION\" --delete-after-upload"

If the app is served under a baseHref such as /shop/, pass --url-prefix /shop/.

If you use @angular/service-worker, regenerate its manifest after inject. Otherwise its hashes no longer match the changed files and the service worker rejects them. Run this from the project root, adding the baseHref as a third argument if the app has one:

ngsw-config dist/shop-web/browser ngsw-config.json
esbuild

Build with sourcemap: 'external'. That writes the maps without pointing the scripts at them:…

Description from the npm listing.

  • sourcemaps
  • source-maps
  • vite-plugin
  • rollup-plugin
  • webpack-plugin
  • rspack-plugin
  • rum
  • kloudmate

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

@kloudmate/sourcemaps weekly downloads on npm, last 90 days: 43 weekly downloads as of Oct 26, 2026.@kloudmate/sourcemapsWeekly downloads on npm · Last 90 days43downloads / week020406080100120140Jul 28Aug 12Aug 27Sep 11Sep 26Oct 11Oct 26downloads / weekobservedarchived (Internet Archive)no observationsOct 18, 2026 – Oct 26, 2026 · 3 observations · Updated Oct…pluginstats.com
@kloudmate/sourcemaps weekly downloads on npm, last 90 days: 43 weekly downloads as of Oct 26, 2026.

7/30/90-day growth

@kloudmate/sourcemaps weekly downloads growth on npm: -57.4% over 7 days, 30-day growth unavailable, 90-day growth unavailable.@kloudmate/sourcemapsWeekly downloads growth on npm43downloads / week now7-day growth-58 weekly downloads · a…-57.4%30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 26, 2026pluginstats.com
@kloudmate/sourcemaps weekly downloads growth on npm: -57.4% over 7 days, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@kloudmate/sourcemaps npm ranking history: currently #1768 (by weekly downloads).@kloudmate/sourcemapsnpm ranking · by weekly downloads · Last 90 days#1768current rank#1766#1767#1768#1769#1770Jul 30Aug 14Aug 29Sep 13Sep 28Oct 13Oct 28rankOct 28, 2026 – Oct 28, 2026 · 1 observations · Updated Oct 26, 2026pluginstats.com
@kloudmate/sourcemaps npm ranking history: currently #1768 (by weekly downloads).

Listing placement

All npm2,642 listings · 133 pages · 1,322 shown · page 107, #13 (overall #2,133)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins279 listings · 14 pages · page 8, #10 (overall #150)
Webpack 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 (3)
Recent weekly downloads observations for @kloudmate/sourcemaps
Date (UTC)Weekly downloadsChange vs. previous
43-81
124+23
101—

Similar npm Webpack plugins plugins

All 20 @kloudmate/sourcemaps 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/@kloudmate/sourcemaps. First seen Oct 23, 2026; last successful collection Oct 28, 2026. See the methodology.