{"id":20800631,"url":"https://github.com/yanivam/react-svg-worldmap","last_synced_at":"2025-04-05T01:06:13.018Z","repository":{"id":37854660,"uuid":"262700585","full_name":"yanivam/react-svg-worldmap","owner":"yanivam","description":"A simple, compact and free React SVG world map.","archived":false,"fork":false,"pushed_at":"2024-06-09T22:33:37.000Z","size":10780,"stargazers_count":121,"open_issues_count":9,"forks_count":45,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-29T00:09:31.994Z","etag":null,"topics":["frontend","map","react","svg","world"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yanivam.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"yanivam","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-05-10T02:56:15.000Z","updated_at":"2025-03-11T04:14:54.000Z","dependencies_parsed_at":"2024-06-18T15:09:34.086Z","dependency_job_id":null,"html_url":"https://github.com/yanivam/react-svg-worldmap","commit_stats":{"total_commits":179,"total_committers":12,"mean_commits":"14.916666666666666","dds":0.5754189944134078,"last_synced_commit":"e467759479a600402ff2ef4aeab37a8426ffcd23"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanivam%2Freact-svg-worldmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanivam%2Freact-svg-worldmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanivam%2Freact-svg-worldmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanivam%2Freact-svg-worldmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanivam","download_url":"https://codeload.github.com/yanivam/react-svg-worldmap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271528,"owners_count":20911587,"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":["frontend","map","react","svg","world"],"created_at":"2024-11-17T18:14:44.319Z","updated_at":"2025-04-05T01:06:13.003Z","avatar_url":"https://github.com/yanivam.png","language":"TypeScript","funding_links":["https://github.com/sponsors/yanivam"],"categories":[],"sub_categories":[],"readme":"# react-svg-worldmap [![License: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://img.shields.io/npm/v/react-svg-worldmap.svg?style=flat)](https://www.npmjs.com/package/react-svg-worldmap)\n\nA simple, compact and free React SVG world map.\n\n![simple example](https://raw.githubusercontent.com/yanivam/react-svg-worldmap/master/simple-example.gif)\n\n## Documentation \u0026 Examples\n\nWe use GitHub pages to provide documentation with ample of live examples.\n\nGive it a try at [yanivam.github.io/react-svg-worldmap](https://yanivam.github.io/react-svg-worldmap).\n\n## Why is it different?\n\nFocus on simple and free.\n\n- Draw countries on a world map.\n- Free - Really free with no limits.\n- No registration - It is just a pure react component.\n- No internet dependency - All the data is local, no calls to a back-end server.\n- Easy to learn, easy to use, easy to customize.\n\n## Yet another package for world map...but why?\n\nIt all started with a fun project that I was building and needed to draw simple yet beautiful world's map. Searching for solutions I found many potential solutions like MapBox and Google Maps, but they were \"too smart\" for what I needed. They needed to \"call home\" for the data, they supported tons of options I didn't need, and while they included react-integrations, they were not completely native to the react world. There was definitely something missing. And that's when react-svg-worldmap started.\n\n## Install\n\nIn order to install, run the following command:\n\n```\n$ npm install react-svg-worldmap --save\n```\n\n## Usage\n\nHere is a simple example:\n\n```tsx\nimport * as React from \"react\";\nimport WorldMap from \"react-svg-worldmap\";\nimport \"./App.css\";\n\nfunction App() {\n  const data = [\n    { country: \"cn\", value: 1389618778 }, // china\n    { country: \"in\", value: 1311559204 }, // india\n    { country: \"us\", value: 331883986 }, // united states\n    { country: \"id\", value: 264935824 }, // indonesia\n    { country: \"pk\", value: 210797836 }, // pakistan\n    { country: \"br\", value: 210301591 }, // brazil\n    { country: \"ng\", value: 208679114 }, // nigeria\n    { country: \"bd\", value: 161062905 }, // bangladesh\n    { country: \"ru\", value: 141944641 }, // russia\n    { country: \"mx\", value: 127318112 }, // mexico\n  ];\n\n  return (\n    \u003cdiv className=\"App\"\u003e\n      \u003cWorldMap\n        color=\"red\"\n        title=\"Top 10 Populous Countries\"\n        value-suffix=\"people\"\n        size=\"lg\"\n        data={data}\n      /\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanivam%2Freact-svg-worldmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanivam%2Freact-svg-worldmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanivam%2Freact-svg-worldmap/lists"}