avelra 0.0.0-stage → 0.4.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/LICENSE +21 -0
- package/README.md +72 -2
- package/bin/avelra.js +5 -0
- package/lib/launcher.js +46 -0
- package/package.json +39 -4
- package/platform/darwin-arm64/bin/avelra +0 -0
- package/platform/darwin-arm64/libexec/avelra/avelra-pack +0 -0
- package/platform/darwin-arm64/libexec/avelra/avelra-runtime +0 -0
- package/platform/darwin-arm64/share/avelra/templates/app/avelra.config.json +12 -0
- package/platform/darwin-arm64/share/avelra/templates/app/client/app.js +131 -0
- package/platform/darwin-arm64/share/avelra/templates/app/client/avelra-lockup.svg +32 -0
- package/platform/darwin-arm64/share/avelra/templates/app/client/fonts/Inter-Regular.woff2 +0 -0
- package/platform/darwin-arm64/share/avelra/templates/app/client/fonts/Inter-SemiBold.woff2 +0 -0
- package/platform/darwin-arm64/share/avelra/templates/app/client/fonts/OFL-Inter.txt +92 -0
- package/platform/darwin-arm64/share/avelra/templates/app/client/fonts/OFL-SpaceGrotesk.txt +93 -0
- package/platform/darwin-arm64/share/avelra/templates/app/client/fonts/SpaceGrotesk.ttf +0 -0
- package/platform/darwin-arm64/share/avelra/templates/app/client/index.html +89 -0
- package/platform/darwin-arm64/share/avelra/templates/app/client/styles.css +529 -0
- package/platform/darwin-arm64/share/avelra/templates/app/icon.png +0 -0
- package/platform/darwin-arm64/share/doc/avelra/LICENSE +21 -0
- package/platform/linux-x64/bin/avelra +0 -0
- package/platform/linux-x64/libexec/avelra/avelra-installer +0 -0
- package/platform/linux-x64/libexec/avelra/avelra-pack +0 -0
- package/platform/linux-x64/libexec/avelra/avelra-runtime +0 -0
- package/platform/linux-x64/share/avelra/templates/app/avelra.config.json +12 -0
- package/platform/linux-x64/share/avelra/templates/app/client/app.js +131 -0
- package/platform/linux-x64/share/avelra/templates/app/client/avelra-lockup.svg +32 -0
- package/platform/linux-x64/share/avelra/templates/app/client/fonts/Inter-Regular.woff2 +0 -0
- package/platform/linux-x64/share/avelra/templates/app/client/fonts/Inter-SemiBold.woff2 +0 -0
- package/platform/linux-x64/share/avelra/templates/app/client/fonts/OFL-Inter.txt +92 -0
- package/platform/linux-x64/share/avelra/templates/app/client/fonts/OFL-SpaceGrotesk.txt +93 -0
- package/platform/linux-x64/share/avelra/templates/app/client/fonts/SpaceGrotesk.ttf +0 -0
- package/platform/linux-x64/share/avelra/templates/app/client/index.html +89 -0
- package/platform/linux-x64/share/avelra/templates/app/client/styles.css +529 -0
- package/platform/linux-x64/share/avelra/templates/app/icon.png +0 -0
- package/platform/linux-x64/share/doc/avelra/LICENSE +21 -0
- package/platform/win32-x64/bin/avelra.exe +0 -0
- package/platform/win32-x64/libexec/avelra/avelra-pack.exe +0 -0
- package/platform/win32-x64/libexec/avelra/avelra-runtime.exe +0 -0
- package/platform/win32-x64/share/avelra/templates/app/avelra.config.json +12 -0
- package/platform/win32-x64/share/avelra/templates/app/client/app.js +131 -0
- package/platform/win32-x64/share/avelra/templates/app/client/avelra-lockup.svg +32 -0
- package/platform/win32-x64/share/avelra/templates/app/client/fonts/Inter-Regular.woff2 +0 -0
- package/platform/win32-x64/share/avelra/templates/app/client/fonts/Inter-SemiBold.woff2 +0 -0
- package/platform/win32-x64/share/avelra/templates/app/client/fonts/OFL-Inter.txt +92 -0
- package/platform/win32-x64/share/avelra/templates/app/client/fonts/OFL-SpaceGrotesk.txt +93 -0
- package/platform/win32-x64/share/avelra/templates/app/client/fonts/SpaceGrotesk.ttf +0 -0
- package/platform/win32-x64/share/avelra/templates/app/client/index.html +89 -0
- package/platform/win32-x64/share/avelra/templates/app/client/styles.css +529 -0
- package/platform/win32-x64/share/avelra/templates/app/icon.png +0 -0
- package/platform/win32-x64/share/doc/avelra/LICENSE +21 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Avelra contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,73 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Avelra
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Avelra is a desktop app framework for web developers. Use the frontend stack
|
|
4
|
+
you already use — React, Vue, Svelte or vanilla — and run the built static
|
|
5
|
+
output in the system WebView. A small native runtime provides the window, native
|
|
6
|
+
calls and packaging.
|
|
7
|
+
|
|
8
|
+
## Status
|
|
9
|
+
|
|
10
|
+
**0.4.0 public preview — Linux x64.**
|
|
11
|
+
|
|
12
|
+
This is the first public preview of the Avelra core.
|
|
13
|
+
|
|
14
|
+
## What this package contains
|
|
15
|
+
|
|
16
|
+
- the `avelra` CLI: `init`, `run`, `build`, `installer`;
|
|
17
|
+
- the native runtime, packer and installer;
|
|
18
|
+
- the native SDK payload for the current platform.
|
|
19
|
+
|
|
20
|
+
Node.js **22 or newer** is required by the launcher.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
From npm:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install -g avelra@0.4.0
|
|
28
|
+
avelra init my-app
|
|
29
|
+
cd my-app
|
|
30
|
+
avelra run
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Or from the release tarball:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install ./avelra-0.4.0.tgz
|
|
37
|
+
npx avelra --version
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Core API
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
await window.avelra.app.healthCheck();
|
|
44
|
+
await window.avelra.os.openUrl("https://avelra.dev/docs/");
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The 0.4 public API focuses on core lifecycle, health and OS helpers.
|
|
48
|
+
Extensions and `callExt` are planned for 0.5.
|
|
49
|
+
|
|
50
|
+
## Requirements
|
|
51
|
+
|
|
52
|
+
- Linux x64;
|
|
53
|
+
- GTK 3.24+ and WebKitGTK 4.1;
|
|
54
|
+
- Node.js 22+ for this launcher.
|
|
55
|
+
|
|
56
|
+
Ubuntu 22.04/24.04/26.04 and Debian 12/13 are the verified Linux targets.
|
|
57
|
+
Fedora/RHEL-compatible systems can use the SDK tar; native RPM packaging is
|
|
58
|
+
planned.
|
|
59
|
+
|
|
60
|
+
## Verification
|
|
61
|
+
|
|
62
|
+
The install, CLI, sample-app, UI and npm checks are published on the quality
|
|
63
|
+
page:
|
|
64
|
+
|
|
65
|
+
https://avelra.dev/quality/
|
|
66
|
+
|
|
67
|
+
Release status: https://avelra.dev/releases/
|
|
68
|
+
Documentation: https://avelra.dev/docs/
|
|
69
|
+
Website: https://avelra.dev/
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
MIT.
|
package/bin/avelra.js
ADDED
package/lib/launcher.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require("node:child_process");
|
|
4
|
+
const fs = require("node:fs");
|
|
5
|
+
const path = require("node:path");
|
|
6
|
+
|
|
7
|
+
const PLATFORMS = {
|
|
8
|
+
"linux-x64": "linux-x64",
|
|
9
|
+
"win32-x64": "win32-x64",
|
|
10
|
+
"darwin-arm64": "darwin-arm64",
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
function platformKey() {
|
|
14
|
+
const key = `${process.platform}-${process.arch}`;
|
|
15
|
+
return PLATFORMS[key] || null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function run(args) {
|
|
19
|
+
const key = platformKey();
|
|
20
|
+
if (!key) {
|
|
21
|
+
console.error(
|
|
22
|
+
`avelra: unsupported platform ${process.platform}/${process.arch}; ` +
|
|
23
|
+
"supported: linux-x64, win32-x64, darwin-arm64"
|
|
24
|
+
);
|
|
25
|
+
return 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const root = path.resolve(__dirname, "..", "platform", key);
|
|
29
|
+
const binary = path.join(root, "bin", process.platform === "win32" ? "avelra.exe" : "avelra");
|
|
30
|
+
if (!fs.existsSync(binary)) {
|
|
31
|
+
console.error(`avelra: platform payload is missing: ${binary}`);
|
|
32
|
+
return 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const result = spawnSync(binary, args, {
|
|
36
|
+
stdio: "inherit",
|
|
37
|
+
env: process.env,
|
|
38
|
+
});
|
|
39
|
+
if (result.error) {
|
|
40
|
+
console.error(`avelra: failed to start native CLI: ${result.error.message}`);
|
|
41
|
+
return 1;
|
|
42
|
+
}
|
|
43
|
+
return result.status === null ? 1 : result.status;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
module.exports = { run, platformKey };
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "avelra",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "A desktop app framework for web developers \u2014 React, Vue, Svelte or vanilla UI on a tiny native runtime.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"private": false,
|
|
7
|
+
"homepage": "https://avelra.dev",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"desktop",
|
|
10
|
+
"desktop-apps",
|
|
11
|
+
"webview",
|
|
12
|
+
"webkitgtk",
|
|
13
|
+
"nim",
|
|
14
|
+
"framework",
|
|
15
|
+
"sdk",
|
|
16
|
+
"cli",
|
|
17
|
+
"web-ui"
|
|
18
|
+
],
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=22"
|
|
21
|
+
},
|
|
22
|
+
"bin": {
|
|
23
|
+
"avelra": "bin/avelra.js"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"bin",
|
|
27
|
+
"lib",
|
|
28
|
+
"platform",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/avelra-ui/avelra.git",
|
|
35
|
+
"directory": "packages/npm"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"provenance": true
|
|
40
|
+
}
|
|
41
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
const statusEl = document.getElementById("status");
|
|
2
|
+
const healthApp = document.getElementById("health-app");
|
|
3
|
+
const healthMeta = document.getElementById("health-meta");
|
|
4
|
+
const healthChecks = document.getElementById("health-checks");
|
|
5
|
+
const healthUptime = document.getElementById("health-uptime");
|
|
6
|
+
const healthRefresh = document.getElementById("health-refresh");
|
|
7
|
+
const urlOpenError = document.getElementById("url-open-error");
|
|
8
|
+
const urlOpenErrorUrl = document.getElementById("url-open-error-url");
|
|
9
|
+
const urlOpenErrorClose = document.getElementById("url-open-error-close");
|
|
10
|
+
|
|
11
|
+
function formatUptime(ms) {
|
|
12
|
+
const totalSeconds = Math.max(0, Math.floor(Number(ms) / 1000));
|
|
13
|
+
const minutes = Math.floor(totalSeconds / 60);
|
|
14
|
+
const seconds = totalSeconds % 60;
|
|
15
|
+
return minutes > 0 ? `${minutes}m ${seconds}s` : `${seconds}s`;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function healthStatusLabel(status) {
|
|
19
|
+
if (status === "ok") return "ok";
|
|
20
|
+
if (status === "degraded") return "degraded";
|
|
21
|
+
if (status === "failed") return "failed";
|
|
22
|
+
return "unknown";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function setHealthState(status) {
|
|
26
|
+
statusEl.textContent = healthStatusLabel(status);
|
|
27
|
+
statusEl.className = "state";
|
|
28
|
+
if (status === "ok") statusEl.classList.add("ok");
|
|
29
|
+
if (status === "degraded") statusEl.classList.add("degraded");
|
|
30
|
+
if (status === "failed") statusEl.classList.add("error");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function renderHealth(health) {
|
|
34
|
+
setHealthState(health.status);
|
|
35
|
+
healthApp.textContent = `${health.app.name} ${health.app.version}`;
|
|
36
|
+
healthMeta.textContent =
|
|
37
|
+
`Avelra ${health.runtime.version} · ${health.platform.os}/${health.platform.arch}`;
|
|
38
|
+
healthUptime.textContent = `uptime ${formatUptime(health.runtime.uptimeMs)}`;
|
|
39
|
+
healthChecks.textContent = "";
|
|
40
|
+
for (const check of health.checks) {
|
|
41
|
+
const row = document.createElement("div");
|
|
42
|
+
row.className = "health-row";
|
|
43
|
+
const id = document.createElement("span");
|
|
44
|
+
id.textContent = check.id;
|
|
45
|
+
const state = document.createElement("span");
|
|
46
|
+
state.className = `health-check ${check.status}`;
|
|
47
|
+
state.textContent = check.status;
|
|
48
|
+
row.append(id, state);
|
|
49
|
+
healthChecks.append(row);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function checkHealth() {
|
|
54
|
+
if (!window.avelra || !window.avelra.app) {
|
|
55
|
+
statusEl.textContent = "preview";
|
|
56
|
+
healthApp.textContent = "Avelra preview";
|
|
57
|
+
healthMeta.textContent = "Open this app with `avelra run`.";
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
statusEl.textContent = "checking…";
|
|
62
|
+
statusEl.className = "state";
|
|
63
|
+
healthRefresh.disabled = true;
|
|
64
|
+
try {
|
|
65
|
+
const response = await window.avelra.app.healthCheck();
|
|
66
|
+
if (!response || response.success !== true) {
|
|
67
|
+
throw new Error((response && response.error && response.error.message) ||
|
|
68
|
+
"health check failed");
|
|
69
|
+
}
|
|
70
|
+
renderHealth(response.returnValue);
|
|
71
|
+
} catch (error) {
|
|
72
|
+
setHealthState("failed");
|
|
73
|
+
healthApp.textContent = "Health check failed";
|
|
74
|
+
healthMeta.textContent = String(error);
|
|
75
|
+
} finally {
|
|
76
|
+
healthRefresh.disabled = false;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
async function openUrl(url) {
|
|
81
|
+
const response = await window.avelra.os.openUrl(url);
|
|
82
|
+
if (!response || response.success !== true) {
|
|
83
|
+
throw new Error((response && response.error && response.error.message) ||
|
|
84
|
+
"could not open URL");
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function showUrlOpenError(url) {
|
|
89
|
+
urlOpenErrorUrl.textContent = url;
|
|
90
|
+
urlOpenError.hidden = false;
|
|
91
|
+
urlOpenErrorClose.focus();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function hideUrlOpenError() {
|
|
95
|
+
urlOpenError.hidden = true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
urlOpenErrorClose.addEventListener("click", hideUrlOpenError);
|
|
99
|
+
urlOpenError.addEventListener("click", (event) => {
|
|
100
|
+
if (event.target === urlOpenError) {
|
|
101
|
+
hideUrlOpenError();
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
document.addEventListener("keydown", (event) => {
|
|
105
|
+
if (event.key === "Escape" && !urlOpenError.hidden) {
|
|
106
|
+
hideUrlOpenError();
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
for (const link of document.querySelectorAll("a[data-open-url]")) {
|
|
111
|
+
link.addEventListener("click", async (event) => {
|
|
112
|
+
event.preventDefault();
|
|
113
|
+
try {
|
|
114
|
+
await openUrl(link.href);
|
|
115
|
+
} catch (error) {
|
|
116
|
+
showUrlOpenError(link.href);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function reportReady() {
|
|
122
|
+
if (!window.avelra || !window.avelra.app) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
126
|
+
window.avelra.app.ready().catch(() => {});
|
|
127
|
+
}));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
healthRefresh.addEventListener("click", checkHealth);
|
|
131
|
+
checkHealth().finally(reportReady);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-20 0 484 190" role="img" aria-label="Avelra">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="frameGrad" x1="0" y1="1" x2="1" y2="0">
|
|
4
|
+
<stop stop-color="#2050FF"/><stop offset=".55" stop-color="#7A5CFF"/><stop offset="1" stop-color="#00D4FF"/>
|
|
5
|
+
</linearGradient>
|
|
6
|
+
<mask id="frameMask" maskUnits="userSpaceOnUse" x="-20" y="0" width="484" height="190">
|
|
7
|
+
<rect x="-20" y="0" width="484" height="190" fill="#fff"/>
|
|
8
|
+
<g transform="translate(20 0) skewX(-6) translate(-20 0)">
|
|
9
|
+
<g transform="translate(20 150) scale(0.078125 -0.078125)" fill="#000" stroke="#000" stroke-width="80" stroke-linejoin="round" stroke-linecap="round">
|
|
10
|
+
<path transform="translate(1060.8 0)" d="M455 0 39 1118H317L521 510Q546 436 565.5 361.0Q585 286 604 210Q622 286 641.0 361.0Q660 436 685 510L888 1118H1164L746 0Z" fill="url(#vel)"/>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</mask>
|
|
14
|
+
</defs>
|
|
15
|
+
<g mask="url(#frameMask)">
|
|
16
|
+
<path d="M -14.380 89.540 L -14.380 70.240 A 12.7 12.7 0 0 1 -1.680 57.540 L 17.620 57.540" fill="none" stroke="url(#frameGrad)" stroke-width="7" stroke-linecap="round"/>
|
|
17
|
+
<path d="M 86.980 57.540 L 106.280 57.540 A 12.7 12.7 0 0 1 118.980 70.240 L 118.980 89.540" fill="none" stroke="url(#frameGrad)" stroke-width="7" stroke-linecap="round"/>
|
|
18
|
+
<path d="M -14.380 123.810 L -14.380 143.110 A 12.7 12.7 0 0 0 -1.680 155.810 L 17.620 155.810" fill="none" stroke="url(#frameGrad)" stroke-width="7" stroke-linecap="round"/>
|
|
19
|
+
<path d="M 86.980 155.810 L 106.280 155.810 A 12.7 12.7 0 0 0 118.980 143.110 L 118.980 123.810" fill="none" stroke="url(#frameGrad)" stroke-width="7" stroke-linecap="round"/>
|
|
20
|
+
</g>
|
|
21
|
+
|
|
22
|
+
<defs><linearGradient id="vel" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#2050FF"/><stop offset=".55" stop-color="#7A5CFF"/><stop offset="1" stop-color="#00D4FF"/></linearGradient></defs>
|
|
23
|
+
<g transform="translate(20 0) skewX(-6) translate(-20 0)">
|
|
24
|
+
<g transform="translate(20 150) scale(0.078125 -0.078125)">
|
|
25
|
+
<path transform="translate(0 0)" d="M450 -23Q344 -23 259.0 15.5Q174 54 125.0 129.0Q76 204 76 314Q76 440 137.5 509.5Q199 579 296.5 610.5Q394 642 502 653Q648 669 713.0 682.5Q778 696 778 754V759Q778 841 728.0 886.5Q678 932 583 932Q485 932 427.0 889.0Q369 846 349 791L108 840Q157 988 285.5 1060.0Q414 1132 582 1132Q661 1132 741.5 1113.5Q822 1095 889.0 1051.5Q956 1008 997.0 933.5Q1038 859 1038 747V0H789V154H779Q742 82 661.0 29.5Q580 -23 450 -23ZM517 170Q637 170 708.5 239.0Q780 308 780 401V533Q762 519 716.0 508.5Q670 498 618.5 490.5Q567 483 533 478Q445 466 386.5 430.0Q328 394 328 317Q328 245 381.0 207.5Q434 170 517 170Z" fill="#151827"/>
|
|
26
|
+
<path transform="translate(1060.8 0)" d="M455 0 39 1118H317L521 510Q546 436 565.5 361.0Q585 286 604 210Q622 286 641.0 361.0Q660 436 685 510L888 1118H1164L746 0Z" fill="url(#vel)"/>
|
|
27
|
+
<path transform="translate(2147.6 0)" d="M632 -23Q463 -23 341.5 48.0Q220 119 154.5 248.0Q89 377 89 552Q89 724 153.5 854.5Q218 985 336.5 1058.5Q455 1132 615 1132Q751 1132 867.5 1072.5Q984 1013 1055.0 888.5Q1126 764 1126 568V486H348Q353 337 431.5 259.0Q510 181 635 181Q721 181 782.5 218.0Q844 255 870 326L1109 277Q1069 142 943.5 59.5Q818 -23 632 -23ZM349 663H873Q861 783 796.5 855.5Q732 928 616 928Q497 928 427.5 851.5Q358 775 349 663Z" fill="url(#vel)"/>
|
|
28
|
+
<path transform="translate(3243.3999999999996 0)" d="M398 1490V0H138V1490Z" fill="url(#vel)"/>
|
|
29
|
+
<path transform="translate(3664.2 0)" d="M138 0V1118H390V931H402Q432 1028 507.0 1080.5Q582 1133 678 1133Q728 1133 773 1126V887Q757 891 721.0 895.5Q685 900 650 900Q541 900 469.5 832.5Q398 765 398 658V0Z" fill="#151827"/>
|
|
30
|
+
<path transform="translate(4362.0 0)" d="M450 -23Q344 -23 259.0 15.5Q174 54 125.0 129.0Q76 204 76 314Q76 440 137.5 509.5Q199 579 296.5 610.5Q394 642 502 653Q648 669 713.0 682.5Q778 696 778 754V759Q778 841 728.0 886.5Q678 932 583 932Q485 932 427.0 889.0Q369 846 349 791L108 840Q157 988 285.5 1060.0Q414 1132 582 1132Q661 1132 741.5 1113.5Q822 1095 889.0 1051.5Q956 1008 997.0 933.5Q1038 859 1038 747V0H789V154H779Q742 82 661.0 29.5Q580 -23 450 -23ZM517 170Q637 170 708.5 239.0Q780 308 780 401V533Q762 519 716.0 508.5Q670 498 618.5 490.5Q567 483 533 478Q445 466 386.5 430.0Q328 394 328 317Q328 245 381.0 207.5Q434 170 517 170Z" fill="#151827"/>
|
|
31
|
+
</g></g>
|
|
32
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
-----------------------------------------------------------
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
PREAMBLE
|
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
+
development of collaborative font projects, to support the font creation
|
|
14
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
15
|
+
open framework in which fonts may be shared and improved in partnership
|
|
16
|
+
with others.
|
|
17
|
+
|
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
+
however, cannot be released under any other type of license. The
|
|
24
|
+
requirement for fonts to remain under this license does not apply
|
|
25
|
+
to any document created using the fonts or their derivatives.
|
|
26
|
+
|
|
27
|
+
DEFINITIONS
|
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
+
include source files, build scripts and documentation.
|
|
31
|
+
|
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
+
copyright statement(s).
|
|
34
|
+
|
|
35
|
+
"Original Version" refers to the collection of Font Software components as
|
|
36
|
+
distributed by the Copyright Holder(s).
|
|
37
|
+
|
|
38
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
39
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
40
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
41
|
+
new environment.
|
|
42
|
+
|
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
+
writer or other person who contributed to the Font Software.
|
|
45
|
+
|
|
46
|
+
PERMISSION AND CONDITIONS
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
49
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
50
|
+
Software, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
1) Neither the Font Software nor any of its individual components,
|
|
53
|
+
in Original or Modified Versions, may be sold by itself.
|
|
54
|
+
|
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
|
57
|
+
contains the above copyright notice and this license. These can be
|
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
+
|
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
64
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
65
|
+
presented to the users.
|
|
66
|
+
|
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
+
permission.
|
|
72
|
+
|
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
+
must be distributed entirely under this license, and must not be
|
|
75
|
+
distributed under any other license. The requirement for fonts to
|
|
76
|
+
remain under this license does not apply to any document created
|
|
77
|
+
using the Font Software.
|
|
78
|
+
|
|
79
|
+
TERMINATION
|
|
80
|
+
This license becomes null and void if any of the above conditions are
|
|
81
|
+
not met.
|
|
82
|
+
|
|
83
|
+
DISCLAIMER
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The Space Grotesk Project Authors (https://github.com/floriankarsten/space-grotesk)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
<title>Avelra</title>
|
|
7
|
+
<link rel="stylesheet" href="styles.css">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div class="shell">
|
|
11
|
+
<header class="top">
|
|
12
|
+
<img class="brand-lockup" src="avelra-lockup.svg" alt="Avelra">
|
|
13
|
+
<div class="version">0.1.0</div>
|
|
14
|
+
</header>
|
|
15
|
+
|
|
16
|
+
<main>
|
|
17
|
+
<section class="copy">
|
|
18
|
+
<p class="eyebrow">STARTER APP</p>
|
|
19
|
+
<h1>You're ready.</h1>
|
|
20
|
+
<p class="lead">This is a working Avelra app. Edit <code>client/</code> and make it yours.</p>
|
|
21
|
+
|
|
22
|
+
<section class="benefits" aria-label="Why Avelra">
|
|
23
|
+
<p class="benefits-title">WHY AVELRA</p>
|
|
24
|
+
<ul>
|
|
25
|
+
<li>
|
|
26
|
+
<span class="num">01</span>
|
|
27
|
+
<div><strong>Your stack stays.</strong><p>React, Vue, Svelte or vanilla — built to static assets.</p></div>
|
|
28
|
+
</li>
|
|
29
|
+
<li>
|
|
30
|
+
<span class="num">02</span>
|
|
31
|
+
<div><strong>~0.5 MiB runtime.</strong><p>One executable, system WebView, no heavy runtime.</p></div>
|
|
32
|
+
</li>
|
|
33
|
+
<li>
|
|
34
|
+
<span class="num">03</span>
|
|
35
|
+
<div><strong>Instant builds.</strong><p>Assets only; no native compile per app.</p></div>
|
|
36
|
+
</li>
|
|
37
|
+
</ul>
|
|
38
|
+
</section>
|
|
39
|
+
|
|
40
|
+
<nav class="links" aria-label="Avelra links">
|
|
41
|
+
<a href="https://avelra.dev/" target="_blank" rel="noopener noreferrer" data-open-url>Home <span>↗</span></a>
|
|
42
|
+
<a href="https://avelra.dev/docs/" target="_blank" rel="noopener noreferrer" data-open-url>Docs <span>↗</span></a>
|
|
43
|
+
<span class="link-disabled" aria-disabled="true" title="Examples will be available with the public preview">Examples <span>↗</span></span>
|
|
44
|
+
</nav>
|
|
45
|
+
</section>
|
|
46
|
+
|
|
47
|
+
<section class="bridge health" aria-live="polite">
|
|
48
|
+
<div class="bridge-top">
|
|
49
|
+
<span class="label">HEALTH CHECK</span>
|
|
50
|
+
<span class="state" id="status">checking…</span>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<p class="hint">Runtime and app checks from <code>window.avelra.app.healthCheck()</code>.</p>
|
|
54
|
+
|
|
55
|
+
<pre class="call">await window.avelra.app.healthCheck()</pre>
|
|
56
|
+
|
|
57
|
+
<div class="health-headline">
|
|
58
|
+
<strong id="health-app">—</strong>
|
|
59
|
+
<span id="health-meta">—</span>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div class="health-checks" id="health-checks"></div>
|
|
63
|
+
|
|
64
|
+
<div class="health-footer">
|
|
65
|
+
<span id="health-uptime"></span>
|
|
66
|
+
<button id="health-refresh" type="button">Check again</button>
|
|
67
|
+
</div>
|
|
68
|
+
</section>
|
|
69
|
+
</main>
|
|
70
|
+
|
|
71
|
+
<footer>
|
|
72
|
+
<span>Built with Avelra</span>
|
|
73
|
+
<span>tiny runtime · system WebView</span>
|
|
74
|
+
</footer>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="modal-backdrop" id="url-open-error" hidden>
|
|
77
|
+
<div class="modal" role="dialog" aria-modal="true" aria-labelledby="link-error-title">
|
|
78
|
+
<p class="eyebrow">OPEN LINK</p>
|
|
79
|
+
<h2 id="url-open-error-title">Could not open your browser.</h2>
|
|
80
|
+
<p class="modal-copy">The link was not opened. Copy the address and open it manually:</p>
|
|
81
|
+
<code class="modal-url" id="url-open-error-url"></code>
|
|
82
|
+
<div class="modal-actions">
|
|
83
|
+
<button id="url-open-error-close" type="button">Close</button>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<script src="app.js"></script>
|
|
88
|
+
</body>
|
|
89
|
+
</html>
|