{"id":44254486,"url":"https://github.com/the-labo/the-fabric","last_synced_at":"2026-02-10T16:19:32.903Z","repository":{"id":144113045,"uuid":"105842854","full_name":"the-labo/the-fabric","owner":"the-labo","description":"Fabric.js wrapper of the-components","archived":false,"fork":false,"pushed_at":"2017-10-05T02:54:46.000Z","size":1952,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T14:41:46.338Z","etag":null,"topics":["component","the"],"latest_commit_sha":null,"homepage":"","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/the-labo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-05T02:50:02.000Z","updated_at":"2017-10-05T02:52:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0c3cdae-7493-460e-8b38-6fcd4118e300","html_url":"https://github.com/the-labo/the-fabric","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/the-labo/the-fabric","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-labo%2Fthe-fabric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-labo%2Fthe-fabric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-labo%2Fthe-fabric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-labo%2Fthe-fabric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-labo","download_url":"https://codeload.github.com/the-labo/the-fabric/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-labo%2Fthe-fabric/sbom","scorecard":{"id":877156,"data":{"date":"2025-08-11","repo":{"name":"github.com/the-labo/the-fabric","commit":"f0bd254808cec36946dd3a24f5524eef899c6526"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/5 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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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":"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":"Vulnerabilities","score":0,"reason":"68 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-hc9w-4p87-j549","Warn: Project is vulnerable to: GHSA-wg6g-ppvx-927h","Warn: Project is vulnerable to: GHSA-vpq5-4rc8-c222","Warn: Project is vulnerable to: GHSA-73rg-x683-m3qw","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","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-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-mvjj-gqq2-p4hw","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883"],"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-24T06:29:05.516Z","repository_id":144113045,"created_at":"2025-08-24T06:29:05.517Z","updated_at":"2025-08-24T06:29:05.517Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29307338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T16:09:25.305Z","status":"ssl_error","status_checked_at":"2026-02-10T16:08:52.170Z","response_time":65,"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":["component","the"],"created_at":"2026-02-10T16:19:31.248Z","updated_at":"2026-02-10T16:19:32.896Z","avatar_url":"https://github.com/the-labo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"the-fabric\n==========\n\n\u003c!---\nThis file is generated by ape-tmpl. Do not update manually.\n---\u003e\n\n\u003c!-- Badge Start --\u003e\n\u003ca name=\"badges\"\u003e\u003c/a\u003e\n\n[![Build Status][bd_travis_shield_url]][bd_travis_url]\n[![npm Version][bd_npm_shield_url]][bd_npm_url]\n[![JS Standard][bd_standard_shield_url]][bd_standard_url]\n\n[bd_repo_url]: https://github.com/the-labo/the-fabric\n[bd_travis_url]: http://travis-ci.org/the-labo/the-fabric\n[bd_travis_shield_url]: http://img.shields.io/travis/the-labo/the-fabric.svg?style=flat\n[bd_travis_com_url]: http://travis-ci.com/the-labo/the-fabric\n[bd_travis_com_shield_url]: https://api.travis-ci.com/the-labo/the-fabric.svg?token=\n[bd_license_url]: https://github.com/the-labo/the-fabric/blob/master/LICENSE\n[bd_codeclimate_url]: http://codeclimate.com/github/the-labo/the-fabric\n[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/the-labo/the-fabric.svg?style=flat\n[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/the-labo/the-fabric.svg?style=flat\n[bd_gemnasium_url]: https://gemnasium.com/the-labo/the-fabric\n[bd_gemnasium_shield_url]: https://gemnasium.com/the-labo/the-fabric.svg\n[bd_npm_url]: http://www.npmjs.org/package/the-fabric\n[bd_npm_shield_url]: http://img.shields.io/npm/v/the-fabric.svg?style=flat\n[bd_standard_url]: http://standardjs.com/\n[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n\u003c!-- Badge End --\u003e\n\n\n\u003c!-- Description Start --\u003e\n\u003ca name=\"description\"\u003e\u003c/a\u003e\n\nFabric.js wrapper of the-components\n\n\u003c!-- Description End --\u003e\n\n\n\u003c!-- Overview Start --\u003e\n\u003ca name=\"overview\"\u003e\u003c/a\u003e\n\n\n\n\u003c!-- Overview End --\u003e\n\n\n\u003c!-- Sections Start --\u003e\n\u003ca name=\"sections\"\u003e\u003c/a\u003e\n\n\u003c!-- Section from \"doc/guides/01.Installation.md.hbs\" Start --\u003e\n\n\u003ca name=\"section-doc-guides-01-installation-md\"\u003e\u003c/a\u003e\n\nInstallation\n-----\n\n```bash\n$ npm install the-fabric --save\n```\n\n\n\u003c!-- Section from \"doc/guides/01.Installation.md.hbs\" End --\u003e\n\n\u003c!-- Section from \"doc/guides/02.Usage.md.hbs\" Start --\u003e\n\n\u003ca name=\"section-doc-guides-02-usage-md\"\u003e\u003c/a\u003e\n\nUsage\n---------\n\n```javascript\n'use strict'\n\nimport React from 'react'\nimport { TheFabric, TheFabricStyle } from 'the-fabric'\n\nclass ExampleComponent extends React.Component {\n  constructor (props) {\n    super(props)\n    const s = this\n    s.vx01 = 1\n  }\n\n  render () {\n    const s = this\n    return (\n      \u003cdiv\u003e\n        \u003cTheFabricStyle/\u003e\n        \u003cTheFabric draw={({fabric, canvas, count}) =\u003e {\n\n          // Initialize on count 0\n          if (count === 0) {\n            canvas.set({'backgroundColor': 'white'})\n\n            s.rect01 = new fabric.Rect({\n              left: 150,\n              top: 150,\n              fill: 'red',\n              width: 20,\n              height: 20\n            })\n            canvas.add(s.rect01)\n\n          }\n\n          {\n            const {left} = s.rect01\n            const vx = s.vx01\n            const needsTurn = (vx \u003e 0 \u0026\u0026 left \u003e 200) || (vx \u003c 0 \u0026\u0026 left \u003c 100)\n            if (needsTurn) {\n              s.vx01 *= -1\n            }\n            s.rect01.set({left: left + s.vx01})\n          }\n          canvas.renderAll()\n        }}\u003e\n        \u003c/TheFabric\u003e\n      \u003c/div\u003e\n\n    )\n  }\n}\n\nexport default ExampleComponent\n\n```\n\n\n\u003c!-- Section from \"doc/guides/02.Usage.md.hbs\" End --\u003e\n\n\u003c!-- Section from \"doc/guides/03.Components.md.hbs\" Start --\u003e\n\n\u003ca name=\"section-doc-guides-03-components-md\"\u003e\u003c/a\u003e\n\nComponents\n-----------\n\n### TheFabric\n\nCanvas drawing of the-components\n\n**Props**\n\n| Name | Type | Description | Default |\n| --- | --- | ---- | ---- |\n| `draw` | func  | Draw handler | `() =\u003e null` |\n| `width` | number  | Canvas width | `300` |\n| `height` | number  | Canvas height | `300` |\n\n### TheFabricStyle\n\nStyle for TheFabric\n\n**Props**\n\n| Name | Type | Description | Default |\n| --- | --- | ---- | ---- |\n| `options` | object  | Style options | `{}` |\n\n\n\n\u003c!-- Section from \"doc/guides/03.Components.md.hbs\" End --\u003e\n\n\n\u003c!-- Sections Start --\u003e\n\n\n\u003c!-- LICENSE Start --\u003e\n\u003ca name=\"license\"\u003e\u003c/a\u003e\n\nLicense\n-------\nThis software is released under the [MIT License](https://github.com/the-labo/the-fabric/blob/master/LICENSE).\n\n\u003c!-- LICENSE End --\u003e\n\n\n\u003c!-- Links Start --\u003e\n\u003ca name=\"links\"\u003e\u003c/a\u003e\n\nLinks\n------\n\n+ [THE Labo][t_h_e_labo_url]\n\n[t_h_e_labo_url]: https://github.com/the-labo\n\n\u003c!-- Links End --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-labo%2Fthe-fabric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-labo%2Fthe-fabric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-labo%2Fthe-fabric/lists"}