
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@gomander/napi-gif-encoder
Advanced tools
napi-gif-encoder
A faster GIF Encoder for Node JS using Rust
This library is a fork of @tyrone-sudeium/napi-gif-encoder.
I made this fork because the original is not currently being maintained, and I
needed a new feature added.
npm install @gomander/napi-gif-encoder
Linux x64/aarch64 | Windows x64 |
---|---|
✓ | ✓ |
Theoretically, any version of Node that supports N-API should work. The CI is validated against LTS versions of Node:
Node 18 | Node 20 | Node 22 |
---|---|---|
✓ | ✓ | ✓ |
If you are using this as a dependency, since we use N-API, you don't need to build anything! However, if you want to tinker with this code or submit a PR, read below.
Rust
. Suggest using rustup. If on
Windows, use WSL for an easier time.NodeJS@18+
. LTS versions suggested.yarn@1.x
.yarn
.You can then compile the rust code with yarn build
.
After running yarn build
, you will see a
napi-gif-encoder.<PLATFORM>.node
file in the project root.
This is the native addon built from lib.rs.
yarn
yarn build
cd sample
yarn
node .
You'll then see output.gif
, which was encoded using the rust encoder.
You can compare this to a Node-based GIF encoder by running node . --js
.
This data is a ten-run average of the time it took to encode the sample project
on a Ryzen 7 7800X3D.
Historical data from the original author also suggests that this library scales
better with more cores than Node-based GIF encoders.
Encoder | Time |
---|---|
gif-encoder-2 | 692ms |
napi-gif-encoder | 250ms |
FAQs
A faster GIF Encoder for Node JS using Rust
The npm package @gomander/napi-gif-encoder receives a total of 0 weekly downloads. As such, @gomander/napi-gif-encoder popularity was classified as not popular.
We found that @gomander/napi-gif-encoder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.