{"id":21897399,"url":"https://github.com/adriancmiranda/proto","last_synced_at":"2025-09-14T03:07:00.117Z","repository":{"id":19050429,"uuid":"22276545","full_name":"adriancmiranda/Proto","owner":"adriancmiranda","description":"An extensible program-code-template for creating objects","archived":false,"fork":false,"pushed_at":"2025-08-21T15:20:58.000Z","size":2202,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-09T07:57:46.107Z","etag":null,"topics":["proto"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/Proto","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adriancmiranda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-26T02:20:42.000Z","updated_at":"2025-08-01T04:32:45.000Z","dependencies_parsed_at":"2022-09-26T22:01:48.563Z","dependency_job_id":null,"html_url":"https://github.com/adriancmiranda/Proto","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/adriancmiranda/Proto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancmiranda%2FProto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancmiranda%2FProto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancmiranda%2FProto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancmiranda%2FProto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adriancmiranda","download_url":"https://codeload.github.com/adriancmiranda/Proto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancmiranda%2FProto/sbom","scorecard":{"id":167756,"data":{"date":"2025-08-11","repo":{"name":"github.com/adriancmiranda/Proto","commit":"2b1b567b9b97d9f99ce68d995e0d2559a7c73efa"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"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":"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":"Code-Review","score":-1,"reason":"Found no human activity in the last 19 changesets","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":"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":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"31 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-xp63-6vf5-xf3v","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-7xcx-6wjh-7xp2","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-g3ch-rx76-35fx","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T15:23:56.384Z","repository_id":19050429,"created_at":"2025-08-16T15:23:56.384Z","updated_at":"2025-08-16T15:23:56.384Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275055102,"owners_count":25397579,"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-09-14T02:00:10.474Z","response_time":75,"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":["proto"],"created_at":"2024-11-28T14:17:09.333Z","updated_at":"2025-09-14T03:07:00.050Z","avatar_url":"https://github.com/adriancmiranda.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![Proto](http://i.imgur.com/CEEbHaw.gif)\n\n\u003e __Proto__ is an extensible program-code-template for creating objects\n\n[![build status][travis_build_status_image]][travis_build_status_url]\n[![dependencies status][david_dependencies_status_image]][david_dependencies_status_url]\n[![devDependency status][david_devdependencies_status_image]][david_devdependencies_status_url]\n[![Codacy Badge][codacy_status_image]][codacy_status_url]\n[![License][shields_license_image]][shields_license_url]\n\n[![NPM][nodei_status_image]][nodei_status_url]\n\n\u003c!-- stability --\u003e\n[stability]: http://badges.github.io/stability-badges/dist/experimental.svg\n[stability-url]: http://learnhtmlwithsong.com/blog/wp-content/uploads/2014/12/errors-everywhere-meme.png\n\n\u003c!-- travis --\u003e\n[travis_build_status_image]: https://travis-ci.org/adriancmiranda/Proto.svg?branch=master\n[travis_build_status_url]: https://travis-ci.org/adriancmiranda/Proto \"build status\"\n\n\u003c!-- david dependencies --\u003e\n[david_dependencies_status_image]: https://david-dm.org/adriancmiranda/Proto.svg?theme=shields.io\n[david_dependencies_status_url]: https://david-dm.org/adriancmiranda/Proto \"dependencies status\"\n\n\u003c!-- david devDependencies --\u003e\n[david_devdependencies_status_image]: https://david-dm.org/adriancmiranda/Proto/dev-status.svg?theme=shields.io\n[david_devdependencies_status_url]: https://david-dm.org/adriancmiranda/Proto#info=devDependencies \"devDependencies status\"\n\n\u003c!-- shields.io --\u003e\n[shields_license_image]: https://img.shields.io/badge/license-MIT-blue.svg\n[shields_license_url]: https://github.com/adriancmiranda/Proto/blob/master/LICENSE.md\n\n\u003c!-- codacy --\u003e\n[codacy_status_image]: https://api.codacy.com/project/badge/Grade/75cc315f21fa4f3fa51b8fb0dfc36c67\n[codacy_status_url]: https://www.codacy.com/app/adriancmiranda/Proto?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=adriancmiranda/Proto\u0026amp;utm_campaign=Badge_Grade\n\n\u003c!-- nodei --\u003e\n[nodei_status_image]: https://nodei.co/npm/Proto.png?downloads=true\u0026downloadRank=true\u0026stars=true\n[nodei_status_url]: https://nodei.co/npm/Proto/\n\n\u003c!-- samples --\u003e\n[sample_img]: http://i.imgur.com/OXKG9od.png\n[sample_url]: http://i.imgur.com/OXKG9od.png\n\nWhat you need to build your own Proto\n-----------------------------------------\n\nIn order to build Proto, you need to have the latest node/npm and git 1.7 or later. Earlier versions might work, but are not supported.\n\nFor Windows, you have to download and install [git](http://git-scm.com/downloads) and [node](http://nodejs.org/download/).\n\nOS X users should install [git](http://git-scm.com/download).\n\nLinux/BSD users should use their appropriate package managers to install git and node, or build from source\nif you swing that way. Easy-peasy.\n\n\nHow to build your own Proto\n-------------------------------\nClone a copy of the main Proto git repo by running:\n\n```bash\ngit clone git://github.com/adriancmiranda/Proto.git\n```\n\nEnter the Proto directory and run the install script and the build script:\n\n```bash\ncd Proto \u0026\u0026 npm i \u0026\u0026 npm run build\n```\n\nThe built version of Proto will be put in the `dist/` subdirectory, along with the minified copy and associated map file.\n\n\nGet Started\n-----------\n\n## Installation\n\n### Links to CDN\n* [Proto.iife.js](https://rawgit.com/adriancmiranda/Proto/master/dist/Proto.iife.js) (18.7 KB)\n* [Proto.iife.min.js](https://cdn.rawgit.com/adriancmiranda/Proto/master/dist/Proto.iife.min.js) (5.89 KB)\n* [Proto.iife.min.js.map](https://cdn.rawgit.com/adriancmiranda/Proto/master/dist/Proto.iife.min.js.map) (108 Bytes)\n* [Proto.iife.min.js.gz](https://cdn.rawgit.com/adriancmiranda/Proto/master/dist/Proto.iife.min.js.gz) (2.31 KB)\n\nUse this URL for dev/testing\n\n```html\n\u003cscript src=\"https://rawgit.com/adriancmiranda/Proto/master/dist/Proto.umd.js\"\u003e\u003c/script\u003e\n```\n\nUse this URL in production\n\n```html\n\u003cscript src=\"https://cdn.rawgit.com/adriancmiranda/Proto/master/dist/Proto.umd.min.js\"\u003e\u003c/script\u003e\n```\n\n### via JSPM\n`jspm install adriancmiranda/Proto`\n\n### via Bower\n`bower install adriancmiranda/Proto`\n\n### via NPM\n`npm i -D Proto`\n\n### via Component\n`component install adriancmiranda/Proto`\n\n### Node/Browserify/Webpack\n\n```javascript\nvar Proto = require('Proto');\n```\n\n\nUsage\n-----\n\n```javascript\n\nvar Ninja = Proto.extends({\n\t// Objects doesn't affect implementations.\n\tdefaults:{\n\t\tninjateste:'**'\n\t},\n\tkill:function(flush){\n\t\tconsole.log('kill '+ flush);\n\t\tflush \u0026\u0026 this.flush();\n\t}\n});\n\nvar Human = Proto.extends({\n\tconstructor:function(){\n\t\tconsole.log('i r human', this.$protoID);\n\t\tthis.super();\n\t\tthis.option();\n\t}\n});\n\nvar ChuckNorris = Human.extends({\n\tdefaults:{\n\t\tskills:'ninja'\n\t},\n\timplements:[Ninja],\n\tconstructor:function(){\n\t\tconsole.log('i r badass and.. ', this.$protoID);\n\t\tthis.super();\n\t\tthis.kill('with thumb');\n\t},\n\trise:3\n});\n\nvar Goku = ChuckNorris.extends({\n\tdefaults:{\n\t\tsuperpowers:['unknown']\n\t},\n\tconstructor:function(){\n\t\tconsole.log('Hello! I\\'m goku and.. ', this.$protoID);\n\t\tthis.super();\n\t},\n\trise:function(){ // override rise property\n\t\tconsole.log('wait for', this.super(), 'days...'); // super returns rise property from superclass\n\t\treturn this.super();\n\t}\n});\n\nvar chuck = new ChuckNorris();\nchuck.kill('again!');\nconsole.log('chuck:', chuck instanceof Proto); // true\nconsole.log('chuck:', chuck instanceof Ninja); // false\nconsole.log('chuck:', chuck instanceof Human); // true\nconsole.log('chuck:', chuck instanceof ChuckNorris); // true\nconsole.log('chuck.options:', chuck.options);\nconsole.log('chuck:', chuck);\n\nvar goku = new Goku();\ngoku.rise();\nconsole.log('goku:', goku);\n\n```\n\n[![Sample][sample_img]][sample_url]\n\nSee this usage [here](http://output.jsbin.com/kehate \"You'll need open the browser console to see him in action\"). You'll need open the browser console to see him in action.\n\n# A real world sample\n\n[plnkr](https://plnkr.co/edit/94qIJj?p=preview)\n\n## License\n\n[MIT](https://github.com/adriancmiranda/Proto/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriancmiranda%2Fproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadriancmiranda%2Fproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriancmiranda%2Fproto/lists"}