{"id":13401140,"url":"https://github.com/freiksenet/react-kinetic","last_synced_at":"2025-10-14T08:32:50.888Z","repository":{"id":16820711,"uuid":"19579914","full_name":"freiksenet/react-kinetic","owner":"freiksenet","description":"HTML5 Canvas via KineticJS using React.","archived":false,"fork":false,"pushed_at":"2014-11-20T15:17:48.000Z","size":1021,"stargazers_count":66,"open_issues_count":4,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-05T05:06:48.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://freiksenet.github.io/react-kinetic/","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/freiksenet.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}},"created_at":"2014-05-08T16:06:44.000Z","updated_at":"2024-02-05T01:27:58.000Z","dependencies_parsed_at":"2022-08-25T11:53:39.635Z","dependency_job_id":null,"html_url":"https://github.com/freiksenet/react-kinetic","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/freiksenet/react-kinetic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freiksenet%2Freact-kinetic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freiksenet%2Freact-kinetic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freiksenet%2Freact-kinetic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freiksenet%2Freact-kinetic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freiksenet","download_url":"https://codeload.github.com/freiksenet/react-kinetic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freiksenet%2Freact-kinetic/sbom","scorecard":{"id":411113,"data":{"date":"2025-08-11","repo":{"name":"github.com/freiksenet/react-kinetic","commit":"de0db477141e26d9a07162ef096984bb3f068cec"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"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":2,"reason":"Found 6/26 approved changesets -- score normalized to 2","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":"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":"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":-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":"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":"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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.3.0 not signed: https://api.github.com/repos/freiksenet/react-kinetic/releases/720562","Warn: release artifact 0.2.0 not signed: https://api.github.com/repos/freiksenet/react-kinetic/releases/556508","Warn: release artifact 0.1.2 not signed: https://api.github.com/repos/freiksenet/react-kinetic/releases/460114","Warn: release artifact 0.3.0 does not have provenance: https://api.github.com/repos/freiksenet/react-kinetic/releases/720562","Warn: release artifact 0.2.0 does not have provenance: https://api.github.com/repos/freiksenet/react-kinetic/releases/556508","Warn: release artifact 0.1.2 does not have provenance: https://api.github.com/repos/freiksenet/react-kinetic/releases/460114"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 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"}}]},"last_synced_at":"2025-08-18T22:43:50.234Z","repository_id":16820711,"created_at":"2025-08-18T22:43:50.234Z","updated_at":"2025-08-18T22:43:50.234Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018310,"owners_count":26086342,"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-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2024-07-30T19:00:59.128Z","updated_at":"2025-10-14T08:32:50.867Z","avatar_url":"https://github.com/freiksenet.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","Awesome React","JavaScript","React [🔝](#readme)"],"sub_categories":["Uncategorized","Tools"],"readme":"react-kinetic\n=============\n\n![Build status](https://travis-ci.org/freiksenet/react-kinetic.svg?branch=master)\n\nKineticJS canvas library using React components.\n\nClick on rectangles at http://freiksenet.github.io/react-kinetic/. A more\nelaborate example at https://github.com/freiksenet/react-kinetic-asteroids.\n\nAn attempt to make [React](http://facebook.github.io/react/) work with the\n[KineticJS](http://kineticjs.com/) HTML5 canvas library. The goal is to have\nsimilar declarative markup as normal React and to have similar data-flow model.\n\nCurrently you can use all Kinetic components as React components and all Kinetic\nevents are supported on them in same way as normal browser events are supported.\n\nYou can even inspect the components in React dev tools.\n\nInstallation\n------------\n\nIf you use browserify or webpack\n\n```\nnpm install react kinetic react-kinetic\n```\n\nThen just require it\n\n```js\nrequire('react-kinetic');\n```\n\nIf you use require.js or want to use it standalone, then standalone version is\navailable in [Releases](https://github.com/freiksenet/react-kinetic/releases).\n\nIf you want to build from source\n\n```\ngit clone https://github.com/freiksenet/react-kinetic.git\ncd react-kinetic\nnpm run umd\n```\n\n`build/react-kinetic.js` will be a standalone dist, you can require\nreact and react-kinetic from there.\nReactKinetic\nNote that in all cases you need to have react and kinetic available, so have\nthem included in `\u003cscript\u003e` tag (or available to RequireJS if you use AMD).\n\nUser guide\n----------\n\nMinimal example:\n\n```js\n/** @jsx React.DOM */\n\nvar React = require('react');\nvar ReactKinetic = require('react-kinetic');\n\nvar TestingComponent = React.createClass({\n  render: function () {\n    return (\n      \u003cReactKinetic.Stage height={300} width={300}\u003e\n        \u003cReactKinetic.Layer\u003e\n          \u003cReactKinetic.Rect x={100} y={100} width={50} height={50} fill=\"black\" /\u003e\n        \u003c/ReactKinetic.Layer\u003e\n      \u003c/ReactKinetic.Stage\u003e\n    );\n  }\n});\n\nReact.renderComponent(\n  \u003cTestingComponent /\u003e,\n  document.body\n);\n```\n\nAll react-kinetic components correspond to KineticJS components of the same\nname. All the parameters available for Kinetic objects are valid props for\ncorresponding react-kinetic components, unless otherwise noted.\n\nEvery react-kinetic component (or components that use react-kinetic components)\nmust be wrappe in `Stage`. `Stage` is the only react-kinetic element that has\nactual DOM representation. Unlike `Kinetic.Stage`, `Stage` will ignore\n`container` passed to it, because it constructs container by itself.\n\n`Stage`'s only valid children are `Layer` components. `Layer`s are currently\nonly components that handle redrawing and currently they redraw on all changes\nof props or children.\n\n`Layer`s can have all the other react-kinetic components inside. The supported\nelements are: `Container`, `Layer`, `Group`, `Label`, `Shape`, `Rect`, `Circle`,\n`Ellipse`, `Ring`, `Wedge`, `Arc`, `Image`, `Text`, `Line`, `Sprite`, `Path`,\n`TextPath`, `RegularPolygon`, `Star` and `Tag`. See KineticJS\n[API docs](http://kineticjs.com/docs/index.html) for valid props.\n\nCurrently there is no API to add react-kinetic components for custom KineticJS\nnodes, but I'm planning to add it in the future. See\n[KineticComponent.js](src/KineticComponent.js) and\n[KineticFactory.js](src/KineticComponent.js).\n\n### Events\n\nreact-kinetic supports all KineticJS events. The names are done 'react-style',\nso `onCamelCased`. Full mapping:\n\n```js\nvar KineticEvents = {\n  onMouseOver: \"mouseover\",\n  onMouseOut: \"mouseout\",\n  onMouseEnter: \"mouseenter\",\n  onMouseLeave: \"mouseleave\",\n  onMouseMove: \"mousemove\",\n  onMouseDown: \"mousedown\",\n  onMouseUp: \"mouseup\",\n  onClick: \"click\",\n  onDblClick: \"dblclick\",\n  onDragStar: \"dragstart\",\n  onDragEnd: \"dragend\",\n  onTouchStart: \"touchstart\",\n  onTouchMove: \"touchmove\",\n  onTouchEnd: \"touchend\",\n  onTap: \"tap\",\n  onDblTap: \"dbltap\",\n  onDragMove: \"dragmove\"\n};\n```\n\nEvents work in similar way as they work in normal React. See\n[demo/rectangles.js](demo/rectangles.js) for examples.\n\nInternally, events use the `.react` namespace for Kinetic events,\nso this namespace shouldn't be used if you manually bind events,\ne.g. in `componentDidMount`.\n\n### Some internals\n\nTo get raw Kinetic node object, use the `getKineticNode` method which all\nreact-kinetic components have.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreiksenet%2Freact-kinetic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreiksenet%2Freact-kinetic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreiksenet%2Freact-kinetic/lists"}