Skip to content

Conversation

@avaer
Copy link

@avaer avaer commented Oct 21, 2025

Fixes #293

This is a prototype of how we might support web environments with this lib, which may not care about the child_process functionality.

Not tested, not to be merged, just an example idea. All I know is that it builds.

This probably probably breaks the lib on actual node BE, so any child_process stubbing would need to be conditional on dev build.

@avaer avaer mentioned this pull request Oct 21, 2025
@codeit-ninja
Copy link

Great PR, nice work!

Could you also add support for overriding the fetch function? That would let us plug in a framework-specific fetch implementation when available.

@avaer
Copy link
Author

avaer commented Nov 17, 2025

Hm, that's a great idea! I haven't needed it but fetch override is definitely something you'd want if the elevenlabs SDK truly supported web envs. I'm sure fetch could be a separate PR.

However, I'm not the guy to be maintaining a separate web-featured copy of the elevenlabs SDK. Although this hack works for me, I don't really know anything about this codebase and I don't have the resources to maintain a fork.

I think the best bet for this kind of thing might be to convince the maintainers that there is a sufficient use case to bring back a lightweight compatible build of this package. Sadly, this does not seem likely at the current moment.

@codeit-ninja
Copy link

Yeah, I opened an issue requesting this feature, they were quik, they have implemented it already and marked the issue as fixed haha. So you can ignore the comment.

#311

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

Successfully merging this pull request may close these issues.

NextJS + web support

2 participants