Can you have a JS backend? #11249
-
Is it possible not use Rust at all and write all the back end code for the app in JavaScript? I know NodeJS, Deno or Bun is not included in Tauri but Tauri does use HTML, CSS and JavaScript and does include JS APIs to access things like the file system. Is it possible to simply include JS script to the HTML file which will be the back end code for the app? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hmm, somewhat yes? But as you said, there's no nodejs etc so all your JS will be subject to the browser sandbox, so it only works if the sandbox is no problem, or if tauri's extra Apis fulfill your needs. |
Beta Was this translation helpful? Give feedback.
Well, Tauri's apis don't cover all of the available nodejs apis, and npm packages that rely on nodejs could also not be used. I really can't tell you whether this will be a problem or not for you.