{"id":25080110,"url":"https://github.com/opengsq/opengsq-node","last_synced_at":"2025-05-13T00:10:12.870Z","repository":{"id":275482512,"uuid":"744792897","full_name":"opengsq/opengsq-node","owner":"opengsq","description":"Node.js library designed for querying game servers. It supports 1 query protocols.","archived":false,"fork":false,"pushed_at":"2025-05-05T22:56:58.000Z","size":464,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-13T00:10:04.087Z","etag":null,"topics":["game","game-server-query","opengsq","server-query","source","ts","typescript"],"latest_commit_sha":null,"homepage":"https://node.opengsq.com","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/opengsq.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-01-18T02:29:30.000Z","updated_at":"2025-03-21T20:38:44.000Z","dependencies_parsed_at":"2025-02-02T20:39:05.383Z","dependency_job_id":null,"html_url":"https://github.com/opengsq/opengsq-node","commit_stats":null,"previous_names":["opengsq/opengsq-node"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengsq%2Fopengsq-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengsq%2Fopengsq-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengsq%2Fopengsq-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opengsq%2Fopengsq-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opengsq","download_url":"https://codeload.github.com/opengsq/opengsq-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843215,"owners_count":21972873,"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":["game","game-server-query","opengsq","server-query","source","ts","typescript"],"created_at":"2025-02-07T03:17:57.931Z","updated_at":"2025-05-13T00:10:12.445Z","avatar_url":"https://github.com/opengsq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenGSQ Node Library\n\n[![Node.js Build](https://github.com/opengsq/opengsq-node/actions/workflows/node-build.yml/badge.svg)](https://github.com/opengsq/opengsq-node/actions/workflows/node-build.yml)\n![NPM Type Definitions](https://img.shields.io/npm/types/%40opengsq%2Fopengsq-node)\n[![NPM Version](https://img.shields.io/npm/v/%40opengsq%2Fopengsq-node)](https://www.npmjs.com/package/@opengsq/opengsq-node)\n![NPM Downloads](https://img.shields.io/npm/dw/%40opengsq%2Fopengsq-node)\n![NPM Downloads](https://img.shields.io/npm/d18m/%40opengsq%2Fopengsq-node)\n![Documentation](https://img.shields.io/badge/docs-typedoc-blue)\n[![GitHub license](https://img.shields.io/github/license/opengsq/opengsq-node)](https://github.com/opengsq/opengsq-node/blob/main/LICENSE)\n\nThe OpenGSQ Node library provides a convenient way to query servers from applications written in the TypeScript language.\n\n## Supported Protocols\n\nThe library supports a wide range of protocols. Here are some examples:\n\n```ts\nimport * as opengsq from '@opengsq/opengsq-node';\n```\n\n## Installation\n\nTo install `@opengsq/opengsq-node`, run the following command in your project directory:\n\n```sh\nnpm install -S @opengsq/opengsq-node\n```\n\n## Usage\n\nHere’s an example of how to query a server using the Source protocol:\n\n```ts\nimport * as opengsq from \"@opengsq/opengsq-node\";\n\nasync function main() {\n    const source = new opengsq.Source({\n        host: '91.216.250.10',\n        port: 27015\n    });\n\n    const info = await source.getInfo();\n    console.log(\"Info:\", info);\n\n    const players = await source.getPlayers();\n    console.log(\"Players:\", players);\n\n    const rules = await source.getRules();\n    console.log(\"Rules:\", rules);\n}\n\nmain();\n```\n\n## Contributing\nContributions are welcome! Please feel free to submit pull requests or open issues.\n\n![https://github.com/opengsq/opengsq-node/graphs/contributors](https://contrib.rocks/image?repo=opengsq/opengsq-node)\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/opengsq/opengsq-node.svg?variant=adaptive)](https://starchart.cc/opengsq/opengsq-node)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengsq%2Fopengsq-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopengsq%2Fopengsq-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengsq%2Fopengsq-node/lists"}