{"id":13418876,"url":"https://github.com/laktak/js-graphy","last_synced_at":"2025-04-24T00:03:44.307Z","repository":{"id":34784321,"uuid":"38767573","full_name":"laktak/js-graphy","owner":"laktak","description":"Graphing Calculator that evals JavaScript","archived":false,"fork":false,"pushed_at":"2021-07-07T09:09:32.000Z","size":155,"stargazers_count":50,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-24T00:03:35.347Z","etag":null,"topics":["graphing-calculator","javascript","playground"],"latest_commit_sha":null,"homepage":"https://laktak.github.io/js-graphy/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laktak.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":"2015-07-08T16:56:50.000Z","updated_at":"2024-12-28T20:00:15.000Z","dependencies_parsed_at":"2022-08-31T08:50:36.885Z","dependency_job_id":null,"html_url":"https://github.com/laktak/js-graphy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laktak%2Fjs-graphy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laktak%2Fjs-graphy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laktak%2Fjs-graphy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laktak%2Fjs-graphy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laktak","download_url":"https://codeload.github.com/laktak/js-graphy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535098,"owners_count":21446508,"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","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":["graphing-calculator","javascript","playground"],"created_at":"2024-07-30T22:01:08.243Z","updated_at":"2025-04-24T00:03:44.286Z","avatar_url":"https://github.com/laktak.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# js-graphy Playground\n\nThis playground allows you to visualize, test, tweak and play with your mathematical JavaScript functions.\n\n[Open the live playground!](https://laktak.github.io/js-graphy/)\n\nTo add a graph simply call `graph.add()` with your function. The only argument is x with y expected as the return value.\n\n```js\ngraph.add(function(x) { return x*x; });\n```\n\nYou can use normal JS code:\n\n```\n// add another graph\nfunction easing(x) {\n  return x + 0.3 * Math.sin(2 * Math.PI * x);\n}\ngraph.add(easing);\n```\n\nSet colors:\n\n```js\ngraph.add(function(x) { return -Math.round(x*x); }, \"#00ff00\");\n```\n\nTo include external libraries use `// script=\"URL\"`:\n\n```js\n// script=\"https://cdnjs.cloudflare.com/ajax/libs/mathjs/1.7.0/math.min.js\"\ngraph.add(function(x) { return math.cube(x); });\n```\n\n## Gists\n\nIf you want to share your playground\n\n- create a gist with your code\n- and append your *gist-id* to the playground url:\n\nhttps://laktak.github.io/js-graphy/#gist=f8944fa044d972456d35\n\n## Thanks\n\nGraphs are based on the [JavaScript Graphing Calculator by Richard Ye](https://github.com/yerich/Graphr).\n\nEditing made possible by the [Ajax.org Cloud9 Editor](https://github.com/ajaxorg/ace).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaktak%2Fjs-graphy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaktak%2Fjs-graphy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaktak%2Fjs-graphy/lists"}