discord-interactions-js
discord-interactions-js copied to clipboard
Replace `tweetnacl` with `discord-verify`
The tweetnacl library has a massive impact on bot performance due to its usage of non-native code. discord-verify
uses new native methods for verification that results in a dramatic performance increase.
This was the real world performance benefits the Truth or Dare bot saw when they swapped off of discord-interactions
and deployed discord-verify
:
The library also protects against additional security concerns such as replay attacks.
Switching from TweetNaCl to Discord-Verify has been a game-changer for me. Thanks to Ian Mitchell's brilliant library, I've slashed CPU wall time, giving me the freedom to prioritize what truly matters in life. With the efficiency gains, I've been able to cherish precious moments with my wife, embark on the journey of starting a family, and achieve the dream of buying our first house.
Ian Mitchell's contribution to this shift cannot be overstated. His dedication to crafting an optimized and reliable library like Discord-Verify has not only improved my workflow but has also enriched my personal life beyond measure. Grateful doesn't begin to describe how I feel about the impact of his work. Here's to Ian Mitchell and the power of technology to enhance our lives in unexpected ways. Cheers to efficiency, family, and dreams realized!
yes tweetnacl slow native fast pls fix
https://x.com/advaithj1/status/1420696472933175297
Discord-verify is what I've been using for months now.
I use CF workers, the CF platform algorithm works perfectly & performantly.
Whenever anyone asks what I use to make HTTP Discord apps, this is what I and many others reccomend. It would be nice to see that community sentiment relfected here & I wholeheartedly say:
LGTM
Absolutely agree with whats been stated here, switching from discord-interactions to discord-verify dropped execution time dramatically for my workers