{"id":21500493,"url":"https://github.com/node-libraries/wasm-avif-encoder","last_synced_at":"2026-02-14T20:35:27.494Z","repository":{"id":222749654,"uuid":"758263149","full_name":"node-libraries/wasm-avif-encoder","owner":"node-libraries","description":"WebAssembly avif encoder with WebWorker support","archived":false,"fork":false,"pushed_at":"2024-08-31T00:19:24.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T02:32:43.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/node-libraries.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":"2024-02-16T00:03:49.000Z","updated_at":"2024-08-31T00:19:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2784a46-ab94-45e1-95b4-d6166e50cbee","html_url":"https://github.com/node-libraries/wasm-avif-encoder","commit_stats":null,"previous_names":["node-libraries/wasm-avif-encoder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/node-libraries/wasm-avif-encoder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fwasm-avif-encoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fwasm-avif-encoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fwasm-avif-encoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fwasm-avif-encoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-libraries","download_url":"https://codeload.github.com/node-libraries/wasm-avif-encoder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-libraries%2Fwasm-avif-encoder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29455358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-23T17:41:56.822Z","updated_at":"2026-02-14T20:35:27.477Z","avatar_url":"https://github.com/node-libraries.png","language":"Makefile","readme":"# @node-libraries/wasm-avif-encoder\n\n# Overview\n\nProvides the ability to encode WebP using WebAssembly and WebWorker.\n\nRemix(esbuild) and Next.js(webpack) are supported.\n\n# types\n\n```ts\nencode(params:{data: BufferSource, width: number, height: number, quality?: number}): Promise\u003cUint8Array | null\u003e\n```\n\n```ts\nencode(params:{data: ImageData, quality?: number}): Promise\u003cUint8Array | null\u003e\n```\n\n# usage\n\n```ts\nimport { encode } from '@node-libraries/wasm-avif-encoder';\n\n// Next.js(webpack)\nconst encodedValue = await encode({ data: ctx.getImageData(0, 0, img.width, img.height) });\nconst encodedValue2 = await encode({ data: arrayBuffer, width, height });\n\n// Remix(esbuild)\n// Files need to be installed manually\n// node_modules/@node-libraries/wasm-webp-encoder/dist  =\u003e\n//   public/avif/worker.js\n//   public/avif/avif.js\n//   public/avif/avif.wasm\nconst encodedValue3 = await encode({ data: arrayBuffer, width, height, worker: '/avif/worker.js' });\n```\n\n# Sample when used with Next.js\n\n- https://github.com/SoraKumo001/next-webp\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Fwasm-avif-encoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-libraries%2Fwasm-avif-encoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-libraries%2Fwasm-avif-encoder/lists"}