tin
tinytron
npm i tinytron
tin

tinytron

Tiny alternative to electron

by Rafi

1.0.3 (see all)License:MITTypeScript:Not Found
npm i tinytron
Readme

Tiny

This is a tiny alternative to electron

Why?

Electron is big and sometime you may not need all it is functionality to build your desktop app. This package renders webview with basic window management functionality without all electron API's cutting down the size drastically and improving performance. It renders webview using https://github.com/webview/webview C++ library.

Installation

make sure you have these native dependencies installed then install package using npm

$ npm i tinytron

or

$ yarn add tinytron

Usage

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()

Generating binary

To convert your app to single binary do look at pkg

Downloads/wk

10

GitHub Stars

18

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

3

OPEN PRs

2
VersionTagPublished
1.0.3
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial