
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.
light-notifier
Advanced tools
A modern alternative to Notistack (or similar).
// Import in your index.js/ts
import { Notifier } from 'light-notifier'
new Notifier()
// Somewhere in your code
import { UiNotification } from 'light-notifier'
new UiNotification()
.setMessage('Default notification')
.show()
// That's all 😎
// The notifier itself
import { Notifier } from 'light-notifier'
// Default alignment: vertical = bottom, horizontal = right
// top-left
new Notifier().alignToTop().alignToLeft()
// top-right
new Notifier().alignToTop()
// bottom-left
new Notifier().alignToLeft()
// top-left with auto-hide
new Notifier()
.alignToTop()
.alignToLeft()
.setAutoHideDurationInMs(3000)
// The Notification
import { UiNotification } from 'light-notifier'
new UiNotification()
.canvas() // Canvas color
.success() // Success color
.warning() // Warning color
.error() // Error color
.setMessage('Notification text')
.setAutoHideDurationInMs(3000) // takes precedence over Notifier.setAutoHideDurationInMs
.show()
.hide()
/* Somewhere in your css */
.ui-notification {
/* Customize me */
&.warning { }
&.error { }
&.success { }
&.closable {
/* Has an pseudo close button */
&:after {
/* Apply icon styles here */
}
}
}
It's a bad practice, but anyway
// Somewhere in your d.ts
declare global {
interface Window {
UiNotification: UiNotification
}
}
// In your index.js
Reflect.set(window, 'UiNotification', UiNotification)
// Anywhere in your code
new UiNotification()
.setMessage('I am available in global context')
You can open an issue, or vote for an existing one about adding an icon and a title for notification, similar to Notification
FAQs
A simple ui notifier
We found that light-notifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.