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:
https://github.com/Rekkice/chat-translate/commit/951bbb322010fb440cda2046fa54f5fdef2b598d
hubertlepicki
this is very nice, I’ll be playing with it. This can be a basis for LiveView/React Server Components-like hybrid solution!
Popular in Announcing
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









