aglundahl

aglundahl

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

https://github.com/aglundahl/deno_rider

Showing Posts 1 to 10

hxgdzyuyi

hxgdzyuyi

If I use it to implement React SSR (Server-Side Rendering), will there be any problem?

aglundahl

aglundahl OP

No, that’s basically what I use it for.

Wigny

Wigny

Do you have a example of how to achieve that? I would like to know if it’s possible to use DenoRider with a JS library such as CortexJS.

akoutmos

akoutmos

Author of Build a Weather Station with Elixir and Nerves

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 :smiley:. Thanks for checking that off my todo list!

hubertlepicki

hubertlepicki

this is very nice, I’ll be playing with it. This can be a basis for LiveView/React Server Components-like hybrid solution!

rekkice

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

aglundahl

aglundahl OP

I think CortexJS would work just fine. There’s no support for npm integration yet, though, so you need a build step to convert CortexJS to something consumable by the runtime. I suggest you take a look at what @rekkice does in his repo. :slightly_smiling_face:

aglundahl

aglundahl OP

Awesome! Thanks for sharing!

Wigny

Wigny

It worked great! We are compiling our TS file using the bun lib and then passing the resulting JS file to the DenoRider supervisor. Thanks for your effort in building it!

Do you have a roadmap with the changes/features you still want to implement or may we consider this library production-ready/stable?

aglundahl

aglundahl OP

Cool! Glad to hear it’s working for you.

There’s currently no roadmap, but that’s mostly because it has everything I need for now. If you have feature requests, just put up an issue on GitHub. :slightly_smiling_face:

Where Next? Top

Trending in Announcing Top

woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
MRdotB
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
woylie
I released Doggo, a collection of unstyled Phoenix components. https://github.com/woylie/doggo Features Unstyled Phoenix components....
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New
rodloboz
I’ve started working on a new library to run SQL queries and do basic business intelligence. Think “Blazer for Elixir.” Currently it fe...
New

Other Trending Topics Top

mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
CodeSync
:microphone: ElixirConf 2026 - Call for Talks is open! We’re heading to Chicago :united_states: :round_pushpin: In person + virtual :d...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews