{"id":15354805,"url":"https://github.com/bokuweb/rust-wasm-png-decoder-example","last_synced_at":"2025-05-07T09:57:43.112Z","repository":{"id":66334415,"uuid":"113029475","full_name":"bokuweb/rust-wasm-png-decoder-example","owner":"bokuweb","description":"png decoder example by wasm32-unknown-unnkown.","archived":false,"fork":false,"pushed_at":"2023-12-15T02:17:09.000Z","size":82,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T09:57:35.474Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bokuweb.github.io/rust-wasm-png-decoder-example/index.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bokuweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-12-04T10:35:37.000Z","updated_at":"2019-04-20T13:57:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"47935bb5-e9da-43ee-a25a-d5ee91f2f05d","html_url":"https://github.com/bokuweb/rust-wasm-png-decoder-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokuweb%2Frust-wasm-png-decoder-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokuweb%2Frust-wasm-png-decoder-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokuweb%2Frust-wasm-png-decoder-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokuweb%2Frust-wasm-png-decoder-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bokuweb","download_url":"https://codeload.github.com/bokuweb/rust-wasm-png-decoder-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252856555,"owners_count":21814858,"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":[],"created_at":"2024-10-01T12:21:08.981Z","updated_at":"2025-05-07T09:57:43.093Z","avatar_url":"https://github.com/bokuweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-wasm-png-decoder-example\n\npng decoder example by wasm32-unknown-unnkown.\n\n## Requirements\n\n- NodeJS: v8+\n- GNU make\n- wasm-gc\n- rustc 1.24.0-nightly\n\n## Build\n\n```\nmake\n```\n\n## Run example\n\n```\nnpm i https://github.com/bokuweb/rust-wasm-png-decoder-example\n```\n\n```\nconst fs = require('fs');\nconst decode = require(\"wasm-png-decoder\");\nconsole.log(decode(fs.readFileSync('foo.png')));\n```\n\n## Benchmark\n\n```\n## 0.png\nrust-png wasm x 10,912 ops/sec ±0.87% (90 runs sampled)\npngjs x 2,882 ops/sec ±1.30% (85 runs sampled)\nFastest is rust-png wasm\n\n## 1.png\nrust-png wasm x 6,913 ops/sec ±14.55% (62 runs sampled)\npngjs x 2,839 ops/sec ±1.11% (89 runs sampled)\nFastest is rust-png wasm\n\n## 2.png\nrust-png wasm x 12,349 ops/sec ±1.83% (85 runs sampled)\npngjs x 2,839 ops/sec ±1.42% (90 runs sampled)\nFastest is rust-png wasm\n\n## 3.png\nrust-png wasm x 8,360 ops/sec ±0.84% (90 runs sampled)\npngjs x 2,801 ops/sec ±1.61% (88 runs sampled)\nFastest is rust-png wasm\n\n## 4.png\nrust-png wasm x 8,407 ops/sec ±1.08% (92 runs sampled)\npngjs x 6,935 ops/sec ±2.71% (85 runs sampled)\nFastest is rust-png wasm\n\n## 5.png\nrust-png wasm x 5,732 ops/sec ±1.49% (91 runs sampled)\npngjs x 2,414 ops/sec ±1.14% (90 runs sampled)\nFastest is rust-png wasm\n\n## 6.png\nrust-png wasm x 6,643 ops/sec ±1.01% (91 runs sampled)\npngjs x 7,138 ops/sec ±2.16% (80 runs sampled)\nFastest is pngjs\n\n## 7.png\nrust-png wasm x 2,220 ops/sec ±0.88% (90 runs sampled)\npngjs x 1,957 ops/sec ±1.28% (89 runs sampled)\nFastest is rust-png wasm\n\n## 8.png\nrust-png wasm x 11,944 ops/sec ±1.01% (91 runs sampled)\npngjs x 2,929 ops/sec ±1.12% (90 runs sampled)\nFastest is rust-png wasm\n\n## 9.png\nrust-png wasm x 5,229 ops/sec ±0.92% (87 runs sampled)\npngjs x 10,119 ops/sec ±1.12% (92 runs sampled)\nFastest is pngjs\n```\n\nhttps://bokuweb.github.io/rust-wasm-png-decoder-example/index.html\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbokuweb%2Frust-wasm-png-decoder-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbokuweb%2Frust-wasm-png-decoder-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbokuweb%2Frust-wasm-png-decoder-example/lists"}