{"id":19681330,"url":"https://github.com/romansky/backbone-typed","last_synced_at":"2026-02-24T08:35:35.608Z","repository":{"id":4649533,"uuid":"5794889","full_name":"romansky/backbone-typed","owner":"romansky","description":"Run-time type support for backbone models","archived":false,"fork":false,"pushed_at":"2014-04-12T13:02:13.000Z","size":155,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T21:38:00.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/romansky.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2012-09-13T13:18:36.000Z","updated_at":"2014-05-19T15:21:43.000Z","dependencies_parsed_at":"2022-09-21T00:11:05.045Z","dependency_job_id":null,"html_url":"https://github.com/romansky/backbone-typed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/romansky/backbone-typed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2Fbackbone-typed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2Fbackbone-typed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2Fbackbone-typed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2Fbackbone-typed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romansky","download_url":"https://codeload.github.com/romansky/backbone-typed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romansky%2Fbackbone-typed/sbom","scorecard":{"id":783791,"data":{"date":"2025-08-11","repo":{"name":"github.com/romansky/backbone-typed","commit":"0385cb4e3a2f907622ccdd667dc2cd90578be483"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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":"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":"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"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-23T05:33:50.680Z","repository_id":4649533,"created_at":"2025-08-23T05:33:50.681Z","updated_at":"2025-08-23T05:33:50.681Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29776648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-11T18:07:33.250Z","updated_at":"2026-02-24T08:35:35.592Z","avatar_url":"https://github.com/romansky.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"backbone-typed [![Build Status](https://travis-ci.org/romansky/backbone-typed.png)](https://travis-ci.org/romansky/backbone-typed)\n==============\n\nRun-time type support for backbone models\n\nBackbone-Typed extends the Backbone model and provides an optional Type system on top of the default models.\nThe system is provided in run time, and is optimistic, if the value can be converted to the needed type it will, if not, it will be nulled and logged\n\nExamples writtein in Coffee-Script but source is compiled to JS so no need to have CS installed at run time.\n\n## Installation\n\n\tnpm install backbone-typed\n\n## Usage\n\n\ttyped = require 'backbone-typed'\n\tTypedModel = typed.TypedModel\n\tTypes = typed.Types\n\n### Features\n\n```coffeescript\n\nenumLike : {\n\t\"OPTION_1\"\n\t\"OPTION_2\"\n\t\"OPTION_3\"\n\t\"OPTION_4\"\n}\n\nclass MyTypedModel extends TypedModel\n\tdefaults : { \n\t\tparam1: null, \n\t\tparam2: null, \n\t\tparam3: null \n\t}\n\ttypes : {\n\t\tparam1: Types.String, \n\t\tparam2: Types.Integer, \n\t\tparam3: Types.Enum(enumLike)\n\t}\n\n\nmyTypedModel = new MyTypedModel({param1: \"im a string\", param2: \"1337\", param3: enumLike.OPTION_1})\n\nconsole.log myTypedModel.toJSON()\n=\u003e { param1: \"im a string\", param2: 1337, param3: \"OPTION_1\" }\n\n# now things get interesting...\n\nmyTypedModel2 = new MyTypedModel({param1: 100, param2: \"bzzzz\", param3: \"NOT A REAL OPTION\"})\n\nconsole.log myTypedModel2.toJSON()\n=\u003e backbone-typed :: 2012-9-13 20:10:3.235 :: ERROR :: backbone-typed nulled value of:\"param2\" value:\"bzzzz\" type:\"Integer\"\n=\u003e backbone-typed :: 2012-9-13 20:10:3.235 :: ERROR :: backbone-typed nulled value of:\"param3\" value:\"NOT A REAL OPTION\" type:\"Enum\"\n=\u003e { param1: \"100\", param2: null, param3: null }\n\n```\n\n### Creating your own type!\n\nSometimes its useful to have your own method that validates input and returns some output.\nBackbone-typed provides a method that \"signs\" the passed function, so that we know its there in purpose, and will even return its name if the \".toString()\" of said function is called.\n\n```coffeescript\n# we sign the function\nmyType = typed.signTypeFunction \"Custom\",(param)-\u003e\n\treturn if param is \"its me!\" then \"yes\"  else null\n\n# now use it in a model\nclass CustomTyped extends TypedModel\n\tdefaults : {  testMe : null }\n\ttypes : { testMe : myType }\n\n```\n\n\nMore examples in specs.\n\n## Future\n\nLibraries of additional types\n\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromansky%2Fbackbone-typed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromansky%2Fbackbone-typed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromansky%2Fbackbone-typed/lists"}