
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
backbone-http
Advanced tools
BackboneHTTP provides an HTTP interface that can be used in the browser or from Node.js.
This allows for a iteration of remote collections from the browser using BackboneORM's unified query syntax and iteration methods.
class Project extends Backbone.Model
urlRoot: '/projects'
sync: require('backbone-http').sync(Project)
# Find all items with is_active = true
Project.find {is_active: true}, (err, projects) ->
# Iterate through all items with is_active = true in batches of 200
Project.each {is_active: true, $each: {fetch: 200}},
((project, callback) -> ),
(err) -> console.log 'Done'
# Stream all items with is_active = true in batches of 200
Project.stream({is_active: true, $each: {fetch: 200}})
.pipe(new ModelStringifier())
.on('finish', -> console.log 'Done')
var Project = Backbone.Model.extend({
urlRoot: '/projects'
});
Project.prototype.sync = require('backbone-http').sync(Project);
// Find all items with is_active = true
Project.find({is_active: true}, function(err, projects) {});
// Iterate through all items with is_active = true in batches of 200
Project.each({is_active: true, $each: {fetch: 200}},
function(project, callback) {},
function(err) {return console.log('Done');}
);
// Stream all items with is_active = true in batches of 200
Project.stream({is_active: true, $each: {fetch: 200}})
.pipe(new ModelStringifier())
.on('finish', function() {return console.log('Done');});
Please checkout the website for installation instructions, examples, documentation, and community!
To build the library for Node.js and browsers:
$ gulp build
Please run tests before submitting a pull request:
$ gulp test --quick
and eventually all tests:
$ npm test
FAQs
An HTTP interface for BackboneORM
The npm package backbone-http receives a total of 32 weekly downloads. As such, backbone-http popularity was classified as not popular.
We found that backbone-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.