
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@notifi-network/notifi-react-wallet-target-plugin
Advanced tools
The Wallet Target Plugin context provider for @notifi-network/notifi-react
A plugin for @notifi-network/notifi-react that enables advanced wallet-based notification targets.
This package provides the NotifiContextProviderWithWalletTargetPlugin context component, allowing seamless integration of Wallet Target functionality into Notifi’s React context system. By utilizing the toggleTargetAvailability.wallet prop within NotifiTargetContext, you can dynamically enable or disable wallet-based targeting at runtime and leverage the plugin’s capabilities.
This package is a plugin for @notifi-network/notifi-react and cannot be used independently. Ensure that you have @notifi-network/notifi-react installed before integrating this plugin.
notifi-react, ensuring minimal changes when integrating.NotifiContextProvider, adding a specialized layer for detecting and handling Wallet Target contexts.Below is a minimal example demonstrating how to replace the standard Notifi provider with the plugin-based provider:
import { NotifiContextProviderWithWalletTargetPlugin } from '@notifi-network/notifi-react-wallet-target-plugin';
import React from 'react';
function App() {
return (
<NotifiContextProviderWithWalletTargetPlugin
/* Same props as NotifiContextProvider */
>
{/* Include Notifi features like NotifiCardModal or custom forms here */}
{children}
</NotifiContextProviderWithWalletTargetPlugin>
);
}
export default App;
When toggleTargetAvailability.wallet is set to true, the plugin enables wallet-specific notification targets (e.g., Coinbase). To utilize this functionality, ensure your app is wrapped with NotifiContextProviderWithWalletTargetPlugin instead of the standard NotifiContextProvider when wallet targeting is required.
This plugin is powered by @xmtp-react-sdk, which requires requires specific configuration to handle the wasm file.
The following configuration is required in nextjs (the recommended framework).
Nextjs version 14.2.0 or above
nextConfig = {
experimental: {
serverComponentsExternalPackages: [
'@xmtp/user-preferences-bindings-wasm',
],
},
};
// ...other configs
Nextjs version below 14.2.0
It requires manual copy of the wasm file to the server chunk folder. We will need to grab the user_preferences_bindings_wasm_bg.wasm file from @xmtp/user-preferences-bindings-wasm
npm package: Code > dist > bundler > user_preferences_bindings_wasm_bg.wasm. And put it in the public/wasm directory. Then add the following configuration in the next.config.js file.
nextConfig = {
...nextConfig,
webpack: (config) => {
config.plugins.push(
new CopyPlugin({
patterns: [{ from: 'public/wasm', to: './server/chunks' }],
}),
);
return config;
},
};
// ...other configs
The projects might encounter the following error if the above configuration is not set up properly.
Error: ENOENT: no such file or directory, open '/path/to/project/.next/server/vendor-chunks/user_preferences_bindings_wasm_bg.wasm'
Reference:
Instead of using NotifiContextProviderWithWalletTargetPlugin, which wraps NotifiContextProvider, you can use NotifiWalletTargetContext independently. This is useful when integrating NotifiWalletTargetContext into a different part of your app or pairing it with another context provider.
import { NotifiTargetContextProvider } from '@notifi-network/notifi-react';
import { NotifiWalletTargetContext } from '@notifi-network/notifi-react-wallet-target-plugin';
// ... other imports
function App() {
return (
<NotifiWalletTargetContext {...props}>
<NotifiTargetContextProvider toggleTargetAvailability={{ wallet: true }}>
{/* Add Notifi components like NotifiCardModal or custom forms here */}
{children}
</NotifiTargetContextProvider>
</NotifiWalletTargetContext>
);
}
This approach gives you more flexibility in managing notification contexts within your application.
FAQs
The Wallet Target Plugin context provider for @notifi-network/notifi-react
We found that @notifi-network/notifi-react-wallet-target-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.