> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# NPM package overview

> Install the median-js-bridge npm package to use the JavaScript Bridge in React, Angular, Vue.js, and other single-page apps.

## Median JavaScript Bridge NPM package

Simplify the integration of your Single-Page Applications (SPAs) with the Median JavaScript Bridge NPM package. Designed to work across popular JavaScript frameworks such as React, Angular, Vue.js, and more, this framework-agnostic library simplifies the use of Median JavaScript Bridge methods in your web apps.

Follow the steps below to install the package and start using within your web app.

**Explore our GitHub repository**

**Explore the package on NPM**

[https://www.npmjs.com/package/median-js-bridge](https://www.npmjs.com/package/median-js-bridge)

## Implementation guide

### App configuration

When utilizing the Median JavaScript Bridge NPM package in your web application, remember to enable the corresponding option in App Studio (*Web Overrides > JavaScript Frameworks and NPM*).

This step prevents conflicts with the native app's embedded JavaScript Bridge library and activates required listener support. Omitting the package while enabling the option may result in unresponsive JavaScript Bridge functions and callbacks.

![JavaScript Frameworks and NPM option under Website Overrides in App Studio](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/d7f408135a65f8292ed08fbf4c0268068f467c695400204ff97cc4d04a0a1879-Screenshot_2026-02-20_at_12.35.29.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=9f7b2b0c17f7094af1855ecc084069ea)

Median App Studio - JavaScript Frameworks and NPM

### Web app installation instructions

#### Using a package manager

Install the package with **npm** or **yarn**.

**With npm**:

```bash bash theme={null}
npm install median-js-bridge --save
```

**With yarn**

```bash bash theme={null}
yarn add median-js-bridge
```

#### Using a script tag

If you prefer to add the library directly to your web page, include the following script tag in your HTML:

```html HTML theme={null}
<script
  type="text/javascript"
  src="https://unpkg.com/median-js-bridge@latest/dist/median.min.js"
></script>
```

> [!WARNING]
>
> **Avoid @latest in production**
>
> When loading the library via a `<script>` tag, using **@latest** means you will receive every new release as soon as it is available. This can lead to unintended regressions in production as potential breaking changes are applied instantly.
>
> **Recommendation**: Pin to a specific version (e.g. @1.12.3) and upgrade deliberately.

## Next steps

After a successful installation of the package you can explore dedicated use cases and examples to implement callbacks, set up event listeners and implement optimized navigation for your SPA.

> [card] [Example commands](https://docs.median.co/docs/basic-usage.md)
>
> See implementation examples for common features across the app lifecycle,
> with integration steps for each.

> [card] [Using listeners](https://docs.median.co/docs/npm-package-usage-with-listeners.md)
>
> Register and manage listeners for app events such as deep links and push
> notifications.

> [card] [SPA navigation](https://docs.median.co/docs/npm-package-spa-navigation.md)
>
> Handle navigation in a single-page application (SPA) with the Median NPM
> package.


## Related topics

- [Getting started with Replit](https://docs.median.co/docs/getting-started-with-replit.md)
- [Getting started with Base44](https://docs.median.co/docs/getting-started-with-base44.md)
- [JavaScript Bridge overview](https://docs.median.co/docs/javascript-bridge.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.