Skip to content

Repository

神代綺凛 edited this page Sep 10, 2025 · 2 revisions

The repository feature allows as-web to browse a series of Asset Bundles online.

Usage

Before using this feature, you must first install a userscript, as this functionality requires cross-origin requests.

image

After installation, simply refresh the page.

Taking "Arknights" as an example, users can add @arkntools/as-web-repo-arknights.

image

Currently, I have only created this one repository. Maybe anyone will create repositories for other games in the future.

Development

For development, please refer to:

Simply put, you just need to implement a series of interfaces as defined in @arkntools/as-web-repo.

@arkntools/as-web-repo provides a request() method, which is equivalent to the userscript's GM_xmlhttpRequest(). Please use it for cross-origin requests.

After completion, bundle the code into a single JS ESM module file and publish it to NPM or any accessible URL, then it can be added and used.

Other details

Asset Bundle list and files are cached to IndexedDB, and cached data will be used directly when no version updates are detected.

Clone this wiki locally