Skip to content

Commit 1a44569

Browse files
committed
v2.5.1 (With NPM)
1 parent bcf501f commit 1a44569

File tree

9 files changed

+42
-23
lines changed

9 files changed

+42
-23
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
![Logo](https://raw.githubusercontent.com/webui-dev/webui-logo/main/webui_bun.png)
44

5-
# NOT USABLE YET - UNDERDEVELOPMENT
6-
7-
# Bun-WebUI v2.5.0 (Beta)
5+
# Bun-WebUI v2.5.1 (Beta)
86

97
[last-commit]: https://img.shields.io/github/last-commit/webui-dev/webui?style=for-the-badge&logo=github&logoColor=C0CAF5&labelColor=414868
108
[release-version]: https://img.shields.io/github/v/tag/webui-dev/webui?style=for-the-badge&logo=webtrees&logoColor=C0CAF5&labelColor=414868&color=7664C6
@@ -40,16 +38,22 @@ is written in Bun using WebUI as the GUI library.
4038

4139
![ScreenShot](img/webui_bun_example.png)
4240

43-
## Installation
41+
## NPM Installation
42+
43+
```sh
44+
npm install @webui-dev/bun-webui
45+
```
4446

45-
Specific version: `import { WebUI } from "webui";`
47+
## Import Package
4648

47-
Latest version: `import { WebUI } from "https://bun.sh/x/webui/mod.ts";`
49+
```js
50+
import { WebUI } from '@webui-dev/bun-webui';
51+
```
4852

4953
## Minimal Example
5054

5155
```js
52-
import { WebUI } from "webui";
56+
import { WebUI } from '@webui-dev/bun-webui';
5357

5458
const myWindow = new WebUI();
5559
myWindow.show('<html><script src="webui.js"></script> Hello World! </html>');

examples/custom_file_handler/custom_file_handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// bun run custom_file_handler.ts
33

44
// To import from local (Debugging and Development)
5-
import { WebUI } from "../../mod.ts";
5+
// import { WebUI } from "../../mod.ts";
66

7-
// To import from online `https://bun.sh` (Production)
8-
// import { WebUI } from "webui";
7+
// To import from NPM (Production)
8+
import { WebUI } from '@webui-dev/bun-webui';
99

1010
// Return HTTP header + file raw binary content
1111
const getFile = async (contentType: string, filename: string): Promise<Uint8Array> => {

examples/custom_web_server/custom_web_server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// bun run custom_web_server.ts
44

55
// To import from local (Debugging and Development)
6-
import { WebUI } from "../../mod.ts";
6+
// import { WebUI } from "../../mod.ts";
77

8-
// To import from online `https://bun.sh` (Production)
9-
// import { WebUI } from "webui";
8+
// To import from NPM (Production)
9+
import { WebUI } from '@webui-dev/bun-webui';
1010

1111
async function allEvents(e: WebUI.Event) {
1212
/*

examples/hello_world/hello_world.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// bun run hello_world.ts
33

44
// To import from local (Debugging and Development)
5-
import { WebUI } from "../../mod.ts";
5+
// import { WebUI } from "../../mod.ts";
66

7-
// To import from online `https://bun.sh` (Production)
8-
// import { WebUI } from "webui";
7+
// To import from NPM (Production)
8+
import { WebUI } from '@webui-dev/bun-webui';
99

1010
const myHtml = `<!DOCTYPE html>
1111
<html>

examples/send_raw_binary/send_raw_binary.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// bun run send_raw_binary.ts
33

44
// To import from local (Debugging and Development)
5-
import { WebUI } from "../../mod.ts";
5+
// import { WebUI } from "../../mod.ts";
66

7-
// To import from online `https://bun.sh` (Production)
8-
// import { WebUI } from "webui";
7+
// To import from NPM (Production)
8+
import { WebUI } from '@webui-dev/bun-webui';
99

1010
const myHtml = `<!DOCTYPE html>
1111
<html>

mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* ## Minimal Example
1717
*
1818
* ```ts
19-
* import { WebUI } from "webui";
19+
* import { WebUI } from '@webui-dev/bun-webui';
2020
*
2121
* const myWindow = new WebUI();
2222
* myWindow.show("<html><script src=\"webui.js\"></script> Hello World! </html>");

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@webui-dev/bun-webui",
3+
"version": "2.5.1",
4+
"description": "Use any web browser as GUI, with Bun in the backend and HTML5 in the frontend.",
5+
"main": "mod.ts",
6+
"directories": {
7+
"example": "examples"
8+
},
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 0"
11+
},
12+
"keywords": ["gui", "ui", "webui", "browser", "webview"],
13+
"author": "Hassan Draga",
14+
"license": "MIT"
15+
}

src/ffi_worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
WebUI Bun 2.5.0
2+
WebUI Bun 2.5.1
33
http://webui.me
44
https://github.com/webui-dev/bun-webui
55
Copyright (c) 2020-2025 Hassan Draga.

src/webui.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
WebUI Bun 2.5.0
2+
WebUI Bun 2.5.1
33
http://webui.me
44
https://github.com/webui-dev/bun-webui
55
Copyright (c) 2020-2025 Hassan Draga.
@@ -754,7 +754,7 @@ export class WebUI {
754754
}
755755

756756
static get version() {
757-
return "2.5.0";
757+
return "2.5.1";
758758
}
759759
}
760760

0 commit comments

Comments
 (0)