byte-launcher 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -2
- package/index.html +35 -0
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
-
#
|
|
1
|
+
# BYTE launcher for unpkg
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
One page (`index.html`) that shows BYTE full-window in a frame. Published as an npm package,
|
|
4
|
+
it opens at `https://unpkg.com/<package-name>@<version>/index.html`.
|
|
5
|
+
|
|
6
|
+
BYTE itself still runs on its own server; this page is only a doorway to it. It needs the
|
|
7
|
+
BYTE version with the "embedded cookie" change (the community update) to be live, or sign-ins
|
|
8
|
+
in Server rewrite mode will not hold inside the frame.
|
|
9
|
+
|
|
10
|
+
## Publish (you do this, with your own npm account)
|
|
11
|
+
|
|
12
|
+
1. Make a free account at <https://www.npmjs.com/signup> if you have none.
|
|
13
|
+
2. The name in `package.json` is `byte-launcher` (free on npm on 2026-11-22). If npm refuses it, pick another and change it there.
|
|
14
|
+
3. In this folder:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
cd ~/lite-browser/unpkg
|
|
18
|
+
npm login
|
|
19
|
+
npm publish --access public
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
4. Open `https://unpkg.com/<your-name>@1.0.0/index.html`. The first load can take a minute.
|
|
23
|
+
|
|
24
|
+
To change the page later: edit it, raise `"version"` (1.0.1, …), `npm publish` again. A published
|
|
25
|
+
version can never be changed, and after 72 hours it cannot be removed either.
|
|
26
|
+
|
|
27
|
+
## Good to know
|
|
28
|
+
|
|
29
|
+
- Everything in the package is public, including BYTE's address in `index.html`.
|
|
30
|
+
- Settings, bookmarks and tabs are kept separately from the ones at BYTE's own address,
|
|
31
|
+
because browsers keep storage per outer site.
|
|
32
|
+
- npm and unpkg are other people's services with their own rules. Either can remove a package
|
|
33
|
+
or stop serving HTML pages; this page is not something to rely on.
|
|
34
|
+
- Not tried on the real unpkg.com yet (nothing has been published). Tested locally by serving
|
|
35
|
+
this page from a different site than BYTE.
|
package/index.html
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<meta name="robots" content="noindex">
|
|
7
|
+
<title>BYTE</title>
|
|
8
|
+
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%231d6cff'/%3E%3Ctext x='16' y='23' font-size='20' font-weight='700' text-anchor='middle' fill='%23fff' font-family='Georgia,serif'%3EB%3C/text%3E%3C/svg%3E">
|
|
9
|
+
<style>
|
|
10
|
+
html, body { margin: 0; height: 100%; background: #03060e; overflow: hidden; }
|
|
11
|
+
iframe { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; }
|
|
12
|
+
#msg { position: fixed; inset: 0; display: none; place-items: center; padding: 24px; text-align: center; color: #dbe4ff; font: 16px/1.5 system-ui, sans-serif; }
|
|
13
|
+
#msg a { color: #7db0ff; }
|
|
14
|
+
</style>
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
<!-- BYTE launcher. This page only shows BYTE, which runs on BYTE's own server, in a frame.
|
|
18
|
+
To point it at another BYTE address, change BYTE_URL below and publish a new version. -->
|
|
19
|
+
<div id="msg"><p>BYTE did not load here.<br><a id="direct" rel="noopener">Open BYTE directly</a></p></div>
|
|
20
|
+
<script>
|
|
21
|
+
var BYTE_URL = 'https://apps.handytechhelper.com/browse';
|
|
22
|
+
var f = document.createElement('iframe');
|
|
23
|
+
f.allow = 'fullscreen; autoplay; clipboard-read; clipboard-write; gamepad; encrypted-media; picture-in-picture';
|
|
24
|
+
f.allowFullscreen = true;
|
|
25
|
+
f.title = 'BYTE';
|
|
26
|
+
f.src = BYTE_URL;
|
|
27
|
+
document.body.appendChild(f);
|
|
28
|
+
document.getElementById('direct').href = BYTE_URL;
|
|
29
|
+
// If nothing has arrived after a while (BYTE is down or blocked on this network), say so.
|
|
30
|
+
var loaded = false;
|
|
31
|
+
f.addEventListener('load', function () { loaded = true; });
|
|
32
|
+
setTimeout(function () { if (!loaded) document.getElementById('msg').style.display = 'grid'; }, 15000);
|
|
33
|
+
</script>
|
|
34
|
+
</body>
|
|
35
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "byte-launcher",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Launcher page for BYTE",
|
|
5
|
+
"main": "index.html",
|
|
6
|
+
"files": ["index.html"],
|
|
7
|
+
"license": "UNLICENSED"
|
|
8
|
+
}
|