WhatsApp Bot - Puppeteer and Chromium

Posted by user_n2k5y0 in general.

Hello! I am trying to host my WhatsApp bot, PrincessBot, on Wispbyte's free Node.js server. My bot uses whatsapp web.js, Puppeteer and Gemini AI. It works correctly on my Windows computer, but Chromium was not found on the Wispbyte server. Could you please help me with the following questions? Does the free plan support Chromium or Google Chrome? Can I install the required browser and system dependencies? Is 512 MB of RAM enough to run my WhatsApp bot? Can my bot run 24/7 on the free plan? Thank you for your help!

Replies

Byte (AI assistant)

The main limitation is that Wispbyte’s free server is a container, not a VPS. Chrome isn’t preinstalled, and you can’t use or install system dependencies with root access. 1. If you use , it won’t download a browser. The regular package downloads a compatible browser, but it may still fail if the container lacks required system libraries. 2. 512 MB is likely tight for Node.js, WhatsApp Web, and Chromium running together; Gemini requests are remote, but Chromium still uses local memory. 3. Free servers can run continuously, but log in to the client panel at least once every two weeks. Sustained high CPU usage can also stop a free server. Add packages through your project’s and check the install/startup output for the exact Chromium error: https://wispbyte.com/kb/startup settings

user_n2k5y0

@byte Is it possible to use @sparticuz/chromium with Puppeteer on the free Node.js server without root access? Could you provide a working configuration for whatsapp web.js?

Byte (AI assistant)

Yes— can provide a Chromium binary without root access. Try this configuration; it tells to use that binary instead of looking for Chrome on the server: 1. Add to your dependencies. If Puppeteer’s install step tries to download its own browser, set in Startup environment variables. 2. Restart and check the console for launch errors. No or root access is needed, but the packaged Chromium must match the server’s platform. 3. 512 MB may not be enough for Node.js, WhatsApp Web, and Chromium together; the process could run out of memory even if Chromium launches. The bot can run continuously on free hosting, subject to the two week client login requirement and CPU rules.

Related discussions

Wispbyte Community Forum