
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
NowPad adds realtime text collaboration to parts of your website such as textareas, allowing multiple people to work on the same document at the same time (while seeing each others changes as they are applied). The benefit of this over traditional collaborative editing is two people would be editing the same document, they've both made changes, one person saves, and the other has to make the choice "lose my changes, or lose his changes". Nowpad keeps and applies both your changes as they happen.
You can try it right now online with no installation right here
Install CoffeeScript
npm install -g coffee-script
Install NowPad
npm install -g nowpad
The default demo
nowpad # http://localhost:9572/
ACE Code Editor demo
nowpad ace # http://localhost:9572/
If for some reason the nowpad command doesn't work, use the following instead:
git clone git://github.com/balupton/nowpad.git
cd nowpad
coffee bin/nowpad.coffee # http://localhost:9572/
Server Side
# Include NowPad
nowpad = require 'nowpad'
# Setup with your Express Server
myNowpad = nowpad.createInstance server: yourExpressServer
# Create known documents
myNowpad.addDocument 'doc1', 'this is doc1'
myNowpad.addDocument 'doc2', 'this is doc2'
# Handle unknown document
# Fires when an unknown document is requested
myNowpad.requestDocument (documentId, callback) ->
# nowpad.addDocument documentId
# callback true
callback false
# Handle sync request
# Fires when a change is synced to the document
myNowpad.bind 'sync', (document, value) ->
# Handle disconnect request
# Fires when all the clients have disconnected from a document
myNowpad.bind 'disconnected', (document, value) ->
Client Side
Include Dependencies
<script src="/nowjs/now.js"></script>
<script src="/nowpad/nowpad.js"></script>
Using NowPad with a Textarea
// Without jQuery
window.nowpad.createInstance({
element: document.getElementById('myTextarea'),
documentId: 'doc1'
});
// Or With jQuery
$textarea = $('#myTextarea').nowpad('doc1');
Using NowPad with ACE
window.nowpad.createInstance({
element: ace.edit('pad'),
documentId: 'doc1'
});
v0.12 July 28, 2011
v0.11 May 20, 2011
v0.10 May 18, 2011
nowpad.addDocument(documentId,value) and nowpad.delDocument(documentId) and nowpad.requestDocument(requestHandler(documentId,next(added))) for extra securityv0.9 May 15, 2011
v0.8 April 29, 2011
v0.7 April 29, 2011
v0.6 April 26, 2011
v0.5 April 26, 2011
v0.4 April 25, 2011
v0.3 April 24, 2011
v0.2 April 24, 2011
v0.1 April 24, 2011
Licensed under the MIT License Copyright 2011 Benjamin Arthur Lupton
FAQs
Realtime Text Collaboration
We found that nowpad 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.