{"id":15168682,"url":"https://github.com/denosaurs/pngs","last_synced_at":"2025-10-08T04:07:47.272Z","repository":{"id":62421927,"uuid":"338955348","full_name":"denosaurs/pngs","owner":"denosaurs","description":"📷 A simple wasm png encoder/decoder module for deno","archived":false,"fork":false,"pushed_at":"2025-02-10T17:54:38.000Z","size":398,"stargazers_count":28,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-11T13:35:56.931Z","etag":null,"topics":["decoding","deno","encoding","image","png","png-decoder","png-encoder","wasm"],"latest_commit_sha":null,"homepage":"https://deno.land/x/pngs","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denosaurs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null},"funding":{"open_collective":"denosaurs","github":"denosaurs"}},"created_at":"2021-02-15T03:13:30.000Z","updated_at":"2025-09-08T22:07:20.000Z","dependencies_parsed_at":"2025-04-20T10:16:04.996Z","dependency_job_id":null,"html_url":"https://github.com/denosaurs/pngs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/denosaurs/pngs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fpngs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fpngs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fpngs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fpngs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denosaurs","download_url":"https://codeload.github.com/denosaurs/pngs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fpngs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278886839,"owners_count":26063059,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["decoding","deno","encoding","image","png","png-decoder","png-encoder","wasm"],"created_at":"2024-09-27T06:40:23.813Z","updated_at":"2025-10-08T04:07:47.231Z","avatar_url":"https://github.com/denosaurs.png","language":"TypeScript","funding_links":["https://opencollective.com/denosaurs","https://github.com/sponsors/denosaurs"],"categories":[],"sub_categories":[],"readme":"# pngs\n\n[![Tags](https://img.shields.io/github/release/denosaurs/pngs)](https://github.com/denosaurs/pngs/releases)\n[![CI Status](https://img.shields.io/github/workflow/status/denosaurs/pngs/check)](https://github.com/denosaurs/pngs/actions)\n[![Dependencies](https://img.shields.io/github/workflow/status/denosaurs/pngs/depsbot?label=dependencies)](https://github.com/denosaurs/depsbot)\n[![License](https://img.shields.io/github/license/denosaurs/pngs)](https://github.com/denosaurs/pngs/blob/master/LICENSE)\n\nA simple wasm png encoder/decoder module for deno using wasm.\n\n## Examples\n\n### Decoding\n\n```ts\nimport { decode } from \"https://deno.land/x/pngs/mod.ts\";\n\nconst file = await Deno.readFile(\"image.png\");\nconsole.log(decode(file));\n```\n\n### Encoding\n\n```ts\nimport { encode } from \"https://deno.land/x/pngs/mod.ts\";\n\n// An array containing a RGBA sequence where the first pixel is red and second is black\nconst data = new Uint8Array([255, 0, 0, 255, 0, 0, 0, 255]);\n// Encode the image to have width 2 and height 1 pixel\nconst png = encode(data, 2, 1);\n\nawait Deno.writeFile(\"image.png\", png);\n```\n\n## Maintainers\n\n- Elias Sjögreen ([@eliassjogreen](https://github.com/eliassjogreen))\n\n## Other\n\n### Related\n\n- [image-png](https://github.com/image-rs/image-png) - PNG decoding and encoding\n  library in pure Rust\n\n### Contribution\n\nPull request, issues and feedback are very welcome. Code style is formatted with\n`deno fmt` and commit messages are done following\n[Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec.\n\n### Licence\n\nCopyright 2021, Denosaurs. All rights reserved. MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fpngs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenosaurs%2Fpngs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fpngs/lists"}