{"id":28397806,"url":"https://github.com/gre/ipo","last_synced_at":"2025-09-07T07:34:11.282Z","repository":{"id":35816373,"uuid":"40098953","full_name":"gre/ipo","owner":"gre","description":"easing library allowing to describe complex easings in JSON","archived":false,"fork":false,"pushed_at":"2016-07-02T09:28:20.000Z","size":50,"stargazers_count":56,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-28T12:44:33.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/gre.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":"2015-08-03T01:23:18.000Z","updated_at":"2024-02-21T18:02:30.000Z","dependencies_parsed_at":"2022-08-19T02:20:40.092Z","dependency_job_id":null,"html_url":"https://github.com/gre/ipo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gre/ipo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fipo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fipo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fipo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fipo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gre","download_url":"https://codeload.github.com/gre/ipo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fipo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274010104,"owners_count":25206763,"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-07T02:00:09.463Z","response_time":67,"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":"2025-06-01T02:36:37.530Z","updated_at":"2025-09-07T07:34:11.260Z","avatar_url":"https://github.com/gre.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"IPO\n===\n\n*IPO*, short for *InterPOlation*, is an easing library allowing to describe complex easings in JSON (multiple point over time can be placed).\n\n\u003e Inspired from Blender's IPO idea, it is made for animating a value in many ways over time.\n\nScreenshot running [example.js](./example.js):\n\n![](ipo_example.png)\n\n```json\n[\n  { \"p\": [100, 100], \"upper\": [10, 20] },\n  { \"p\": [200, 190], \"lower\": [-10, 0], \"upper\": [10, 0] },\n  { \"p\": [250, 100], \"upper\": [30, 0] },\n  { \"p\": [280, 140] },\n  { \"p\": [350, 160] },\n  { \"p\": [400, 50], \"lower\": [-50, 40], \"upper\": [100, 0] },\n  { \"p\": [600, 250], \"lower\": [-140, 0], \"upper\": [ 40, -40 ] }\n]\n```\n\n*(the white dots are the interpolated values, the red point are the control points and their handles, the yellow curve is the SVG continuous curve.)*\n\nAPI\n===\n\n```js\nvar IPO = require(\"ipo\");\nvar ipo = IPO([ ...points... ]);\nipo(42); // Get the curve Y value at X=42\n```\n\n### Format\n\n`points` is:\n\n- an Array of Point, where each Point is an object with\n  - a position `p` which is a `[x, y]`\n  - (option) `lower`: relative position of a bezier handle for the lower curve interpolation\n  - (option) `upper`: same for the upper curve interpolation.\n\n\nUnder the hood\n==============\n\n- [`bezier-easing`](https://github.com/gre/bezier-easing) is used to perform bezier interpolation. It provides efficient computation with various optimization techniques.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgre%2Fipo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgre%2Fipo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgre%2Fipo/lists"}