Webassembly local loading setup
Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/nmr/skills/webassembly-local-loading-setup
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill webassembly-local-loading-setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when you have downloaded a web application (e.g., COLMARvista) that uses WebWorker and WebAssembly components and need to run it locally by opening index.html in a browser, rather than accessing it through a web server.
The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
7.4 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
webassembly-local-loading-setup
Summary
Configure browser security policies to enable local loading of WebWorker and WebAssembly modules when running HTML applications from the file system. This skill is essential for developing and testing web applications that use WebAssembly or Web Workers offline, without requiring a network server.
When to use
Apply this skill when you have downloaded a web application (e.g., COLMARvista) that uses WebWorker and WebAssembly components and need to run it locally by opening index.html in a browser, rather than accessing it through a web server. The symptom is cross-origin or file-access policy errors preventing WebWorker or WebAssembly initialization when loading from file://.
When NOT to use
- You are accessing the application through an HTTP or HTTPS web server—browser security policies are then correctly enforced by the server, and this configuration is unnecessary and introduces security risk.
- The application is already a network-deployed service where users should not be modifying their browser security settings.
- You are working in a production or shared computing environment where modifying individual browser configurations is prohibited or poses organizational security risk.
Inputs
- index.html file (HTML entry point)
- WebAssembly module files (.wasm)
- WebWorker script files (.js)
- Browser executable or application path
Outputs
- Configured browser instance with relaxed file-access policies
- Successfully loaded and initialized WebWorker and WebAssembly components in local context
- Error-free console output indicating no cross-origin or file-access policy violations
How to apply
Identify which browser you are using (Google Chrome, Mozilla Firefox, or Safari) and apply the corresponding configuration change to relax local file-access restrictions. For Chrome, append the --allow-file-access-from-files flag to the executable target path in browser properties. For Firefox, navigate to about:config and set security.fileuri.strict_origin_policy to false. For Safari, enable 'Disable Local File Restrictions' via the Develop menu after first enabling the Develop menu in Advanced settings. After configuration, restart the browser, load index.html locally, and verify that WebWorker and WebAssembly components initialize without cross-origin or file-access policy errors.
Related tools
- Google Chrome (Browser engine requiring --allow-file-access-from-files flag to permit local WebWorker and WebAssembly execution)
- Mozilla Firefox (Browser engine requiring security.fileuri.strict_origin_policy set to false in about:config for local WebWorker and WebAssembly loading)
- Safari (Browser engine requiring 'Disable Local File Restrictions' enabled via the Develop menu for local WebWorker and WebAssembly execution)
- WebWorker (JavaScript API for background threading; cannot load automatically from local files without configuration)
- WebAssembly (Binary module format for high-performance computation; cannot load automatically from local files without configuration)
- COLMARvista (Reference web-based NMR spectra viewer application demonstrating the local loading setup requirement) — https://github.com/lidawei1975/colmarvista
Evaluation signals
- WebWorker and WebAssembly components initialize without cross-origin errors in browser console
- index.html loads and displays full application functionality when opened locally via file:// protocol
- No security policy violation warnings or file-access denied messages appear in browser developer console
- Application data processing (e.g., NMR spectra rendering in COLMARvista) executes correctly after local configuration
Limitations
- Modifying these browser settings poses a security risk and should only be done when loading local files you are certain are safe, as documented in the README warning.
- Configuration is browser-specific and must be repeated separately for each browser engine used for development or testing.
- These settings apply globally to the browser instance, not per-application, so they affect all local file access from that browser instance.
- For production or end-user deployment, applications should be served via a proper web server rather than relying on local file-access configuration.
Evidence
- [readme] This program uses WebWorker and WebAssembly, which cannot be loaded automatically when run locally unless you modify your browser settings.: "This program uses WebWorker and WebAssembly, which cannot be loaded automatically when run locally unless you modify your browser settings."
- [intro] For Google Chrome, access browser properties and enable the flag permitting local file WebWorker and WebAssembly execution.: "For Google Chrome, access browser properties and enable the flag permitting local file WebWorker and WebAssembly execution."
- [readme] In the "Target" field, add the following flag to the end of the existing path: --allow-file-access-from-files.: "In the "Target" field, add the following flag to the end of the existing path: --allow-file-access-from-files."
- [readme] Search for security.fileuri.strict_origin_policy in the configuration page. Change its value to false.: "Search for security.fileuri.strict_origin_policy in the configuration page. Change its value to false."
- [readme] In the menu bar, click "Develop" and select "Disable Local File Restrictions.": "In the menu bar, click "Develop" and select "Disable Local File Restrictions.""
- [intro] Verify each configuration by loading index.html locally and confirming WebWorker and WebAssembly components initialize without cross-origin or file-access policy errors.: "Verify each configuration by loading index.html locally and confirming WebWorker and WebAssembly components initialize without cross-origin or file-access policy errors."
- [readme] Warning: Modifying these settings poses a security risk. Do not load any local files unless you are certain they are safe.: "Warning: Modifying these settings poses a security risk. Do not load any local files unless you are certain they are safe."