Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
angular-model-factory
Advanced tools
modelFactory makes working with RESTful APIs in AngularJS easy
A light-weight model layer that bridges the gap between AngularJS and your RESTful APIs.
Why would you use this over other available solutions?
$http
configuration option, all your interceptors still work, it uses Angular's cache, etc!See wiki for documentation.
After doing quite a bit of research before writing this, I took a look at other solutions. Here is what I found and why I wrote my own.
Restmod Very nice solution but very opinionated and hyper-active. 22kb min
Modelizer Good but requires Lodash. 23kb min
ModelCore Good but not very well tested and not active.
angular-watch-resource - Really only handles collections
angular-restful - Very basic but nice
ngResource Out of the box model layer, very limited.
angularjs-rails-resource Too rails-ish.
angular-nested-resource - Okay API, not loving the nested architecture.
Aar.js Very light, not sure what value this adds.
Angular Activerecord A copy of BackboneModel but doesn't really work with Angular patterns.
Angular-Data Not really a model layer but a data store. Very very heavy ( 67kb min )
ngActiveResource Very ruby-ish api. Requires lodash. Has validation but thats not needed in angular if you do it right.
restangular I don't consider this a model layer; it feels moore like a fancy http layer that returns promises because everyone complains about ngResource not doing it. It requires underscore.
BreezeJS This is a very full featured model/cache/validation etc. Its framework agnostic, which means it follows its own patterns and not angulars. Its very heavy, requires server data massaging, and the API looks like Microsoft Entity Framework.
ng-backbone Another backbone model clone. This one actually requires backbone and lodash.
Install via bower:
$ bower install angular-model-factory --save
Install via npm:
$ npm install angular-model-factory --save
Alternatively you can download/clone the repo and link the files in dist/
.
Libraries like this live and get better with an active community. Have something to contribute? We'd love to see it. Just head over to our contribution guidelines.
angular-model-factory
is a Swimlane open-source project; we believe in giving back to the open-source community by sharing some of the projects we build for our application. Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.
FAQs
modelFactory makes working with RESTful APIs in AngularJS easy
The npm package angular-model-factory receives a total of 1 weekly downloads. As such, angular-model-factory popularity was classified as not popular.
We found that angular-model-factory 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.