{"id":24300547,"url":"https://github.com/oasislabs/wasm-sourcemap","last_synced_at":"2025-09-26T02:31:38.436Z","repository":{"id":97966040,"uuid":"188279101","full_name":"oasislabs/wasm-sourcemap","owner":"oasislabs","description":"Source Map Utility for WASM Buffers","archived":false,"fork":false,"pushed_at":"2023-05-01T04:54:46.000Z","size":68,"stargazers_count":9,"open_issues_count":4,"forks_count":5,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-12-14T22:16:07.573Z","etag":null,"topics":["sourcemap","tooling","wasm"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oasislabs.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-23T17:33:32.000Z","updated_at":"2024-08-03T09:28:25.000Z","dependencies_parsed_at":"2024-06-19T00:21:51.610Z","dependency_job_id":"6d0d6319-b935-4601-9735-e9d40aad2532","html_url":"https://github.com/oasislabs/wasm-sourcemap","commit_stats":{"total_commits":8,"total_committers":3,"mean_commits":"2.6666666666666665","dds":0.5,"last_synced_commit":"77242f93ebd010cf69515d988b984244a119dd9d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasislabs%2Fwasm-sourcemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasislabs%2Fwasm-sourcemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasislabs%2Fwasm-sourcemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasislabs%2Fwasm-sourcemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oasislabs","download_url":"https://codeload.github.com/oasislabs/wasm-sourcemap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234167557,"owners_count":18790110,"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":["sourcemap","tooling","wasm"],"created_at":"2025-01-16T23:14:36.096Z","updated_at":"2025-09-26T02:31:38.146Z","avatar_url":"https://github.com/oasislabs.png","language":"JavaScript","readme":"WASM Sourcemaps\n===\n\nSourcemaps provide a working path to step-through\ndebugging in WebAssembly code, but with a caveat:\n\nThe interface for execution of WebAssembly is\n\n```javascript\nWebAssembly.instantiate(bufferSource, importObject);\n```\n\nWhere the module is provided as a byte buffer, divorced\nfrom it's provinance, of where the source was loaded from.\nAs such, there's no way for relative source maps to be loaded,\nsince the browser cannot connect what such a URL is relative to.\n\nThis module allows runtime re-writing of the source code link\nto address this annoyance.\n\nUsage\n---\n\n```javascript\nconst wasmmap = require('wasm-sourcemap');\nbufferSource = wasmmap.SetSourceMapURLRelativeTo(\n    bufferSource,\n    window.location.href);\n```\n\nAPI\n---\n\n* `GetSourceMapURL` returns the URL set as the sourcemap URL for a buffer, if set.\n* `RemoveSourceMapURL` returns a stripped version of a WASM buffer stripped of its sourcemap URL section, if present.\n* `SetSourceMapURL` returns an updated version of a WASM buffer with its sourcemap URL updated to a provided absolute URL.\n* `SetSourceMapURLRelativeTo` returns an updated version of a WASM buffer with its sourcemap URL updated to an absolute URL relative to a provided URL.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasislabs%2Fwasm-sourcemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foasislabs%2Fwasm-sourcemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasislabs%2Fwasm-sourcemap/lists"}