Ex-tauri - Desktop applications using Elixir

ex-tauri - Desktop Applications using Elixir

Hey! I wanted to share a new library that helps you build Elixir Desktop applications by leveraging Tauri.

It works by creating the full flow required to have an Elixir sidecar along side a Tauri setup that will await for the sidecar to start. All communication is done via tcp sockets to ensure 2 way communication between Tauri and Elixir.

Finally it’s framework agnostic as you can setup the commands to be ran by your sidecar independent of what you choose.

Features

  • Simple to use CLI to install required files, run the project, package it
  • 2-way communication between Elixir and Tauri to use more advanced features like Notifications, Dialogs, Clipboard, Filesystem
  • Graceful shutdown using a heartbeat to ensure that the sidecar is properly shutdown

Usage

  1. Add the dependency with {:ex_tauri, "~> 0.1.0"}
  2. Run mix deps.get and mix ex_tauri.install
  3. (Not needed with Phoenix) update config.exs to setup the start command and envs
    config :ex_tauri, :dev_command, ~w(mix francis.server)
    config :ex_tauri, :sidecar_env, []
  4. Run mix ex_tauri.dev
  5. Have fun :smiley:

Website: https://ex-tauri.build/

Repository:

Special thank you to Burrito, Igniter and Tauri that made this project possible to be built.

Feedback and PRs are very welcomed

28 Likes