node.js

Events happening in the community are now at Drupal community events on www.drupal.org.
This group should probably have more organizers. See documentation on this recommendation.

Node.js is a relatively new server-side technology that allows real-time web services, and other TCP/IP applications, to be written in Javascript. Unlike PHP, in which logic can be "blocked" waiting for I/O resources to become available, node.js logic runs "asynchronously", with logic executed seemingly in parallel. Applications like real-time chat are trivial in node.js. This working group aims to explore how node.js can be leveraged to provide real-time services that integrate with Drupal sites.

ggevalt's picture

Any node.js experts out there who could help us?

Hi,

I run a small nonprofit in Vermont dedicated to helping kids learn how to express themselves well. We are nearing completion of the beta version of our new teen writing community and have one last hope and wish: That we can make Statuses (Facebook-style Statuses in D6) refresh in real time on both ends of the spectrum -- author and reader.

Read more
ahmedchebil's picture

Real Time filelds update in a node

Hello,
Any good hint or tutorial to refresh fields on node if an admin updated it ? I think it is possible with nodejs but no idea where to start, sucessfully installed nodejs on a debian machine with drupal etc.. but no idea for the rest of steps.
Thanks in advance.

Read more
playfulwolf's picture

CamanJS or any other image manipulation integration as alternative to GD, Image Magick?

Currently working on project where there will be some heavy image uploads. Got curious about alternatives in image processing as CamanJS. Leaving aside any of the browser-end capabilities. The scenario is 1 to 20 0.5-10MB raster images uploaded by user, no batch jobs, lets assume. On the whole - nothing of extra ordinary for current standard tools not to handle but it is never bad to broaden horizon.

  1. Performance. node.js + CamanJS (or any similar) vs GD/ImgeMagick on server - theoretically what performance could be expected? Similar? 20-50% difference? Massive improvement?
Read more
minoroffense's picture

Using nodejs with Drupal's server side text formats

We're investigating using epic editor for a client site with Markdown. One of the options with epic is to override the markdown processing callback with your own.

To ensure that the live preview of the editor reflects what drupal would generate we were thinking of linking the javascript callback in epic to node and subsequently to Drupal's text formatters.

Has anyone tried something similar before? I'm curious what kind of performance we'll get or issues by calling back to drupal so often while folks are typing.

Read more
kscheirer's picture

Node.js newbie

I'm just getting started with node.js, and I'm hoping you guys can point e in the right direction.

I want to be able to log in to my Drupal site, what kind of add on do I need for this (if any). When using PHP's curl, you're able to post to a login form and then keep the cookie for future requests - which lets you interact with your site as an authenticated user.

Thanks in advance for any advice,
-ks

Read more
markwk's picture

Node.js Hosting?

Anybody tried any of the various node.js hosting providers out there? I know it's easy to get node.js setup on linux os but I hate micro-managing servers anymore so I'm keen to get some solid node.js specific hosting for node.js api module.

I tried joyent's https://no.de awhile back but had some issues there. Anyone successful getting one of these working with the current code?

Read more
markwk's picture

Node.js with BOA

Has anyone gotten node.js to play nicely with BOA recently? I got this working about 6 months ago (BOA site with a separate node.js server connecting) but trying again now and seems to be some funky issue. I might be missing something small but as far as I can tell messages are not being sent to node.js OR they are being sent really slowly. There seems to be something catching on the server perhaps. Maybe I need to disable caching or something.

Just wanted to check if anyone else had any tips here. Thanks...

Read more
adammalone's picture

Nodejs to update text in block

This might seem like a simple issue however I'm trying to get a module to change the content of a block whenever it receives a listening event from the server. I've got my listener set up and that works fine as I've called the nodejs function which pushes it to users and that works. However I'm a bit at a loss as to how I can replace block content.

in short
Event listener works
want to replace block content upon event

Read more
Anonymous's picture

First alpha release of Chatroom 7.x-2.x

This is the first release that is integrated with and relies on Node.js module.

There are many more features to add, but this alpha opens up an exciting new world for Chatroom module.

Bug reports, feature requests and co-maintainers welcome!

https://drupal.org/node/1457150

Read more
Anonymous's picture

First release candidate of Node.js module now available

