ajusa / simple-chat

A simple room-based chat application in Nim. Uses Jester and HTMX
27 stars 3 forks source link

Can you use any js library in karax? #1

Closed nixfreak closed 3 years ago

nixfreak commented 3 years ago

Hello, I'm usually in the nim-webdev channel, can you use any js library in karax?

I'm really trying to figure out how to use https://github.com/orbitdb/orbit-db and maybe something like https://github.com/stellar/js-stellar-sdk.

If I could use karax for this that would be awesome.

ajusa commented 3 years ago

Yes, but this isn't the right place for this discussion (this repository doesn't have any actual code related to Karax other than usage of the DSL). I would recommend looking at https://nim-lang.org/docs/jsffi.html along with asking folks in the Nim discord for examples of jsffi in Nim. It is pretty doable to be honest - the trickiest bit is working with types, as Nim is strongly typed and Javascript is dynamically typed.

nixfreak commented 3 years ago

Thank you for your time.