{"id":16426279,"url":"https://github.com/mojs/mojs-curve-editor","last_synced_at":"2026-04-21T08:01:03.431Z","repository":{"id":50417919,"uuid":"63497163","full_name":"mojs/mojs-curve-editor","owner":"mojs","description":"GUI for live easing/property curves editing","archived":false,"fork":false,"pushed_at":"2023-03-30T15:01:05.000Z","size":12025,"stargazers_count":237,"open_issues_count":6,"forks_count":38,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-31T09:40:24.601Z","etag":null,"topics":["curve","editor","gui","mojs","tool"],"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/mojs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"xavierfoucrier"}},"created_at":"2016-07-16T18:34:18.000Z","updated_at":"2025-12-18T13:31:41.000Z","dependencies_parsed_at":"2026-03-18T00:00:56.691Z","dependency_job_id":null,"html_url":"https://github.com/mojs/mojs-curve-editor","commit_stats":{"total_commits":124,"total_committers":9,"mean_commits":"13.777777777777779","dds":0.467741935483871,"last_synced_commit":"3f1b8a2b3b617c8375c29af4534a7317cb1d6e25"},"previous_names":["legomushroom/mojs-curve-editor"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/mojs/mojs-curve-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojs%2Fmojs-curve-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojs%2Fmojs-curve-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojs%2Fmojs-curve-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojs%2Fmojs-curve-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mojs","download_url":"https://codeload.github.com/mojs/mojs-curve-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojs%2Fmojs-curve-editor/sbom","scorecard":{"id":583291,"data":{"date":"2025-08-11","repo":{"name":"github.com/mojs/mojs-curve-editor","commit":"3f1b8a2b3b617c8375c29af4534a7317cb1d6e25"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/27 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":"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":"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 'main'"],"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 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":"92 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-qgfr-5hqp-vrw9","Warn: Project is vulnerable to: GHSA-r7jx-5m6m-cpg9","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","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-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","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-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-hxm2-r34f-qmc5","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-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-28xh-wpgr-7fm8","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","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-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-xc7v-wxcw-j472","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-v4rh-8p82-6h5w","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-cf66-xwfp-gvc4","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg"],"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-20T19:45:39.941Z","repository_id":50417919,"created_at":"2025-08-20T19:45:39.941Z","updated_at":"2025-08-20T19:45:39.941Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32082780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["curve","editor","gui","mojs","tool"],"created_at":"2024-10-11T08:08:14.314Z","updated_at":"2026-04-21T08:01:03.381Z","avatar_url":"https://github.com/mojs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/xavierfoucrier"],"categories":[],"sub_categories":[],"readme":"# @mojs/curve-editor – [![npm](https://img.shields.io/npm/v/@mojs/curve-editor.svg)](https://www.npmjs.com/package/@mojs/curve-editor)\n\nGUI for live easing/property curves editing.\n\n![mojs-curve-editor](logo.png \"mojs-curve-editor\")\n\n`MojsCurveEditor` is a GUI plugin for interactive custom easings and property curves editing while crafting your animations. It is part of [`mojs` tools](https://mojs.github.io/tools/).\n\n## Installation\n\nThe `MojsCurveEditor` depends on `mojs \u003e= 0.225.2`, tween autoupdates available for `mojs \u003e= 0.276.2`. Please make sure you've linked [mojs](https://github.com/mojs/mojs) library first.\n\n```console\n# npm\nnpm install @mojs/curve-editor\n\n# cdn\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@mojs/curve-editor\"\u003e\u003c/script\u003e\n```\n\nImport `MojsCurveEditor` constructor inside your code, depending on your environment:\n\n```javascript\nconst MojsCurveEditor = require('mojs-curve-editor').default;\n\n// or\nimport MojsCurveEditor from '@mojs/curve-editor';\n```\n\n\u003e If you installed it with script link - you should have `MojsCurveEditor` global\n\n## Usage\n\nConstruct `MojsCurveEditor` with the next options:\n\n```javascript\n  const mojsCurve = new MojsCurveEditor({\n\n    // name of the Curve you are working on. The name is used to\n    // identify record in `localStorage` to restore the state from\n    // when page gets reloaded, so please specify unique names if\n    // you use more than one editor on the same page.\n    name: 'bounce curve'\n  });\n```\n\nAfter that you can \"connect\" the curve with your `mojs` modules by passing a \"sample\" of the curve to the `easing` property of the module, like this:\n\n```javascript\n  const mojsCurve = new MojsCurveEditor();\n\n  const tween = new mojs.Tween({\n    easing: mojsCurve.getEasing()\n  });\n\n  // or\n\n  const shape = new mojs.Shape({\n    easing: mojsCurve.getEasing()\n  });\n\n  // or as `property curve`\n\n  const html = new mojs.Html({\n    el: '#js-el',\n    x: {\n      0: 100,\n      curve: mojsCurve.getEasing()\n    }\n  });\n\n```\n\nEach `tween`/`module` should have it's out sample of the curve, this means you need to call `mojsCurve.getEasing()` send the `sample` of the curve to the `easing` property of modules.  \n\nIf you use `mojs\u003e0.276.5` the state of the modules with the curve `sample` will be updated automatically.\n\nThe `getEasing` function receives options hash:\n\n```javascript\n  easing: mojsCurve.getEasing({\n\n    // `transform` function that pipes through the current value\n    // of the curve so you can transform it\n    transform: (k) =\u003e { return k; }\n  });\n\n```\n\nAfter you are happy with the curve you made, you need to change the `sample`, `mojsCurve.getEasing()` calls, with the actual path data that you can get by clicking on the `code` button \u003cimg width=\"32\" style=\"margin-bottom: -10px\" src=\"https://github.com/mojs/mojs-curve-editor/blob/main/mockups/code-button.png?raw=true\" alt=\"code button\" /\u003e:\n\n```javascript\n  const html = new mojs.Html({\n    el: '#js-el',\n    x: {\n      0: 100,\n      easing: 'M0, 100 L100, 0'\n    }\n  });\n```\n\n## Options\n\nConstructor accepts the next options:\n\n```javascript\nconst curveEditor = new MojsCurveEditor({\n\n  // name of the curve editor\n  name: 'bounce curve'\n\n  // if should preserve state on page reloads\n  isSaveState: true,\n\n  // start path - will be loaded on initialization of the curve,\n  // e.g. before any user modifications were made. Path of 'M0, 100 L100, 0' is set by default.\n  startPath: 'M0, 100 L100, 0',\n\n  // callback on path change, accepts path string\n  onChange: function (path) {},\n\n  // if should hide when minimized - useful when you try to embed\n  isHiddenOnMin: false\n});\n```\n\n## Public Methods\n\n```javascript\ncurveEditor\n\n  // get `easing function` of the curve\n  .getEasing()\n\n  // maximize the curve editor\n  .maximize()\n\n  // minimize the curve editor\n  .minimize()\n\n  // toggle `maximize/minimize` methods regarding editor's state\n  .toggleSize();\n```\n\n## Shortcuts\n\n- `alt + z`  - `undo` curve action\n- `alt + x`  - `redo` curve action\n- `alt + d`  - `delete` selected point(s)\n- [3 times] `alt + \\`  - `reset` curve\n\n\u003e All shortcuts work only for active editor - it should have **orange mojs logo indicator** at bottom left.\n\n## Development\n\nInstall [webpack](https://webpack.github.io/) globally:\n\n```\n[sudo] npm install webpack -g\n```\n\nInstall dependencies with [npm](https://www.npmjs.com/):\n\n```\n[sudo] npm install\n```\n\nRun [webpack](https://webpack.github.io/):\n\n```\nwebpack\n```\n\nPlease make sure you started a `feature branch` with the `feature name` (better from the `dev` branch) before making changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojs%2Fmojs-curve-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmojs%2Fmojs-curve-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojs%2Fmojs-curve-editor/lists"}