{"id":23391438,"url":"https://github.com/ahrefs/melange-recharts","last_synced_at":"2025-09-04T13:43:36.516Z","repository":{"id":45962698,"uuid":"131725913","full_name":"ahrefs/melange-recharts","owner":"ahrefs","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-13T04:33:57.000Z","size":469,"stargazers_count":61,"open_issues_count":1,"forks_count":28,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-28T21:27:20.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Reason","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/ahrefs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-01T14:57:02.000Z","updated_at":"2025-08-11T01:26:26.000Z","dependencies_parsed_at":"2023-07-16T11:54:55.826Z","dependency_job_id":"1f47a152-2e64-4c03-a9d6-499138fe1f86","html_url":"https://github.com/ahrefs/melange-recharts","commit_stats":{"total_commits":171,"total_committers":21,"mean_commits":8.142857142857142,"dds":0.5380116959064327,"last_synced_commit":"ac7bb1035ec3ccf0e3f185ea20e6d084a34e8db8"},"previous_names":["ahrefs/bs-recharts"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ahrefs/melange-recharts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrefs%2Fmelange-recharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrefs%2Fmelange-recharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrefs%2Fmelange-recharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrefs%2Fmelange-recharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahrefs","download_url":"https://codeload.github.com/ahrefs/melange-recharts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrefs%2Fmelange-recharts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273619075,"owners_count":25138235,"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-04T02:00:08.968Z","response_time":61,"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-12-22T04:17:27.840Z","updated_at":"2025-09-04T13:43:36.480Z","avatar_url":"https://github.com/ahrefs.png","language":"Reason","funding_links":[],"categories":[],"sub_categories":[],"readme":"# melange-recharts\n\nThese are the [Melange](https://melange.re/) bindings for [Recharts](http://recharts.org/).\n🚧 It is not completed, we are adding bindings as we go. Doesn't follow semver at this point. 🚧\n\n## Install\n\nInstall [opam](https://opam.ocaml.org/) package manager.\n\nThen:\n\n```sh\nopam install melange-recharts\n```\n\nThe bindings support the version `^2.15.1` of `recharts` npm package, which should be installed separately:\n\n```json\n  \"dependencies\": {\n    \"recharts\": \"^2.15.1\"\n  }\n```\n\n## Setup\n\nAdd `melange-recharts` to the `libraries` in your `dune` file:\n\n```lisp\n; ...\n  (libraries melange-recharts)\n; ...\n```\n\n## Usage Example\n\nSee [Example.re](./example/Example.re);\n\n## Helpers\n\nSome of polymorphic params are represented as a variant, list below:\n\n```reason\nmodule AxisInterval = {\n  ...\n  type arg =\n    | PreserveStart\n    | PreserveEnd\n    | PreserveStartEnd\n    | Num(int);\n  ...\n};\n\nmodule PxOrPrc = {\n  ...\n  type arg =\n    | Px(float)\n    | Prc(float);\n  ...\n};\n```\n\nyou will use it like this:\n\n```reason\n\u003cXAxis\n  interval=PreserveStart\n/\u003e\n\u003cXAxis\n  interval=Num(12)\n/\u003e\n```\n\nCheck [Recharts documentation](http://recharts.org/en-US/api) for available props.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahrefs%2Fmelange-recharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahrefs%2Fmelange-recharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahrefs%2Fmelange-recharts/lists"}