dominicletz

dominicletz

Creator of Elixir Desktop

Elixir-desktop - Android, Window, macOS, Linux LiveView Apps with Elixir

Hi,

I thought I had posted my library before but seems I hadn’t. The project is still in early stages but it’s growing and so I think it should have it’s own post here. BTW I still don’t have an icon or mascot for this so please let me know if you have an idea :slight_smile:

elixir-desktop

Elixir desktop is a library that wraps :wxWidgets and Phoenix.LiveView in order to create native Windows+Linux+macOS applications. The main driver of this is my own company project https://diode.io where we produce server and (desktop) client code now from largely the same code bases for our mesh-networking apps.

Additionally, the library applies the same LiveView concepts to rendering OS-Menus such as the window menu and the taskbar icon menu. So that the developer does not need to get in touch with :wxWidgets or any system specifics.

GitHub link desktop library
GitHub link desktop example

android-example-app

Extending from this the elixir-desktop library now also supports abstracting Android apps using the very same interface. Meaning that a desktop app written using elixir-desktop can run unmodified natively on an android phone. The example project (ready to clone) ships the full Elixir+Erlang runtime ported to all common Android targets.

Also this Android example in contrast to the Windows/Linux/macOS ports is ready to be packaged. Just click “Build App Bundle” in Android studio and you get an application package that you can start shipping today!

GitHub link android example
Hex package

Why?

At the core it is really about code re-use and grew into this. We started with a pretty large Elixir based server codebase, then needed some CLI clients, then the need for UI clients developed, then that grew and now we need mobile Apps as well…

But also LiveView is a great fit for implementing desktop and mobile app interactions quickly. The ability to bring those interactions is turbo and potentially a massive new use-case.

Next Steps

  1. Packaging for Windows, Linux, macOS – I talked about this before but had to take care of the mobile app for internal reasons first. Eventually packaging installers for the platforms will become part of the elixir-desktop project.

  2. iOS?

How to help

There are many open ends here and integrations to improve. If you’re curious about this or better just want to start your own app with this and have an itch to scratch in elixir-desktop let me know. I’m reachable here, via the Elixir Slack and of course in GitHub.

PS

There is a somewhat old YouTube video of me presenting this the first time here: https://www.youtube.com/watch?v=aFpBHQ0YEw4&t=2428s

Cheers!

Most Liked Responses

dominicletz

dominicletz

Creator of Elixir Desktop

Update: The sample projects of elixir-desktop have been upgraded to use asdf and the new official Elixir & Erlang builds. Now OTP25 includes all the necessary changes for iOS and Android builds and no custom builds are required anymore. If the custom plumbing of previous versions was holding you back from creating a mobile app before, fear no more and grab the new sources:

https://github.com/elixir-desktop/ios-example-app
https://github.com/elixir-desktop/android-example-app

Nicd

Nicd

Congratulations on getting to the app stores, @dominicletz!
https://twitter.com/DominicLetz/status/1506675402059792388

I guess this is the first Elixir application available in mobile app stores?

Nicd

Nicd

I just adapted my earlier app to use elixir-desktop and got it running on my phone! :slight_smile: Details here: GeoTherminator, remote UI for Thermia geothermal heat pumps - #7 by Nicd

Where Next?

Popular in Announcing Top

OvermindDL1
I created a new library (rather I pulled out a couple files from my big project), it manages an operating system PID file for the BEAM. ...
New
tmbb
I’ve published the first version of my Makeup library. It’s a syntax highlighter for Elixir in the spirit of Pygments, Currently it highl...
New
mischov
import Meeseeks.CSS html = HTTPoison.get!("https://news.ycombinator.com/").body for story <- Meeseeks.all(html, css("tr.athing")) do...
New
Crowdhailer
The latest release of Ace (0.10.0) includes serving content over HTTP/2. I have started writing a webserver to teach my self more about...
New
dominicletz
Hi, I thought I had posted my library before but seems I hadn’t. The project is still in early stages but it’s growing and so I think it...
New
riverrun
I’ve just released version 3 of Comeonin, a password hashing library. The following small changes have been made: changes to the NIF c...
New
mbuhot
Leverage Open Api 3.0 (Swagger) to document, test, validate and explore your Plug and Phoenix APIs. Generate and serve a JSON Open API ...
New
zoltanszogyenyi
Hey everyone :waving_hand: Excited to join this forum - I am one of the founders and current project maintainers of a popular and open-s...
New
handnot2
Samly can be used to enable SAML 2.0 Single Sign On in a Plug/Phoenix application. This library uses Erlang esaml to provide plug enabl...
New
kevinlang
Hey all, We have made an Ecto3 Adapter for SQLite3, ecto_sqlite3! We have successfully on-boarded the full suite of integration tests (...
New

Other popular topics Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New

We're in Beta

About us Mission Statement