loading...
Cover image for Tiny alternative to electron

Tiny alternative to electron

rafi993 profile image Rafi Updated on ・1 min read

I wanted to build a small desktop app for my own usage but using electron felt like an overkill (since I won't be using most of the API electron provides). So I wrote a really tiny alternative to electron.

you can easily use it as follows

const Tiny = require("tinytron")

const window = new Tiny();
window.setSize(500, 600);
window.setTitle("Your app");

// When using your own app use express to run the server and pass the url
window.navigate("http://dev.to/");
window.run();
window.destroy()

But unlike electron it does not come with node packed in so you may need to use something like pgk to generate binary that user can use

here is the link to the repo.

Posted on by:

rafi993 profile

Rafi

@rafi993

I'm a developer who works mostly with Javascript.

Discussion

markdown guide
 

Very nice! I've developed with Electron since it was still called atom-shell (and NW.js when it was still called node-webkit before that), but I'm always keeping an eye on lighter alternatives - though I do tend to leverage the Node and Electron APIs pretty heavily instead of many things I'd do on backend (or occasionally even frontend) in the web app version.

 

You might consider including a link to the npm page or repository.

 

Oh, Forgot to do that. Thanks for mentioning.