Tauri fullstack framework #10443
Replies: 3 comments 4 replies
-
Not sure if we're getting at the same idea here, but I've been leveraging Bun for my cross-platform usecases and integrating Tauri for the frontend across the board: https://github.com/ezra-en/bun-crossplatform-template Re: your enthusiasm for the Node API, I believe Tauri doesn't package any JS runtime, and as of now, has no reason to. Everything is in-browser using whatever webview is available to Tauri for your operating system, so Node compat doesn't really apply to Tauri in the first place, although people keep on thinking Tauri + a packaged runtime work well together because Tauri allows web apps (which are often made with server runtimes like node/bun) to be transformed into desktop apps via SPA magic. This is one of the reasons Tauri is so efficient, AFAIK. I agree that we need a nicer cross-platform API, but that's what we're doing with the |
Beta Was this translation helpful? Give feedback.
-
How would this differ from using a framework like sveltekit that has what you describe? I haven't used Tauri yet. But am starting to evaluate it for mobile development. Ccurrently using NativeScript with Svelte for mobile app development |
Beta Was this translation helpful? Give feedback.
-
Hi folks, I was thinking about creating a fullstack framework (like next.js) but for tauri. My goal is to be able to have what electron users have, an access to all node api, 1 language for the front and the back, all throught the sidecar.
This is how I imagine it and if you are interested, you can give suggestion and/or talk about how we can achieve it:
A project using this framework will have 2 directories, one for the front (let's say app) and another for back (let's say api).
The framework will build the app folder to generate an html, css and js files for the front, and for the api, it will use a file based routing with each route generating a binary that will be used as a sidecar.
The framework will use a trpc like logic for each call (calling a "route" from the front, for the user, will be like calling a function with params) and will translate it internaly to the correct call to the sidecar with params.
Like fullstack frameworks does, everything will be « magic », devs are just seeing a fullstack framework that let them use nodejs in back and web api in the front for a desktop framework.
I don't know if it's clear, let me know what you think guys.
Beta Was this translation helpful? Give feedback.
All reactions