{"id":19149945,"url":"https://github.com/stouder-io/adonis-geolite2","last_synced_at":"2026-06-24T00:31:25.474Z","repository":{"id":65329881,"uuid":"589377561","full_name":"stouder-io/adonis-geolite2","owner":"stouder-io","description":"Maxmind's GeoLite2 integration for Adonis","archived":true,"fork":false,"pushed_at":"2026-02-09T21:42:50.000Z","size":298,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-10T04:21:44.449Z","etag":null,"topics":["adonis","adonisjs","geolite","geolite2","geolite2-asn","geolite2-city","geolite2-country","maxmind"],"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/stouder-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-01-16T00:24:38.000Z","updated_at":"2026-02-09T21:43:11.000Z","dependencies_parsed_at":"2025-01-01T22:12:09.239Z","dependency_job_id":"cd4aca95-9cfd-4aac-a192-1078759647a8","html_url":"https://github.com/stouder-io/adonis-geolite2","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"f6ef99c10c979b5060f7701d9215bcb498f34eec"},"previous_names":["stouderio/adonis-geolite2","xstoudi/adonis-geolite2","stouder-io/adonis-geolite2"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/stouder-io/adonis-geolite2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stouder-io%2Fadonis-geolite2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stouder-io%2Fadonis-geolite2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stouder-io%2Fadonis-geolite2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stouder-io%2Fadonis-geolite2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stouder-io","download_url":"https://codeload.github.com/stouder-io/adonis-geolite2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stouder-io%2Fadonis-geolite2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34712578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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":["adonis","adonisjs","geolite","geolite2","geolite2-asn","geolite2-city","geolite2-country","maxmind"],"created_at":"2024-11-09T08:10:09.230Z","updated_at":"2026-06-24T00:31:25.445Z","avatar_url":"https://github.com/stouder-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/2575182/236930626-40d7d2a8-2ded-4f72-a9e8-d8f4ce43ec79.png\" /\u003e\n  \u003ch3\u003e@stouder-io/adonis-geolite2\u003c/h3\u003e\n  \u003cp\u003eMaxmind's GeoLite2 integration for Adonis\u003c/p\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@stouder-io/adonis-geolite2\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@stouder-io/adonis-geolite2.svg?style=for-the-badge\u0026logo=npm\" /\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/npm/l/@stouder-io/adonis-geolite2?color=blueviolet\u0026style=for-the-badge\" /\u003e\n  \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/@stouder-io/adonis-geolite2?style=for-the-badge\"\u003e\n\u003c/div\u003e\n\n## Legal Warning\nThis package uses [geolite2-redist](https://www.npmjs.com/package/geolite2-redist) and thus, you MUST comply with it specifics conditions. For more informations please check their [npm page](https://www.npmjs.com/package/geolite2-redist#user-content-legal-warning).\n\n## Installation\n```\nnode ace add @stouder-io/adonis-geolite2\n```\n\nAlternatively, you can install it manually.\n```\nnpm i @stouder-io/adonis-geolite2\n```\n\nIf installed manually, you need to manually run the configuration command.\n```\nnode ace configure @stouder-io/adonis-geolite2\n```\n\n## Usage\nThe geolite2 is automatically attached to HTTP requests, allowing you to use it to retries informations about the geolocation of requesting IPs.\n```ts\nrouter.get('/', ({ geolite2 }: HttpContext) =\u003e {\n  const country = geolite2.country()\n  const city = geolite2.city()\n  const asn = geolite2.asn()\n\n  return { country, city, asn }\n})\n```\n\nIf no parameter is provided to the functions, it uses [`request.ip()`](https://docs.adonisjs.com/guides/request#request-ip-address). Alternatively you can pass the IP you want to lookup.\n\n```ts\nrouter.get('/', ({ geolite2 }: HttpContext) =\u003e {\n  const country = geolite2.country('8.8.8.8')\n  const city = geolite2.city('8.8.8.8')\n  const asn = geolite2.asn('8.8.8.8')\n\n  return { country, city, asn }\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstouder-io%2Fadonis-geolite2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstouder-io%2Fadonis-geolite2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstouder-io%2Fadonis-geolite2/lists"}