
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@podium/bridge
Advanced tools
This package is a bridge designed to pass [JSON-RPC 2.0](https://www.jsonrpc.org/specification) messages between a web application and a native web view.
@podium/bridgeThis package is a bridge designed to pass JSON-RPC 2.0 messages between a web application and a native web view.
To install:
npm install @podium/bridge
Import the bridge in your client-side bundle:
import '@podium/bridge';
You should probably send messages via @podium/browser. That said, the bridge is available on window['@podium'].bridge.
/** @type {import("@podium/bridge").PodiumBridge} */
const bridge = window['@podium'].bridge;
// You can listen for incoming messages, which can either be RpcRequest or RpcResponse
bridge.on('global/authentication', (message) => {
const request =
/** @type {import("@podium/bridge").RpcRequest<{ token?: string }>} */ (
message
);
if (typeof request.token === 'string') {
// logged in
} else {
// logged out
}
});
// You can trigger notifications (one-way messages)
bridge.notification({
method: 'global/authentication',
params: { token: null },
});
// And you can call methods and await the response
/** @type {import("@podium/bridge").RpcResponse<{ c: string }>} */
const response = await bridge.call({
method: 'document/native-feature',
params: { a: 'foo', b: 'bar' },
});
bridge.onAdd a listener for incoming messages for a given method name.
import '@podium/bridge';
/** @type {import("@podium/bridge").PodiumBridge} */
const bridge = window['@podium'].bridge;
bridge.on('global/authentication', (message) => {
const request =
/** @type {import("@podium/bridge").RpcRequest<{ token?: string }>} */ (
message
);
if (typeof request.token === 'string') {
// logged in
} else {
// logged out
}
});
bridge.notificationSend a notification (one-way message).
import '@podium/bridge';
/** @type {import("@podium/bridge").PodiumBridge} */
const bridge = window['@podium'].bridge;
bridge.notification({
method: 'global/authentication',
params: { token: null },
});
bridge.callSend a request and await a response.
import '@podium/bridge';
/** @type {import("@podium/bridge").PodiumBridge} */
const bridge = window['@podium'].bridge;
/** @type {import("@podium/bridge").RpcResponse<{ c: string }>} */
const response = await bridge.call({
method: 'document/native-feature',
params: { a: 'foo', b: 'bar' },
});
FAQs
This package is a bridge designed to pass [JSON-RPC 2.0](https://www.jsonrpc.org/specification) messages between a web application and a native web view.
The npm package @podium/bridge receives a total of 69 weekly downloads. As such, @podium/bridge popularity was classified as not popular.
We found that @podium/bridge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.