Socket
Book a DemoInstallSign in
Socket

@metamask/notification-services-controller

Package Overview
Dependencies
Maintainers
9
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/notification-services-controller

Manages New MetaMask decentralized Notification system

17.0.0
latest
Source
npmnpm
Version published
Weekly downloads
49K
48.04%
Maintainers
9
Weekly downloads
 
Created
Source

@metamask/notification-services-controller

Manages the notification and push notification services used in MetaMask. This includes:

  • Wallet Notifications
  • Feature Announcements
  • Snap Notifications

Installation

yarn add @metamask/notification-services-controller

or

npm install @metamask/notification-services-controller

Usage

This package uses subpath exports, which helps to minimize the amount of code you need to import. It also helps to keep specific modules isolated and can be used to import specific code (e.g., mocks or platform-specific code). You can see all the exports in the package.json, but here are a few examples:

Importing specific controllers/modules:

// Import the NotificationServicesController and its associated types/utilities.
import { ... } from '@metamask/notification-services-controller/notification-services'

// Import the NotificationServicesPushController and its associated types/utilities.
import { ... } from '@metamask/notification-services-controller/push-services'

Importing mock creation functions:

// Import and use mock creation functions (designed to mirror the actual types).
// Useful for testing or Storybook development.
import { ... } from '@metamask/notification-services-controller/notification-services/mocks'
import { ... } from '@metamask/notification-services-controller/push-services/mocks'

Importing platform specific code:

// Some controllers provide interfaces for injecting platform-specific code, tailored to different clients (e.g., web or mobile).
import { ... } from '@metamask/notification-services-controller/push-services/web'

Contributing

This package is part of a monorepo. Instructions for contributing can be found in the monorepo README.

Keywords

MetaMask

FAQs

Package last updated on 20 Aug 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.