Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Rafi993/tiny
Tiny alternative to electron
https://github.com/Rafi993/tiny
electron js
Last synced: 29 days ago
JSON representation
Tiny alternative to electron
- Host: GitHub
- URL: https://github.com/Rafi993/tiny
- Owner: Rafi993
- License: mit
- Created: 2020-07-18T04:20:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-12T13:00:30.000Z (7 months ago)
- Last Synced: 2024-11-05T13:56:38.270Z (about 1 month ago)
- Topics: electron, js
- Language: Makefile
- Homepage:
- Size: 469 KB
- Stars: 53
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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](./dependencies.md) installed then install package using npm
```
$ npm i tinytron
```or
```
$ yarn add tinytron
```## Usage
```javascript
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](https://www.npmjs.com/package/pkg)