Bun with ElasticSearch client?
Hi, I'm developing an API using Bun.js and ran into an issue when trying to connect to ElasticSearch via the official client.
I’m getting a “Not implemented in Bun” error, which—as the name suggests—means that the ElasticSearch client relies on features that aren’t yet supported by the Bun runtime. I figured I’d ask here to see if anyone knows of a workaround.
At the moment, I see two possible paths: either switch from Bun to Node.js (which isn’t straightforward—I tried it and ran into issues with the
typedi
library I’m using for dependency injection), or write a custom ElasticSearch client, maybe a small Python proxy to handle fetch requests to ES.
For context, everything is running internally in my university lab, so the ElasticSearch instance isn’t exposed to the internet. We’re only using it for database search and content indexing.
Do you have any suggestions, advice, or a better approach for handling this?0 Replies