Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Native Node.js C++ extension for displaying desktop notifications using GNOME's libnotify (libnotifymm) library.
C++ Python JavaScript
branch: master

Merge pull request #4 from freehaha/gyp

use node-gyp and libnotify
latest commit 1e2e1ae99e
@olalonde authored
Failed to load latest commit information.
build initial commit, minimal functionnality
demo packaged for node.js
src use node-gyp and libnotify instead of libnotifymm
.gitignore cleaned up inline documentation
LICENSE initial commit, minimal functionnality update README, adding examples for specifying timeouts Edited via GitHub
binding.gyp use node-gyp and libnotify instead of libnotifymm
package.json use node-gyp and libnotify instead of libnotifymm
wscript initial commit, minimal functionnality

Tutorial available here: How to write your own native Node.js extension or in

This is a follow up to How to roll out your own Javascript API with V8.


Dependencies(Debian, Ubuntu):

sudo apt-get install libnotify-dev

Using npm:

npm install notify


node-gyp configure && node-gyp build


var notify = require("notify"); // or "../build/Release/gtknotify.node" if you build manually
var notification = new notify.notification();
notification.title = "Notification title";
notification.icon = "emblem-default"; // see /usr/share/icons/gnome/16x16
notification.send("Notification message"); // using libnotify's default timeout

To send notification with a timeout:

notification.send("Notification message", 3000); // 3 sec timeout
// or
notification.send("Notification message", 0); // lasts forever
notification.close(); // closes it


Something went wrong with that request. Please try again.