{"id":21916382,"url":"https://github.com/dsheiko/ng-backbone","last_synced_at":"2025-10-11T06:39:21.263Z","repository":{"id":58237869,"uuid":"65743940","full_name":"dsheiko/ng-backbone","owner":"dsheiko","description":"⛔️ [DEPRECATED] a small extension of Backbone.js that unlocks Angular-like programming experience","archived":false,"fork":false,"pushed_at":"2021-05-07T10:08:25.000Z","size":2345,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-06T16:57:29.794Z","etag":null,"topics":["backbone","binding","component-architecture","deprecated","obsolete","typescript"],"latest_commit_sha":null,"homepage":"https://dsheiko.github.io/ng-backbone/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsheiko.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-15T15:41:49.000Z","updated_at":"2021-05-07T10:08:27.000Z","dependencies_parsed_at":"2022-08-31T00:30:25.466Z","dependency_job_id":null,"html_url":"https://github.com/dsheiko/ng-backbone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dsheiko/ng-backbone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsheiko%2Fng-backbone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsheiko%2Fng-backbone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsheiko%2Fng-backbone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsheiko%2Fng-backbone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsheiko","download_url":"https://codeload.github.com/dsheiko/ng-backbone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsheiko%2Fng-backbone/sbom","scorecard":{"id":357728,"data":{"date":"2025-08-11","repo":{"name":"github.com/dsheiko/ng-backbone","commit":"d7544daaf66314d5e0615b1f566f74bf927b26ef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: npmCommand not pinned by hash: update.sh:6","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T10:02:49.516Z","repository_id":58237869,"created_at":"2025-08-18T10:02:49.516Z","updated_at":"2025-08-18T10:02:49.516Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003255,"owners_count":26083555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backbone","binding","component-architecture","deprecated","obsolete","typescript"],"created_at":"2024-11-28T19:17:44.028Z","updated_at":"2025-10-11T06:39:21.248Z","avatar_url":"https://github.com/dsheiko.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![ngBackbone 1.0](./ng-backbone.png)\n\n[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)\n\n\u003e WARNING - THIS PROJECT IS NO LONGER MAINTAINED!!!\n\n[![NPM](https://nodei.co/npm/ng-backbone.png)](https://nodei.co/npm/ng-backbone/)\n\n[![Build Status](https://travis-ci.org/dsheiko/ng-backbone.png)](https://travis-ci.org/dsheiko/ng-backbone)\n[![Join the chat at https://gitter.im/dsheiko/ng-backbone](https://badges.gitter.im/dsheiko/ng-backbone.svg)](https://gitter.im/dsheiko/ng-backbone?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n\n`ngBackbone` is a framework on top of [Backbone.js](http://backbonejs.org/) that unlocks Angular2-like programming experience\n\nWell, I love old good Backbone for its simplicity and flexibility. However after working with such frameworks as Angular and React, I see that Backbone app requires much more code. Yet I don't want to ditch Backbone and deal with some 20K LOC framework codebase. I just want a minimal modular extension that will improve my programming experience and maintainability of my code.\nAnd that is how I came up with `ngBackbone`\n\n\u003ca href=\"https://www.gitbook.com/book/dsheiko/ng-backbone/\"\u003e\u003cimg src=\"./doc/ng-backbone-book.png\" alt=\"Read ngBackbone.Book\" /\u003e\u003c/a\u003e\n\n## Motivation\n* Angular inspired live templates via [ngTemplate](https://github.com/dsheiko/ng-template)\n* Separation of declarative (@Component + template) and imperative programming\n* [1-way](https://dsheiko.gitbooks.io/ng-backbone/content/data_binding.html) and [2-way](https://dsheiko.gitbooks.io/ng-backbone/content/formview.html) binding\n* [Testable views](https://dsheiko.gitbooks.io/ng-backbone/content/testing_components.html)\n* [Control over nested views](https://dsheiko.gitbooks.io/ng-backbone/content/nesting_components.html)\n* [Asynchronous form validators](https://dsheiko.gitbooks.io/ng-backbone/content/formview.html) (e.g. server-side validation)\n* Debauncable form validators\n* Fluent TypeScript programming experience\n\n\n## What does it do?\n\n`ngBackbone` extends the base with:\n\n* @Component decorator encapsulates declarative from imperative part of the view\n* View module binds specified models/collections to the view template (makes the template reacting on data events)\n* FormView creates state models for controls per a specified group and binds them to input/change event. FormView keeps these models in sync with [element ValidityState](https://www.w3.org/TR/html5/forms.html#the-constraint-validation-api) and can run custom validators on input events.\n\n\n`Ng.Backbone` does not depend on jQuery or Underscore, meaning you can use on an optimized build of Backbone. For example,\nmy preferred  build consists of [Exoskeleton](https://github.com/paulmillr/exoskeleton) (Backbone decoupled from Underscore), [Backbone.NativeView](https://github.com/akre54/Backbone.NativeView) (Backbone View decoupled from jQuery) and\n[Backbone.Fetch](https://github.com/akre54/Backbone.Fetch) (Backbone.sync leveraging Feth API instead of XHR)\nThough `Ng.Backbone` works fine with canonical Backbone bundle (Backbone + jQuery + Underscore)\n\n## What does it look like?\n\n\n```javascript\nimport { Component, FormView } from \"backbone-ng\";\nimport { HeroPowers } from \"./Collection/HeroPowers\";\n\n@Component({\n  el: \"ng-hero\",\n  events: {\n    \"submit form\": \"onSubmitForm\"\n  },\n  collections: {\n    powers: new HeroPowers()\n  },\n  template: `\n    \u003cform data-ng-group=\"hero\"\u003e\n      \u003cdiv class=\"form-group\"\u003e\n        \u003clabel for=\"name\"\u003eName\u003c/label\u003e\n        \u003cinput id=\"name\" name=\"name\" type=\"text\" class=\"form-control\" required \u003e\n        \u003cdiv class=\"alert alert-danger\" data-ng-if=\"hero.name.valueMissing\"\u003e\n          Name is required\n        \u003c/div\u003e\n      \u003c/div\u003e\n      \u003cdiv class=\"form-group\"\u003e\n        \u003clabel for=\"power\"\u003eHero Power\u003c/label\u003e\n        \u003cselect id=\"power\" name=\"power\" class=\"form-control\"\u003e\n          \u003coption data-ng-for=\"let aPower of powers\" data-ng-text=\"aPower.name\" \u003eNothing here\u003c/option\u003e\n        \u003c/select\u003e\n        \u003cdiv class=\"alert alert-danger\" data-ng-if=\"hero.power.dirty \u0026\u0026 !hero.power.valid\"\u003e\n          Power is required\n        \u003c/div\u003e\n      \u003c/div\u003e\n       \u003cbutton type=\"submit\" class=\"btn btn-default\" data-ng-prop=\"'disabled', !hero.group.valid\"\u003eSubmit\u003c/button\u003e\n    \u003c/form\u003e\n`\n})\n\nexport class HeroView extends FormView {\n\n  initialize() {\n    this.collections.get( \"powers\" ).fetch();\n  }\n\n  onSubmitForm( e:Event ){\n    e.preventDefault();\n    alert( \"Form submitted\" )\n  }\n\n}\n\n```\n\n## See more\n* [Live Demo](https://dsheiko.github.io/ng-backbone/demo.html)\n* [TODO MVC ngBackbone Example](https://github.com/dsheiko/todomvc/tree/dsheiko-ng-backbone/examples/ng-backbone)\n\n# How to\n\n* [Getting Started](./doc/getting-started.md)\n* [Template syntax](./doc/template.md)\n* [@Component Decorator](./doc/view.md)\n* [View Module](./doc/view.md)\n  * [View Options](./doc/view/options.md)\n  * [Subviews](./doc/view/subviews.md)\n  * [Logging Events](./doc/view/logger.md)\n* [FormView Module](./doc/formview.md)\n\n\n## Contributing\n\n`ngBackbone` welcomes maintainers. There is plenty of work to do. No big commitment required,\nif all you do is review a single Pull Request, you are a maintainer.\n\n\n### How to set up\n\n```\nnpm install\n```\n\n\n### How to run tests\n\n```\nnpm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsheiko%2Fng-backbone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsheiko%2Fng-backbone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsheiko%2Fng-backbone/lists"}