runtime-node icon indicating copy to clipboard operation
runtime-node copied to clipboard

Bun Support

Open Wuemeli opened this issue 3 months ago • 2 comments

After removing the Bun warning, everything seems to be working fine. Maybe Bun has added enough Node compatibility since you last checked.

https://github.com/AikidoSec/firewall-node/blob/b715fe74193a42931e1d62e79a7d2fef47cb283d/library/helpers/isFirewallSupported.ts#L8

Wuemeli avatar Sep 14 '25 09:09 Wuemeli

Hi @Wuemeli, We will check Bun compatibility again. Please note that we currently only support CommonJS and not ESM. If you set the environment variable AIKIDO_DEBUG to true, you should see messages in the format Aikido: package@version is supported! for e.g. your web framework and database library. If you do not see these messages, something is not working as expected.

timokoessler avatar Sep 14 '25 10:09 timokoessler

I would not recommend disabling the runtime detection and using Zen with Bun. Currently, most features, such as protection against injections, will not work. We also don't support Bun-specific APIs, such as the built-in web server.

timokoessler avatar Sep 15 '25 10:09 timokoessler