{"id":39911591,"url":"https://github.com/henhouse/live-player-map","last_synced_at":"2026-01-18T16:31:00.881Z","repository":{"id":54475345,"uuid":"107182315","full_name":"henhouse/live-player-map","owner":"henhouse","description":"A simple API to return lat/long data for online players in a game world. Holds data in memory, and updates on scheduled intervals to prevent flood-abuse. Example map provided. Intended for use with WoW private servers.","archived":false,"fork":false,"pushed_at":"2017-10-18T00:58:13.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T06:50:02.149Z","etag":null,"topics":["mangos","oregoncore","trinitycore","wow-servers"],"latest_commit_sha":null,"homepage":"","language":"Go","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/henhouse.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}},"created_at":"2017-10-16T20:58:30.000Z","updated_at":"2023-02-20T06:12:02.000Z","dependencies_parsed_at":"2022-08-13T17:00:35.608Z","dependency_job_id":null,"html_url":"https://github.com/henhouse/live-player-map","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/henhouse/live-player-map","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henhouse%2Flive-player-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henhouse%2Flive-player-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henhouse%2Flive-player-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henhouse%2Flive-player-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henhouse","download_url":"https://codeload.github.com/henhouse/live-player-map/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henhouse%2Flive-player-map/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28541527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"last_error":"SSL_read: 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":["mangos","oregoncore","trinitycore","wow-servers"],"created_at":"2026-01-18T16:31:00.804Z","updated_at":"2026-01-18T16:31:00.874Z","avatar_url":"https://github.com/henhouse.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Live Player Map\n\n![Online map example](https://cdn.discordapp.com/attachments/184738763589681153/369575727709945876/unknown.png)\n\nThis little program will provide a simple API to return all latitude/longitude locations of currently online players on a game realm (designed for use with WoW private servers). No IP/account references are sent from the API to the client, just coordinates.\nAdditionally supplied is an `index.html` file to display these locations on a map, given the user supplies his or her own [Mapbox](https://www.mapbox.com) API credentials.\n\nTo prevent abuse, it will check every minute to update its data, not on each `GET` request. There are no data stores, but instead caches the data in memory as it is assumed the program will be left running continuously. If used on a very large server with thousands of users needing to be queried frequently, a state service like MongoDB could easily be implemented, but it seems unnecessary. With the ability to query 150 IPs per minute, and with caching, it should keep up relatively well.\n\n### Requirements\n1. [Golang](https://golang.com) 1.x (built on 1.9)\n2. An MySQL `account` table with online accounts (real or fake). TrinityCore/MaNGOS/OregonCore, etc. Literally could be used for anything with online account tables with IP addresses in them, not just WoW servers.\n\n### Configuration\n1. Rename `config.go.dist` to `config.go`\n2. Edit newly renamed `config.go` file to set its MySQL credentials to the game server you're querying online accounts for.\n3. (Optional) To use an example map, edit the `index.html` file and change the [Mapbox](https://www.mapbox.com) credentials to your own. Change `localhost:8080` to a new URL if you are running the Go program from a different location than localhost.\n\n### Usage\n1. Run `go get` in the Terminal/Command Prompt inside the program directory.\n2. Run `go build \u0026\u0026 ./live-player-map` in the Terminal (`go build \u0026\u0026 ./live-player-map.exe` for Windows)\n3. Run `index.html` in the browser with updated credentials to view data. \n\n### Notes\nThis program utilizes the free [ip-api](http://ip-api.com/) API to lookup IP address information. Due to its limitation of 150 \nrequests per minute, we have an internal counter to not exceed that threshold, and once hit, waits 1 minute before resuming.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenhouse%2Flive-player-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenhouse%2Flive-player-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenhouse%2Flive-player-map/lists"}