
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
NotifyOn SDK for Node.js - Send browser notifications when long-running tasks complete
Send real-time browser and push notifications to your users when long-running agent tasks complete.
npm install notifyon
# or
yarn add notifyon
# or
pnpm add notifyon
import { NotifyOn } from 'notifyon';
// Initialize the client
const notifyon = new NotifyOn({
apiKey: process.env.NOTIFYON_API_KEY
});
// That's it! Just send a notification when your agent task completes
await notifyon.send('user_123');
// Optionally, you can include a custom message
await notifyon.send('user_123', 'Your data analysis is complete');
NotifyOn uses a progressive notification strategy that automatically handles channel selection:
No configuration needed! Users are automatically set up with sensible defaults when you first call send().
new NotifyOn(config)Creates a new NotifyOn client instance.
Parameters:
config.apiKey (required): Your NotifyOn API keyconfig.baseUrl (optional): Custom API endpoint (defaults to https://dashboard.notifyon.app/v1)notifyon.send(userId, message?)Send a notification to a user when their task completes.
Parameters:
userId: External user identifiermessage (optional): Custom notification messageReturns: Promise<void>
// Simple notification
await notifyon.send('user_123');
// With custom message
await notifyon.send('user_123', 'Your report is ready for download');
notifyon.set(userId, preferences)Optional method - Only use if you need to manually control channel preferences.
By default, browser and push are enabled automatically. Use this method only to:
Parameters:
userId: External user identifierpreferences: Object containing channel preferences
browser: Enable/disable browser sound notificationspush: Enable/disable push notificationsemail: Enable/disable email notifications (future)slack: Enable/disable Slack notifications (future)Returns: Promise<void>
// Example: User disabled push notifications in their settings
await notifyon.set('user_123', { push: false });
// Example: User wants only browser sounds
await notifyon.set('user_123', { browser: true, push: false });
The SDK throws NotifyOnError for API errors:
import { NotifyOn, NotifyOnError } from 'notifyon';
try {
await notifyon.send('user_123');
} catch (error) {
if (error instanceof NotifyOnError) {
console.error('NotifyOn Error:', error.message);
console.error('Status Code:', error.statusCode);
console.error('Error Code:', error.code);
}
}
The SDK is written in TypeScript and provides full type definitions:
import { NotifyOn, NotifyOnConfig, NotificationPreferences } from 'notifyon';
const config: NotifyOnConfig = {
apiKey: 'your-api-key'
};
// Optional: Only if you need manual control
const preferences: NotificationPreferences = {
browser: true,
push: false,
email: false,
slack: false
};
To receive notifications in the browser, include the NotifyOn browser SDK in your web application:
// In your web app
import { NotifyOn } from '@notifyon/web';
const client = new NotifyOn({
publicKey: 'your-public-key',
userId: 'user_123'
});
// Connect to receive notifications
await client.connect();
The browser SDK will:
MIT
FAQs
NotifyOn SDK for Node.js - Send browser notifications when long-running tasks complete
We found that notifyon demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.