Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run NSFW.js on Cloudflare? #868

Open
ambrt opened this issue Jul 4, 2024 · 2 comments
Open

Is it possible to run NSFW.js on Cloudflare? #868

ambrt opened this issue Jul 4, 2024 · 2 comments

Comments

@ambrt
Copy link

ambrt commented Jul 4, 2024

I'm seeking a cloud host for NSFW.js and wonder if Cloudflare Workers can do it.

Can anyone share some experience?

@L4Ph
Copy link

L4Ph commented Jul 11, 2024

I'm not sure how long my motivation will last, but I'm creating something like this now.
https://github.com/L4Ph/nsfwts

Furthermore, in the project I'm contributing to, I've implemented it as follows and confirmed it's working on Remix (Cloudflare Pages).
https://github.com/aipictors/aipictors/blob/fd1adf889a8ea8ffa820f9e9bdde166f3ae43d60/app/routes/(%24lang).debug.nsfw/route.tsx
aipictors/aipictors#560

While the performance might depend on the CPU and memory available, I believe there's a high possibility that it can run on Cloudflare Workers since it's WASM (WebAssembly).

@ambrt
Copy link
Author

ambrt commented Aug 19, 2024

I might try and see.

I wonder if 128MB ram of worker would be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants