{"id":26155423,"url":"https://github.com/ianlucas/cs2-lib","last_synced_at":"2026-04-29T18:01:40.781Z","repository":{"id":204308909,"uuid":"625328435","full_name":"ianlucas/cs2-lib","owner":"ianlucas","description":"A TypeScript library for reading and manipulating Counter-Strike 2 game data","archived":false,"fork":false,"pushed_at":"2026-04-21T01:48:44.000Z","size":419852,"stargazers_count":34,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-21T02:42:48.011Z","etag":null,"topics":["counter-strike-2","cs2","typescript"],"latest_commit_sha":null,"homepage":"https://ianlucas.github.io/cs2-lib/","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/ianlucas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","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-04-08T19:17:45.000Z","updated_at":"2026-04-21T00:57:08.000Z","dependencies_parsed_at":"2025-12-01T12:12:07.513Z","dependency_job_id":null,"html_url":"https://github.com/ianlucas/cs2-lib","commit_stats":null,"previous_names":["ianlucas/cslib","ianlucas/cs2-lib"],"tags_count":72,"template":false,"template_full_name":null,"purl":"pkg:github/ianlucas/cs2-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianlucas%2Fcs2-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianlucas%2Fcs2-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianlucas%2Fcs2-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianlucas%2Fcs2-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianlucas","download_url":"https://codeload.github.com/ianlucas/cs2-lib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianlucas%2Fcs2-lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32437111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T17:34:55.123Z","status":"ssl_error","status_checked_at":"2026-04-29T17:34:45.749Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["counter-strike-2","cs2","typescript"],"created_at":"2025-03-11T08:53:23.155Z","updated_at":"2026-04-29T18:01:40.740Z","avatar_url":"https://github.com/ianlucas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cs2-lib\n\n\u003e A TypeScript library for manipulating Counter-Strike 2 data\n\nThis library contains items and data from Counter-Strike 2, including utility functions and classes for interacting with them using TypeScript.\n\n## Install\n\n```sh\nnpm install @ianlucas/cs2-lib\n```\n\n## Usage\n\n```typescript\nimport { CS2Economy, CS2_ITEMS } from \"@ianlucas/cs2-lib\";\nimport { english } from \"@ianlucas/cs2-lib/translations\";\n\nCS2Economy.use({\n    items: CS2_ITEMS,\n    language: english\n});\n\nconst item = CS2Economy.getById(307);\n\nitem.name;\n//=\u003e \"AWP | Dragon Lore\"\n```\n\n## Download asset images\n\nBy default the library uses my CDN at `cdn.cstrike.app` for image URLs. If you need to self-host your content, you can find and download the latest images at [cs2-lib-assets repository](https://github.com/ianlucas/cs2-lib-assets). Make sure to point the assets base URL to your website:\n\n```typescript\nCS2Economy.use({\n    assetsBaseUrl: \"https://your-website.com/assets\",\n    items: CS2_ITEMS,\n    language: english\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianlucas%2Fcs2-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianlucas%2Fcs2-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianlucas%2Fcs2-lib/lists"}