scripting / sendToSlack.js – a small node.js app that posts to Slack.

A tiny JavaScript app that sends a message to your default Slack channel. Can be customized with a name, icon, emoji or sent to a different channel. Runs in Node.js.


var request = require ("request");
var urlWebHook = "https://hooks.slack.com/services/abcdef"; //the URL you get on your "incoming web hooks" page.
function sendToSlack (s, theUsername, theIconUrl, theIconEmoji, theChannel) {
var payload = {
text: s
};
if (theUsername !== undefined) {
payload.username = theUsername;
}
if (theIconUrl !== undefined) {
payload.icon_url = theIconUrl;
}
if (theIconEmoji !== undefined) {
payload.icon_emoji = theIconEmoji;
}
if (theChannel !== undefined) {
payload.channel = theChannel;
}
var theRequest = {
url: urlWebHook,
method: "POST",
json: payload
};
request (theRequest, function (error, response, body) {
if (!error && (response.statusCode == 200)) {
console.log ("sendToSlack: " + s);
}
else {
console.log ("sendToSlack: error, code == " + response.statusCode + ", " + response.body + ".\n");
}
});
}
sendToSlack ("Hello World");

view raw

sendToSlack.js

hosted with ❤ by GitHub

Scrollback, an open source alternative to Slack

Nurture your community with meaningful conversations.
Create rooms based on your interest or follow existing ones.
Share ideas, discuss realtime and redefine your online community experience with Scrollback.

via Scrollback, where communities hang out.

While relatively new and still adding features, Scrollback is the closest thing I’ve seen to to open source Slack. Once running it’s eady for folks to join and start participating right away. This is a project worth keeping an eye on. The code is on GitHub at   https://github.com/scrollback/scrollback.

Written mostly in Javascript it requires Node.js, Postgres, and Redis to run.

Unhangout From MIT Media Lab Seeks to Harness Google Hangouts For Large Live Events

Unhangout is an open source platform for running large scale online un-conference-style events using Google Hangoutsto create many simultaneous small sessions. Think of it like a classroom with infinitely many breakout rooms. We provide a text-based chat experience that can support hundreds of participants chatting or watching a live video stream together. When you want to create more opportunity for participation, you can break out into up-to-ten person Google Hangout sessions that create opportunities for peer learning instead of just top-down information transfer that is typical in large scale online education.

via Unhangout.

This is worth keeping an eye, especially if it manages to tame the wild world of Google APIs a bit to make Hangouts more useful for real events. Unhangout is written in Javascript and is powered by node.js and Redis. You can get the code for this open source project on GitHub at https://github.com/drewww/unhangout.

 

AWS SDK Now Available For Node.js

The General Availability (GA) release of the AWS SDK for Node.js is now available and can be installed through npm as aws-sdk. We have added a number of features since the preview release including bound parameters, streams, IAM roles for EC2 instances, version locking, and proxies.

via Amazon Web Services Blog: AWS SDK for Node.js – Now Generally Available.

With the availability of the AWS SDK for node.js it is now possible to do things like add S3 storage functionality directly into your node.js app. Adding features of AWS to the real time interactivity of node.js will just make it more attractive as a platform.