The first release candidate of the Node.js module is ready to go!

Please kick the tires and help me find any release blocker bugs before I pull the trigger on 1.0 in a week or so.

https://drupal.org/node/1457138

Read more
olav's picture

Redis alternative to node.js as publish/subscribe server?

Hi, I've just briefly read through server.js. It basically implements a publish/subscribe server, right?

I wonder if somebody has compared this custom Javascript code to what dedicated publish/subscribe servers might do out of the box. Particularly, I think of Redis and its pub/sub capabilities. Redis can do other things as well, like persistence and replication so it might be well worth looking at it not just as an alternative to Memcache.

Both of these engines may even be made swappable by standardizing on an API between Drupal and the pub/sub server.

Just my 2¢ on this fascinating new stuff.

-- Olav

Read more
manuelBS's picture

Node JS Server other than Drupal server

Hey, i have my first steps with node.js and drupal. At first, I have installed Node.js on an ubuntu 10.11 Server. Drupal with Apache runs in another Server. Now I have no idea how to install the application to get node.js work.
What I understand is to have a directory on the node.js server where I put the server.js in. Now if i try to start the node.js server with

cd /var/node/server  //the server.js is in here
node server.js

But that throws an exception saying "Error: Cannot find module 'express'"

Read more
digodrupal's picture

How to seach text from .txt file

i need this help on drupal.

i have a text file and file name is C:\wamp\www\mysite\sites\default\files\abc.txt. in this file is;

aaaaa bbb
ccccc ddd
eeeee fffff

if i type aaaa in the search box and hits enter means the output should come with the node containing the word aaaa and this this text document also.

This will be shown in search output

is there any module available for that?

thanks.

Read more
markwk's picture

Node.js Hosting?

So, I've gotten node working locally so now it's time to push it on to a server. I don't really want to mix it with the server that's running my sites fine, so what should I do for a node.js server with Drupal in mind?

Read more
Anonymous's picture

Node.js module 1.0 plans

i'm planning to release node.js module as a 1.0 in the next 4 weeks or so.

soooo, i'm doing some of the 'really should be fixed before 1.0' tasks. this includes:

  • moving a bunch of stupidly-hard-coded url settings from server.js into nodejs.config.js, and documenting them all in nodejs.config.example.js
  • properly prepending a basePath to all http methods so auth will work as expected for non-default urls
  • not allowing server.js to run with a blank serviceKey by default
  • renaming 'backendSettings' to 'settings'
  • getting rid of references to 'Drupal'
Read more
markwk's picture

Embedding a Node.js App within Drupal?

I posted this idea in the drupal-ed group: http://groups.drupal.org/node/174849 Basically, I've built an integration that allow video chat to come to groups rather easily but I'm still missing text chat. Drupal Chat Room just isn't a very good solution considering what node.js is capable of.

I'm a totally node.js noob. So my question is this: how can I integrate/embed a node.js chat app within drupal (specifically Drupal 6)?

Read more
Anonymous's picture

Nodejs.module Drupal 6 branch

Thanks to the efforts of julien, we now have a Drupal 6 port of the Nodejs module.

It still needs work, so anyone who asked for a D6 port is invited to get the code and test it! Bug reports and patches welcome.

Read more
Anonymous's picture

Node.js code sprint

Start: 
2011-04-24 (All day) Australia/Sydney
Organizers: 
Event type: 
User group meeting

Node.js code sprint! You know you want one! Below is a (by no means) complete list of things we want to hack on:

  • Improving the settings pages
  • Improving documentation
  • Making sockets writeable from client connections as well as from Drupal
  • Adding Node.js integration to existing Drupal modules
  • Working on Node.js server extension code
  • Your idea here!

The tentative date for the sprint is Sunday, April 24th.

Read more
Anonymous's picture

Chatroom port to D7 under way

the drupal 7 port of the chatroom module is under way:

http://drupal.org/node/904006#comment-4329664

please follow that issue if you can help with code or testing.

this port will lay the basis for integrating node.js as a backend for chatroom.

Read more
Anonymous's picture

Nodjs.module alpha4 released

Hot off the press:

http://drupal.org/node/1100868

What else do people want to see before we start considering beta tags?

Read more
Subscribe with RSS Syndicate content

node.js

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: