# @sentry/server-runtime-injection

> Runtime diagnostics-channel injection hooks for the Sentry JavaScript SDKs. Must be kept external (not bundled) when bundling a server.

Latest version **11.6.0** (published 2026-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sentry/server-runtime-injection
pnpm add @sentry/server-runtime-injection
yarn add @sentry/server-runtime-injection
bun add @sentry/server-runtime-injection
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 11.6.0 |
| Published | 2026-10-08 |
| First published | 2026-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.19.0 <22.0.0 \|\| >=22.12.0 <23.0.0 \|\| >=23.2.0 |
| Dependencies | 2 |
| Unpacked size | 6.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8745 |
| Author | Sentry |
| Maintainers | sentry-bot |

## Links

- npm: https://www.npmjs.com/package/@sentry/server-runtime-injection
- Repository: https://github.com/getsentry/sentry-javascript
- Homepage: https://github.com/getsentry/sentry-javascript/tree/master/packages/server-runtime-injection
- Issues: https://github.com/getsentry/sentry-javascript/issues
- npm.io page: https://npm.io/package/@sentry/server-runtime-injection

## Dependencies (2)

- [@sentry/core](https://npm.io/package/@sentry/core.md) 11.6.0
- [@sentry/server-utils](https://npm.io/package/@sentry/server-utils.md) 11.6.0

## Recent versions

- 11.6.0 (latest) — 2026-10-08
- 11.0.0-rc.1 (next) — 2026-09-22
- 11.5.0 — 2026-10-07
- 11.4.0 — 2026-10-02
- 11.3.0 — 2026-10-02
- 11.2.0 — 2026-10-01
- 11.1.0 — 2026-09-28
- 11.0.0 — 2026-09-23
- 11.0.0-rc.0 — 2026-09-16
- 11.0.0-beta.2 — 2026-09-09
- 11.0.0-beta.1 — 2026-09-03
- 11.0.0-beta.0 — 2026-09-02

## README

<p align="center">
  <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
    <img src="https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png" alt="Sentry" width="280" height="84">
  </a>
</p>

# Sentry Server Runtime Injection

[![npm version](https://img.shields.io/npm/v/@sentry/server-runtime-injection.svg)](https://www.npmjs.com/package/@sentry/server-runtime-injection)

Runtime instrumentation for Sentry’s JavaScript server SDKs.

> [!NOTE]
> This package is an internal library published for use by Sentry-owned JavaScript SDK packages. It is not part of the
> public API contract and may change in any release. Do not rely on SemVer compatibility if you depend on it directly.

> **Important:** this package must be kept **external** (not bundled) when bundling a server. Its
> runtime hook loads a transformer that self-references its own on-disk `node_modules` location;
> bundling it strips the transformer and breaks that self-reference. When you bundle your server,
> either keep `@sentry/server-runtime-injection` external, or rely on the build-time instrumentation
> from the Sentry bundler plugins instead.

## Documentation

- [JavaScript SDK documentation](https://docs.sentry.io/platforms/javascript/)

## Support

- [Report a bug](https://github.com/getsentry/sentry-javascript/issues/new/choose)
- [Contributing](https://github.com/getsentry/sentry-javascript/blob/develop/CONTRIBUTING.md)

---
_Source: https://npm.io/package/@sentry/server-runtime-injection · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
