{"id":19900105,"url":"https://github.com/m-lab/msak-js","last_synced_at":"2026-05-03T23:09:37.726Z","repository":{"id":192829291,"uuid":"687478391","full_name":"m-lab/msak-js","owner":"m-lab","description":"JavaScript client for MSAK's multi-stream throughput measurement protocol","archived":false,"fork":false,"pushed_at":"2026-05-03T21:51:28.000Z","size":185,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-05-03T22:25:30.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-lab.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2023-09-05T12:44:12.000Z","updated_at":"2026-05-03T21:49:50.000Z","dependencies_parsed_at":"2023-09-06T01:34:18.684Z","dependency_job_id":"f9f2c507-5652-4b52-b2a9-0230ae725ef5","html_url":"https://github.com/m-lab/msak-js","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"c12b83ebc63f63e1dc43e81093b91c7c273d360b"},"previous_names":["m-lab/msak-js"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/m-lab/msak-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fmsak-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fmsak-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fmsak-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fmsak-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-lab","download_url":"https://codeload.github.com/m-lab/msak-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fmsak-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32587836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"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":[],"created_at":"2024-11-12T20:11:11.731Z","updated_at":"2026-05-03T23:09:37.699Z","avatar_url":"https://github.com/m-lab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# msak-js\n\nJavaScript client library for the [MSAK](https://github.com/m-lab/msak)\nmulti-stream throughput measurement protocol.\n\n## How to build\n\nA [Node.js](https://nodejs.org/) environment (preferably the latest LTS, 20.x)\nis required.\n\n```bash\n# Clone the repository\ngit clone https://github.com/m-lab/msak-js\ncd msak-js\n\n# Install dependencies\n$ npm install\n\n# Build the project\n$ npm run build-prod\n```\n\nThis will build the library and write the resulting UMD module in `dist/msak.js`\n\n## How to use\n\nInclude `msak.js` in your HTML page:\n\n```html\n \u003cscript src=\"msak.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\n\nCreate a new `msak.Client`, specifying your client name and version and providing your custom callbacks:\n\n```js\nlet client = new msak.Client(CLIENTNAME, CLIENTVERSION, {\n    onDownloadResult: (result) =\u003e {\n        console.log(result);\n    },\n    onDownloadMeasurement: (measurement) =\u003e {\n        console.log(measurement);\n    },\n    onUploadResult: (result) =\u003e {\n        console.log(result);\n    },\n    onUploadMeasurement: (measurement) =\u003e {\n        console.log(measurement);\n    },\n    onError: (err) =\u003e {\n        console.log(\"error: \" + err);\n    }\n});\n```\n\nFor a complete example, see [index.html](index.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fmsak-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-lab%2Fmsak-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fmsak-js/lists"}