
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
kuzzle-sdk
Advanced tools
This SDK version is compatible with Kuzzle 1.0.0-beta.1 and higher
For UI and linked objects developers, Kuzzle is an open-source solution that handles all the data management (CRUD, real-time storage, search, high-level features, etc).
You can access the Kuzzle repository on Github
The complete SDK documentation is available here
This SDK can be used either in NodeJS or in a browser.
npm install kuzzle-sdk --save
var
Kuzzle = require('kuzzle-sdk'),
kuzzle = new Kuzzle('http://foobar:7512');
var myDoc = {
name: 'Rick Astley',
birthDate: '1966/02/06',
mainActivity: 'Singer',
website: 'http://www.rickastley.co.uk',
comment: 'Never gonna give you up, never gonna let you down'
};
kuzzle
.dataCollectionFactory('music', 'people')
.createDocument(myDoc, function(error, response) {
if (error) {
// handle error...
}
/*
'response' is a KuzzleDocument object
*/
});
// In NodeJS version, you can also use Promise by suffixing functions with "Promise"
kuzzle
.dataCollectionFactory('music', 'people')
.createDocumentPromise(myDoc)
.then(response => {
/*
'response' is a KuzzleDocument object
*/
})
.catch(error => {
// handle error here
});
});
You can install this SDK with Bower.
bower install kuzzle-sdk --save
<!-- Don't forget to include socketio before kuzzle -->
<script type="text/javascript" src="bower_components/socket.io-client/socket.io.js"></script>
<script type="text/javascript" src="bower_components/kuzzle-sdk/dist/kuzzle.min.js"></script>
var
kuzzle = new Kuzzle('http://foobar:7512');
var myDoc = {
name: 'Rick Astley',
birthDate: '1966/02/06',
mainActivity: 'Singer',
website: 'http://www.rickastley.co.uk',
comment: 'Never gonna give you up, never gonna let you down'
};
kuzzle
.dataCollectionFactory('music', 'people')
.createDocument(myDoc, function(error, response) {
if (error) {
// handle error...
}
/*
'response' is a KuzzleDocument object
*/
});
Clone this github repository and run grunt
. A dist
directory will be created, containing a plain browserified version of this SDK, and a minified version.
FAQs
Official Javascript SDK for Kuzzle
The npm package kuzzle-sdk receives a total of 1,067 weekly downloads. As such, kuzzle-sdk popularity was classified as popular.
We found that kuzzle-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.