{"id":13341471,"url":"https://github.com/markus-wa/demoinfocs-wasm","last_synced_at":"2026-02-09T07:48:17.773Z","repository":{"id":40552456,"uuid":"250885849","full_name":"markus-wa/demoinfocs-wasm","owner":"markus-wa","description":"Parsing CS:GO demos from JavaScript with WebAssemby. Example on how to use https://github.com/markus-wa/demoinfocs-golang with WASM.","archived":false,"fork":false,"pushed_at":"2023-06-01T04:57:11.000Z","size":220,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T06:46:34.186Z","etag":null,"topics":["counter-strike","counter-strike-global-offensive","csgo","demoinfo","go","golang","javascript","js","wasm","web-assembly"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/markus-wa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security-opts-chrome.json","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-28T20:20:34.000Z","updated_at":"2024-08-10T15:39:28.000Z","dependencies_parsed_at":"2024-10-24T02:07:17.896Z","dependency_job_id":"04c89179-c607-4a09-9548-1d9433ec9084","html_url":"https://github.com/markus-wa/demoinfocs-wasm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markus-wa%2Fdemoinfocs-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markus-wa%2Fdemoinfocs-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markus-wa%2Fdemoinfocs-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markus-wa%2Fdemoinfocs-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markus-wa","download_url":"https://codeload.github.com/markus-wa/demoinfocs-wasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243115385,"owners_count":20238751,"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":["counter-strike","counter-strike-global-offensive","csgo","demoinfo","go","golang","javascript","js","wasm","web-assembly"],"created_at":"2024-07-29T19:25:28.519Z","updated_at":"2026-02-09T07:48:17.720Z","avatar_url":"https://github.com/markus-wa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# demoinfocs-wasm example\n\nThis repo demonstrates how [demoinfocs-golang](https://github.com/markus-wa/demoinfocs-golang) can be used from JavaScript with [WebAssembly](https://webassembly.org/) (WASM).\n\n## Interesting files\n\n- [`app/web/index.html`](app/web/index.html) - HTML page for the UI, calls `app/web/main.js`\n- [`app/web/main.js`](app/web/main.js) - JS code that calls into `app/main.go` to parse selected files and displays results\n- [`app/main.go`](app/main.go) - demoinfocs-golang wrapper for WASM, exposes functions called from JS\n- [`app/Dockerfile`](app/Dockerfile) - Dockerized Go runner that builds the WASM binary\n- [`app/Makefile`](app/Makefile) - Makefile for building and running the demo app\n- [`app/web/wasm_exec.js`](app/web/wasm_exec.js) - this file is included in your Go installation (e.g. `/usr/share/go-1.13/misc/wasm/wasm_exec.js`)\n\n## Prerequisites\n\nTo run the example you need [`docker`](https://www.docker.com/get-started), [`docker-compose`](https://docs.docker.com/compose/install/) and [`make`](https://www.gnu.org/software/make/).\n\n## Running the example\n\n1. Execute `make run`\u003cbr\u003e\n   This builds and starts an [NGINX](https://nginx.org/en/) docker container with a webapp that can parse player stats from a CS:GO demo.\n\n2. Go to `http://localhost:8080` to see the demo app.\n\n![Demo app screenshot](https://gitlab.com/markus-wa/demoinfocs-wasm/raw/master/e2e/golden/stats.png)\n\n## Running tests for development\n\nTo run tests the test-demo `default.dem` needs to be downloaded using [Git LFS](https://git-lfs.github.com/) first.\nThis can be done with `git lfs pull -I '*'`.\n\nAfter this the you can run `make` for a full build including unit and end-to-end tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkus-wa%2Fdemoinfocs-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkus-wa%2Fdemoinfocs-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkus-wa%2Fdemoinfocs-wasm/lists"}