{"id":21519121,"url":"https://github.com/debski-patrick/ip-address-tracker","last_synced_at":"2026-04-18T14:31:59.930Z","repository":{"id":229814475,"uuid":"777699545","full_name":"debski-patrick/ip-address-tracker","owner":"debski-patrick","description":"📍 A website to track and obtain information based on an IP address or a domain. This is a solution to the IP address tracker challenge on Frontend Mentor. To get the IP Address info I used the IP Geolocation API by IPify. To generate the map I used Leaflet.js.","archived":false,"fork":false,"pushed_at":"2024-03-26T11:04:00.000Z","size":417,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T16:52:38.014Z","etag":null,"topics":["axios","frontend-mentor","ipify","javascript","leafletjs","reactjs","styled-components","vite"],"latest_commit_sha":null,"homepage":"https://ip-trackerr.vercel.app","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/debski-patrick.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-26T10:55:57.000Z","updated_at":"2024-05-16T08:26:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"04a2b526-d31a-4c1c-a101-c91328215919","html_url":"https://github.com/debski-patrick/ip-address-tracker","commit_stats":null,"previous_names":["spatz-pearl/ip-address-tracker","stefan2do/ip-address-tracker","stefan-todorovic12354/ip-address-tracker","debski-patrick/ip-address-tracker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/debski-patrick/ip-address-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debski-patrick%2Fip-address-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debski-patrick%2Fip-address-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debski-patrick%2Fip-address-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debski-patrick%2Fip-address-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debski-patrick","download_url":"https://codeload.github.com/debski-patrick/ip-address-tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debski-patrick%2Fip-address-tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31972284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["axios","frontend-mentor","ipify","javascript","leafletjs","reactjs","styled-components","vite"],"created_at":"2024-11-24T00:55:55.788Z","updated_at":"2026-04-18T14:31:59.910Z","avatar_url":"https://github.com/debski-patrick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# IP Address Tracker\n\n📍A website to track and obtain information based on an IP address or a domain. This is a solution to the [IP Address Tracker challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/ip-address-tracker-I8-0yYAH0). To get the IP Address info I used the [IP Geolocation API by IPify](https://geo.ipify.org/). To generate the map I used [LeafletJS](https://leafletjs.com/).\n\n[Live Page][live-page]\n\n\u003c/div\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eTable of contents\u003c/summary\u003e\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [Screenshots](#screenshots)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [What I learned](#what-i-learned)\n  - [Useful resources](#useful-resources)\n- [Author](#author)\n\n\u003c/details\u003e\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- View the optimal layout for each page depending on their device's screen size\n- See hover states for all interactive elements on the page\n- See their own IP address on the map on the initial page load\n- Search for any IP addresses or domains and see the key information and location\n\n### Screenshots\n\n\u003ctable\u003e\n        \u003ctr\u003e\n\t\t    \u003ctd\u003e\n                \u003cimg src=\"./screenshots/mobile.webp\" width=\"100%\" title=\"Mobile solution\"  /\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003cimg src=\"./screenshots/desktop.webp\" width=\"100%\" title=\"Desktop solution\"/\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n\u003c/table\u003e\n\n### Links\n\n- [Live Page][live-page]\n\n## My process\n\n### Built with\n\n- [React](https://reactjs.org/) - JS library\n- [Styled Components](https://styled-components.com/) - For styles\n- [Vitejs](https://vitejs.dev)\n- [Axios](https://axios-http.com)\n- [LeafletJS](https://leafletjs.com/) - For map generation\n- [IP Geolocation API by IPify](https://geo.ipify.org/) - To obtain the information of the IP or domain\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### What I learned\n\nThis challenge in particular was easy except for one thing: updating the map when getting the information, in the official Leaflet documentation it is made clear that the map is immutable, so I decided to investigate and found [React Leaflet](https://react-leaflet.js.org), which made it much easier for me. To update the map I used React's key.\n\nAt the end the code of the map is as follows:\n\n```js\n\u003cMapContainer\n  key={JSON.stringify([info.location.lat, info.location.lng])}\n  center={[info.location.lat || 0, info.location.lng || 0]}\n  zoom={17.5}\n  id=\"map\"\n\u003e\n  \u003cTileLayer\n    attribution='\u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors'\n    url=\"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png\"\n  /\u003e\n  \u003cMarker\n    position={[info.location.lat || 0, info.location.lng || 0]}\n    icon={locationIcon}\n  \u003e\u003c/Marker\u003e\n\u003c/MapContainer\u003e\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### Useful resources\n\n- [React Leaflet](https://react-leaflet.js.org) - Made it easy for me to use leaflet in React\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n[live-page]: https://ip-trackerr.vercel.app\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebski-patrick%2Fip-address-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebski-patrick%2Fip-address-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebski-patrick%2Fip-address-tracker/lists"}