aglundahl
DenoRider - An embedded JavaScript runtime in Elixir
Hi all!
I’ve put together DenoRider, a JavaScript runtime embedded in Elixir via Rustler and the deno_runtime crate.
My use case is server side rendering of a ClojureScript app. Please let me know if you use it, because it would be interesting to hear about your use case!
Example
iex> DenoRider.eval("1 + 2")
{:ok, 3}
iex> DenoRider.eval("globalThis.foo = 'bar'")
{:ok, "bar"}
iex> DenoRider.eval("globalThis.foo")
{:ok, "bar"}
Links
Most Liked
akoutmos
Thank you for doing this! I wanted to create a Rustler NIF around deno_runtime as well for https://github.com/akoutmos/deno_ex....but now it appears I won’t have to do that
. Thanks for checking that off my todo list!
rekkice
my implementation’s a bit hacky, but i made a custom SSR renderer for live_svelte with it:
hubertlepicki
this is very nice, I’ll be playing with it. This can be a basis for LiveView/React Server Components-like hybrid solution!
hxgdzyuyi
If I use it to implement React SSR (Server-Side Rendering), will there be any problem?







