Proman4713 🇵🇸
Explore posts from serversCDCloudflare Developers
•Created by Proman4713 🇵🇸 on 12/19/2024 in #workers-help
Jimp and canvas on cloudflare workers
I need to generate a simple image using certain variables for my app's users to print... I was thinking of using Jimp and Canvas to create the image on the fly and return it as a response to the users. I want this to run on my Cloudflare worker since my main API is also there, and I've already gone through a lot of work to be able to make the API work on a worker, this was due to various node compatibility issues, but... I made it work!
I can't put my API on an actual server right now because the project's current state still doesn't make it worth the time or money to host a server. Besides that, I've gotten so comfortable with Workers that I can't imagine using ExpressJS or something similar.
So, is there a way I can use Jimp or canvas on Cloudflare workers? Because right now they seem to be giving me trouble
10 replies
CDCloudflare Developers
•Created by Proman4713 🇵🇸 on 6/29/2024 in #workers-help
Bcrypt on Cloudflare Workers
I originally sent this in #coding-help but I think this is a better channel...
How can I hash data using Bcrypt on Cloudflare Workers? (I'm using Wrangler CLI with NodeJS compatibility fyi)
I managed to do SHA-256 (with my own salting system by concatenating the salt to the password before hashing) using the NodeJS crypto.subtle module, which is provided by Cloudflare Workers with node compatibility.
I want the hashing to be more secure by using Bcrypt, but I don't know how I can do that on Cloudflare Workers
17 replies
DIAdiscord.js - Imagine an app
•Created by Proman4713 🇵🇸 on 2/8/2024 in #djs-voice
AudioPlayerState randomly turns to Idle after a while
Question was too long for discord, I made a stack overflow question and here's the link: https://stackoverflow.com/questions/77960972/discord-bot-player-state-randomly-changing-to-idle-and-therefore-stopping-playba
90 replies