{"id":18740334,"url":"https://github.com/richrd/teeworlds-econ","last_synced_at":"2025-10-13T01:04:42.209Z","repository":{"id":42866756,"uuid":"255604781","full_name":"richrd/teeworlds-econ","owner":"richrd","description":"Node.js API for communicating with a Teeworlds server via Econ.","archived":false,"fork":false,"pushed_at":"2022-12-12T14:36:45.000Z","size":374,"stargazers_count":0,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-04T18:09:06.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/richrd.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}},"created_at":"2020-04-14T12:36:12.000Z","updated_at":"2020-04-26T15:19:48.000Z","dependencies_parsed_at":"2023-01-27T20:46:29.790Z","dependency_job_id":null,"html_url":"https://github.com/richrd/teeworlds-econ","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/richrd/teeworlds-econ","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richrd%2Fteeworlds-econ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richrd%2Fteeworlds-econ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richrd%2Fteeworlds-econ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richrd%2Fteeworlds-econ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richrd","download_url":"https://codeload.github.com/richrd/teeworlds-econ/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richrd%2Fteeworlds-econ/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263594622,"owners_count":23485877,"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":[],"created_at":"2024-11-07T15:39:01.497Z","updated_at":"2025-10-13T01:04:37.183Z","avatar_url":"https://github.com/richrd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Teeworlds Econ API\n\nWith Teeworlds Econ API you can intereact with Teeworlds via its Econ cosole.\nThis lets you conveniently react to any events on the server as well as send\ncommands to it and respond to the results. The `TwEconCLient` provodes a basic\nAPI for interaction, listening to events and sending commands. `TwStateManager`\non the other hand is a higher level abstraction that keeps track of server\nstate and game state as well as some other things.\n\n\n## Prerequisites\n\nTo use this you need a Teeworlds server with econ enabled. To enable it add the\nfollowing to your Teeworlds server config:\n\n```\nec_port [port]\nec_password [password]\n```\n\nIf you plan on connecting to econ from a different machine than the Teeworlds\nserver itself you also need to add this to your config:\n\n```\nec_bindaddr 0.0.0.0\n```\n\n\n## Usage\n\n```\nimport { TwEconClient } from \"./TwEconClient\";\n\nconst host = \"localhost\"\nconst port = 8303\nconst password = \"secret\"\n\nconst econClient = new TwEconClient(host, port, password);\n\necon.connect();\n```\n\n\n## Developing \n\n```\nyarn install\nyarn dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichrd%2Fteeworlds-econ","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichrd%2Fteeworlds-econ","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichrd%2Fteeworlds-econ/lists"}