{"id":19237969,"url":"https://github.com/svtslv/nestjs-geoip2","last_synced_at":"2025-08-30T05:11:25.200Z","repository":{"id":38615747,"uuid":"243879453","full_name":"svtslv/nestjs-geoip2","owner":"svtslv","description":"Maxmind GeoIP2 module for Nest","archived":false,"fork":false,"pushed_at":"2024-06-18T01:17:11.000Z","size":1748,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T11:59:33.791Z","etag":null,"topics":["geoip2","maxmind","nest","nestjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/svtslv.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-02-29T00:36:20.000Z","updated_at":"2022-12-14T23:12:58.000Z","dependencies_parsed_at":"2023-02-01T01:45:45.900Z","dependency_job_id":"46835c45-5f1d-4be3-bd1b-350df35b940b","html_url":"https://github.com/svtslv/nestjs-geoip2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/svtslv/nestjs-geoip2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fnestjs-geoip2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fnestjs-geoip2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fnestjs-geoip2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fnestjs-geoip2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svtslv","download_url":"https://codeload.github.com/svtslv/nestjs-geoip2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fnestjs-geoip2/sbom","scorecard":{"id":861418,"data":{"date":"2025-08-11","repo":{"name":"github.com/svtslv/nestjs-geoip2","commit":"2bd6d120583ab94aeb09d4b1b92d58e73914679c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 15 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-cj7v-w2c7-cp7c","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T01:23:08.640Z","repository_id":38615747,"created_at":"2025-08-24T01:23:08.640Z","updated_at":"2025-08-24T01:23:08.640Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272805572,"owners_count":24995916,"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-08-30T02:00:09.474Z","response_time":77,"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":["geoip2","maxmind","nest","nestjs"],"created_at":"2024-11-09T16:28:52.208Z","updated_at":"2025-08-30T05:11:25.182Z","avatar_url":"https://github.com/svtslv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestJS GeoIP2\n\n\u003ca href=\"https://www.npmjs.com/package/nestjs-geoip2\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/nestjs-geoip2.svg\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/nestjs-geoip2\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/nestjs-geoip2.svg\" alt=\"Package License\" /\u003e\u003c/a\u003e\n\n## Table of Contents\n\n- [Description](#description)\n- [Installation](#installation)\n- [Examples](#examples)\n- [License](#license)\n\n## Description\nIntegrates MaxMind GeoIP2 with Nest\n\n## Installation\n\n```sh\nnpm install nestjs-geoip2 @maxmind/geoip2-node\n```\n\nYou can also use the interactive CLI\n\n```sh\nnpx nestjs-modules\n```\n\n## Examples\n\n```sh\nnpx geoip2-cli --download --licenseKey=MAXMIND_LICENSE_KEY\n```\n\n### GeoIP2Module.forRoot(options, connection?)\n\n```ts\nimport { Module } from '@nestjs/common';\nimport { GeoIP2Module } from 'nestjs-geoip2';\nimport { AppController } from './app.controller';\nimport { join } from 'path';\n\n@Module({\n  imports: [\n    GeoIP2Module.forRoot({\n      config: {\n        file: join(process.cwd(), 'geoip2-cli', 'GeoLite2-City.mmdb'),\n      },\n    }),\n  ],\n  controllers: [AppController],\n})\nexport class AppModule {}\n```\n\n### GeoIP2Module.forRootAsync(options, connection?)\n\n```ts\nimport { Module } from '@nestjs/common';\nimport { GeoIP2Module } from 'nestjs-geoip2';\nimport { AppController } from './app.controller';\nimport { join } from 'path';\n\n@Module({\n  imports: [\n    GeoIP2Module.forRootAsync({\n      useFactory: () =\u003e ({\n        config: {\n          file: join(process.cwd(), 'geoip2-cli', 'GeoLite2-City.mmdb'),\n        },\n      }),\n    }),\n  ],\n  controllers: [AppController],\n})\nexport class AppModule {}\n```\n\n### InjectGeoIP2(connection?)\n\n```ts\nimport { Controller, Get, } from '@nestjs/common';\nimport { InjectGeoIP2, GeoIP2 } from 'nestjs-geoip2';\n\n@Controller()\nexport class AppController {\n  constructor(\n    @InjectGeoIP2() private readonly geoIP2: GeoIP2,\n  ) {}\n\n  @Get()\n  async getHello() {\n    return await this.geoIP2.city('8.8.8.8');\n  }\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvtslv%2Fnestjs-geoip2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvtslv%2Fnestjs-geoip2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvtslv%2Fnestjs-geoip2/lists"}