robo-identities/robo-identities-wasm
KoalaSat 424a297c30 Add docker generate builds wasm & android native (#17)
* Generate Builds

* Generate Android builds

* Last commit
2024-04-29 23:29:36 +00:00
..
2023-07-16 11:42:09 -07:00
2023-07-16 11:42:09 -07:00

Robo-identities

Robo-identities-wasm is a wasm-pack module that bundles robonames and robohash functionality in a easy to use NPM package.

Current WASM size is 1.1MB (bundles every background and green robot part as compressed webp). The different colors are generated via HUE rotation (saving 90% in the weight of the robot parts). Generating a 256x256 robohash takes ~40-50ms. The performance is slightly worse (+30%) than reading uncompressed .png files from the filesystem.

🚴 Usage

🛠️ Build with wasm-pack build

wasm-pack build

🔬 Test in Headless Browsers with wasm-pack test

wasm-pack test --headless --firefox

🎁 Publish to NPM with wasm-pack publish

wasm-pack publish

License

Licensed under either of