Kerrick Long ยท kerrick@setdef.com

How to ship a desktop app for Mac, Windows, and Linux from the Rails app you already have.

A letter to the person who decides what your Ruby product builds next. Already decided? Skip to the prices.

Dear colleague,

Most Ruby companies that need a desktop app end up owning two products. The web app stays in Ruby. The desktop app gets written in whatever its framework wants: JavaScript for Electron, Rust for Tauri, or Swift and C# for native apps, one for each platform. From then on, your business rules live in two places, in two languages, and every change to one has to be matched in the other by someone who knows both.

That second product is the real cost of a desktop app. It's why so many teams settle for a website in a window, which can't do anything the browser couldn't.

Tokra lets you skip it. It's a port of Tauri to Ruby. Your Rails app, or any Rack app, renders the pages, and Tokra shows them in a native window on Windows, macOS, and Linux, with everything Tauri gives desktop apps: menus, tray icons, notifications, files and dialogs, the clipboard, and global shortcuts. Like Tauri, it uses the web view the operating system already has, so it doesn't carry a whole browser in every copy. Your business rules stay in one place, in the language your team already knows.

Shipping comes with it. Like Tauri, Tokra builds an installer for each platform, signs it for macOS and Windows, sends it to Apple for notarization, and delivers automatic updates.

What it costs

Tokra is open source under the AGPL. If your app is open source under the AGPL too, Tokra is free, forever.

If your app is proprietary, you need a commercial license. Whether the AGPL fits the way you plan to ship is a question for your lawyer.

One license covers your whole company, and every app it ships with Tokra, for a year:

Fewer than 50 employees
$4,995 Buy
50 to 999 employees
$24,500 Buy
1,000 or more, or publicly traded
$49,500 Buy

Every license comes with a signed license document your lawyers can read, support by email from setdef, and priority on any bug that blocks a release of your app.

If Tokra turns out to be wrong for your app, ask for a refund within 30 days, and setdef will return all of it. The license ends with the refund.

Companies licensed in Tokra's first year are featured on tokra.app and in Tokra's release announcements.

Who this isn't for

If your app is open source, you don't need a license. Use Tokra under the AGPL.

If your app needs nothing from the computer that a browser can't already give it, keep it on the web.

If your team already builds a native app for each platform and is happy doing it, keep going.

Questions you might have

Will a desktop app built on Ruby feel slow?
Your pages render in the operating system's own web view, as they do in Tauri, and your Ruby code runs on your user's computer, with no network between them. For the forms, lists, and dashboards most business apps are made of, that's fast.
Does my whole Rails app run on the desktop?
It can. Most teams choose the parts of their product that need the desktop, and leave the rest on the web.
What happens when Apple or Microsoft change their signing rules?
They will. Tokra's releases keep up with them, and your license covers every release.
Is it per company or per app?
Per company. One license covers every app your company ships with Tokra.
What happens when we outgrow our tier?
Nothing changes until your license renews. Then you renew at the tier that fits your company that day.

What you should know about me

I'm setdef's only owner, and you should weigh that. If I stopped working tomorrow, you'd still have Tokra, because it's open source and you can fork it. Licenses are what pay for setdef's work on Tokra, so every one makes it more likely that I won't stop.

I've spent thirteen years building forms, dashboards, and back-office tools for small and mid-sized software companies, which is most of what a desktop business app is. I made Tokra because I wanted to ship them in Ruby.

How to start

Have someone on your team try Tokra on a corner of your app. If your app is proprietary, buy a license before you ship it, or write to me at with questions. I'll reply within two business days.

Thanks for reading,

Kerrick Long
setdef

P.S. Tokra gives you one desktop app for Mac, Windows, and Linux, built from the Ruby you already have, signed and updating itself. If your app is proprietary, one license covers your whole company, with a full refund within 30 days if Tokra isn't right for it.

P.P.S. Not ready yet? Join the setdef forum to get Tokra's release announcements by email.