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 Stale · Oct 18, 2026

@kloudmate/sourcemaps has 101 recorded weekly downloads on npm.

Weekly downloads
101
Official API · Oct 18, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
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: 101 weekly downloads as of Oct 18, 2026.@kloudmate/sourcemapsWeekly downloads on npm · Last 90 days101downloads / week9095100105110115Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 18, 2026pluginstats.com
@kloudmate/sourcemaps weekly downloads on npm, last 90 days: 101 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

@kloudmate/sourcemaps weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.@kloudmate/sourcemapsWeekly downloads growth on npm101downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@kloudmate/sourcemaps weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@kloudmate/sourcemaps has no ranking history on npm yet.@kloudmate/sourcemapsnpm ranking · by weekly downloads · Last 90 daysNo ranking observations in this periodno observations · 0 observations · Updated Oct 18, 2026pluginstats.com
@kloudmate/sourcemaps has no ranking history on npm yet.

Listing placement

All npm2,429 listings · 122 pages · 1,216 shown · page 92, #18 (overall #1,838)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins260 listings · 13 pages · page 6, #11 (overall #111)
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 (1)
Recent weekly downloads observations for @kloudmate/sourcemaps
Date (UTC)Weekly downloadsChange vs. previous
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 23, 2026. See the methodology.