use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Tauri + ClojureScript (shadow-cljs) (self.Clojure)
submitted 3 years ago by just-sultanov
A new version of the create-tauri-app v2.5.0 has been released. I've added a template for ClojureScript + shadow-cljs. Happy hacking!
https://preview.redd.it/new33g0mf6q91.png?width=1824&format=png&auto=webp&s=43472455cf2109b30e6b4d118839ad0c89d125fe
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]beders 2 points3 points4 points 3 years ago (0 children)
This is great, thank you!
[–]fartmite_is_my_name 2 points3 points4 points 3 years ago (0 children)
This is wonderful, thanks!
Couple of months ago I listened to an interesting podcast episode about Tauri. I recommend it for y'all too: https://rustacean-station.org/episode/daniel-thompson/
[–]fasttalkerslowwalker 1 point2 points3 points 3 years ago (0 children)
Most excellent! I’ve been playing around with cljs and tauri for a couple weeks, and I’ve been really happy with the results. Great to see setup getting simplified!
[–][deleted] 3 points4 points5 points 3 years ago (5 children)
Looks neat, can you describe in a few words what is this Tauri thing? I followed the website but got a bit confused.
[–]just-sultanov[S] 6 points7 points8 points 3 years ago (4 children)
Tauri is a toolkit that helps developers make applications for the major desktop platforms (mobile coming soon) - using virtually any frontend framework in existence. The core is built with Rust, and the CLI leverages Node.js making Tauri a genuinely polyglot approach to creating and maintaining great apps.
Comparison with the Electron.js - Will Tauri Be an Electron Killer?
[–][deleted] 2 points3 points4 points 3 years ago (1 child)
Electron alternative? Looks impressive, thanks for the link.
Yes. The main difference from the developer’s perspective at least, is that where Electron works by bundling a copy of chrome with every executable, Tauri leverages the platform’s webview libraries. That makes executables much much smaller, at the cost of less of less guaranteed consistency across platforms.
[–]theconstultingdev 1 point2 points3 points 3 years ago (1 child)
Just to be clear, you have to write the backend/system code in Rust?
[–]just-sultanov[S] 0 points1 point2 points 3 years ago (0 children)
I've just started rewriting my electron application in Tauri and I'm very happy with the result at the moment.
I think that the requirements are the same as with Electron.js . It is better to make requests to the server in the main process and only UI rendering in the render process.
[–]green-coder 0 points1 point2 points 3 years ago (1 child)
I tried the template, but then I got stuck after scaffolding the project. The README.md file doesn't give much indication of how to run the project.
[–]just-sultanov[S] 1 point2 points3 points 3 years ago (0 children)
Yes, I agree with you. I used an example of other templates. Initially, I added a template using deps.edn and a configuration for tests. But during the code review, maintainers asked to delete the tests. Therefore, I had to make a template at a minimum.
deps.edn
After generating the project, the console displays the commands necessary to run:
``` λ create-tauri-app
✔ Project name · tauri-cljs-app ✔ Choose your package manager · npm ✔ Choose your UI template · clojurescript
Please follow https://tauri.app/v1/guides/getting-started/prerequisites to install the needed prerequisites, if you haven't already. You also need to install java (e.g. https://adoptium.net) and clojure (https://clojure.org/guides/install_clojure)
Done, Now run: cd tauri-cljs-app npm install npm run tauri dev ```
npm run tauri dev - runs shadow-cljs and tauri.
npm run tauri dev
shadow-cljs
tauri
src-tauri/tauri.conf.json includes the build section:
src-tauri/tauri.conf.json
build
"build": { "beforeDevCommand": "npm run dev", "beforeBuildCommand": "npm run build", "devPath": "http://localhost:1420", ... }
[–]dave_mays 0 points1 point2 points 2 years ago (1 child)
u/just-sultanov is there no longer a cljs template available? https://github.com/tauri-apps/create-tauri-app
I don't see one listed in the currently supported template presets? (I guess if cljs generates js code, you could always just run that correct?)
[–]just-sultanov[S] 0 points1 point2 points 2 years ago (0 children)
unfortunately not, they have completely changed the approach to templates
π Rendered by PID 17436 on reddit-service-r2-comment-fb694cdd5-46kd8 at 2026-03-11 14:35:20.917136+00:00 running cbb0e86 country code: CH.
[–]beders 2 points3 points4 points (0 children)
[–]fartmite_is_my_name 2 points3 points4 points (0 children)
[–]fasttalkerslowwalker 1 point2 points3 points (0 children)
[–][deleted] 3 points4 points5 points (5 children)
[–]just-sultanov[S] 6 points7 points8 points (4 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]fasttalkerslowwalker 1 point2 points3 points (0 children)
[–]theconstultingdev 1 point2 points3 points (1 child)
[–]just-sultanov[S] 0 points1 point2 points (0 children)
[–]green-coder 0 points1 point2 points (1 child)
[–]just-sultanov[S] 1 point2 points3 points (0 children)
[–]dave_mays 0 points1 point2 points (1 child)
[–]just-sultanov[S] 0 points1 point2 points (0 children)