{"id":15297265,"url":"https://github.com/tyrone-sudeium/napi-gif-encoder","last_synced_at":"2025-05-07T05:21:41.034Z","repository":{"id":36986226,"uuid":"326907786","full_name":"tyrone-sudeium/napi-gif-encoder","owner":"tyrone-sudeium","description":"GIF Encoder for Node JS that tries to have reasonable performance","archived":false,"fork":false,"pushed_at":"2023-01-20T22:50:29.000Z","size":10487,"stargazers_count":2,"open_issues_count":23,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-29T11:02:04.952Z","etag":null,"topics":["gif","gif-encoder","n-api","node-js","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/tyrone-sudeium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-05T06:28:31.000Z","updated_at":"2023-12-28T23:05:13.000Z","dependencies_parsed_at":"2023-02-12T06:30:23.543Z","dependency_job_id":null,"html_url":"https://github.com/tyrone-sudeium/napi-gif-encoder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"napi-rs/package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrone-sudeium%2Fnapi-gif-encoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrone-sudeium%2Fnapi-gif-encoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrone-sudeium%2Fnapi-gif-encoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyrone-sudeium%2Fnapi-gif-encoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyrone-sudeium","download_url":"https://codeload.github.com/tyrone-sudeium/napi-gif-encoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252819048,"owners_count":21808964,"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":["gif","gif-encoder","n-api","node-js","rust"],"created_at":"2024-09-30T19:16:08.347Z","updated_at":"2025-05-07T05:21:41.013Z","avatar_url":"https://github.com/tyrone-sudeium.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `napi-gif-encoder`\n\n![https://github.com/tyrone-sudeium/napi-gif-encoder/actions](https://github.com/tyrone-sudeium/napi-gif-encoder/workflows/CI/badge.svg)\n\n\u003e GIF Encoder for Node JS that tries to have reasonable performance.\n\n## Install\n\n```\nyarn add @tyrone-sudeium/napi-gif-encoder\n```\n\n## Support matrix\n\n### Operating Systems\n\n| Linux x64/aarch64 | macOS x64/aarch64 | Windows x64 |\n| ----------------- | ----------------- | ----------- |\n| ✓                 | ✓                 | ✓           |\n\n### NodeJS\n\nTheoretically, any version of Node.js that supports N-API should work. The CI\nis validated against LTS versions of Node:\n\n| Node 12 | Node14 |\n| ------- | ------ |\n| ✓       | ✓      |\n\n### Building\n\nIf you are using this as a dependency, since we use N-API, you don't\nneed to build anything! However, if you want to tinker with this code\nor submit a PR, read below.\n\n## Developing\n\n- Install latest `Rust`. Suggest using [rustup](https://rustup.rs/).\n- Install `NodeJS@10+`. LTS versions suggested. Any version supporting `N-API` should work.\n- Install `yarn@1.x`.\n\nYou can then compile the rust code with:\n\n    yarn build\n\nAfter `yarn build/npm run build` command, you can see\n`napi-gif-encoder.[darwin|win32|linux].node` file in project root.\nThis is the native addon built from [lib.rs](./src/lib.rs).\n\n## Try out using sample project\n\n- `yarn`\n- `yarn build`\n- `cd sample`\n- `yarn`\n- `node index.js`\n\nYou'll then see `output.gif`, which was encoded using the rust encoder.\n\n### Performance\n\nUsing a Ryzen 3950X to encode the sample project:\n\n| Encoder                                                         | Time  |\n| --------------------------------------------------------------- | ----- |\n| [`gif-encoder-2`](https://github.com/benjaminadk/gif-encoder-2) | 787ms |\n| `napi-gif-encoder`                                              | 217ms |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrone-sudeium%2Fnapi-gif-encoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyrone-sudeium%2Fnapi-gif-encoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyrone-sudeium%2Fnapi-gif-encoder/lists"}