
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.

A nodejs client library for (Get) Event Store
Want to help out? Check out a waiting issue
This client assumes that you already have an Event Store instance running.
Install
$ npm install ges-client
Append and read from an event stream
var ges = require('ges-client')
// 1) Create a connection to a running EventStore
// using default connection options and credentials
var connection = ges()
, stream = 'intro-events'
// 2) Append events that can be read
connection.on('connect', function() {
var appendData = {
expectedVersion: ges.expectedVersion.emptyStream
, events: [array of events]
}
connection.appendToStream(stream, appendData, function(err, appendResult) {
if(err) return console.log('Ooops!', err) // connection error
// 3) Read first events from the stream
connection.readStreamEventsForward(stream, { start: 0, count: 1 }, function(err, readResult) {
if(err) return console.log('Ooops!', err) // connection error or stream does not exist
// ta da!
console.log(readResult.Events)
})
})
})
Subscribe to stream updates
var ges = require('ges-client')
// 1) Create a connection to a running EventStore
// using default connection options and credentials
var connection = ges()
, stream = 'intro-events'
// 2) Create a subscription
connection.on('connect', function() {
var subscription = connection.subscribeToStream(stream)
// 3) Listen for events
subscription.on('event', function(evt) {
// ta da!
console.log(evt)
})
var appendData = {
expectedVersion: ges.expectedVersion.emptyStream
, events: [array of events]
}
connection.appendToStream(stream, appendData, function(err, appendResult) {
if(err) return console.log('Ooops!', err) // connection error
})
})
Copyright (c) 2014 Brian Mavity.
ges-client is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.
Special thanks to Ken Pratt for writing the first version of this over at https://github.com/kenpratt/nodejs-EventStore . It made early development go by much faster.
FAQs
(Get) EventStore Client
We found that ges-client 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.