Skip to content

Commit

Permalink
rename to lagoss
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten committed Feb 28, 2024
1 parent 43d0ffd commit 1943b1c
Show file tree
Hide file tree
Showing 83 changed files with 343 additions and 352 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CD
on:
push:
tags:
- '@lagon/cli@*'
- '@lagoss/cli@*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Build js-runtime
run: pnpm turbo build --filter=@lagon/js-runtime
run: pnpm turbo build --filter=@lagoss/js-runtime
- name: Build CLI
run: |
cd crates/cli && cargo build --release --target ${{ matrix.target }}
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ on:
branches:
- main
tags:
- '@lagon/serverless@*'
- '@lagoss/serverless@*'
- '@lagoss/dashboard@*'
pull_request:

env:
DOCKER_HUB_USER: lagonapp

jobs:
create-container-image:
name: Create "${{matrix.image}}" container image
Expand All @@ -35,10 +33,9 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
${{ env.DOCKER_HUB_USER }}/${{matrix.image}}
ghcr.io/${{ github.repository_owner }}/${{matrix.image}}
tags: |
type=ref,event=tag,prefix=@lagon/${{matrix.image}}@
type=ref,event=tag,prefix=@lagoss/${{matrix.image}}@
type=ref,event=pr
type=raw,value=next,enable={{is_default_branch}}
Expand All @@ -50,13 +47,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ env.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
if: "!startsWith(github.ref, 'refs/tags/') || contains(github.ref, matrix.image)" # only execute if not tag or tag with specific matrix image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Build runtime
run: pnpm turbo build --filter=@lagon/js-runtime
run: pnpm turbo build --filter=@lagoss/js-runtime
- name: Run wpt-runner
run: cd crates/wpt-runner && pnpm start
- name: Check if results have changed
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./assets/logo-white.png">
<source media="(prefers-color-scheme: light)" srcset="./assets/logo-black.png">
<img alt="Lagon logo" height="60px" src="./assets/logo-white.png">
<img alt="Lagoss logo" height="60px" src="./assets/logo-white.png">
</picture>
<p align="center">
Deploy Serverless Functions at the Edge
Expand All @@ -19,15 +19,15 @@

## About

Lagon is an open-source runtime and platform that allows developers to run TypeScript and JavaScript Serverless Functions close to users.
Lagoss is an open-source runtime and platform that allows developers to run TypeScript and JavaScript Serverless Functions close to users.

> **Note**: Lagon is in Alpha. Get access to Lagon Cloud via the [waitlist](https://tally.so/r/n9q1Rp)
> **Note**: Lagoss is in Alpha. Get access to Lagoss Cloud via the [waitlist](https://tally.so/r/n9q1Rp)
Current status:

- Dev: In heavy development, features are being added and APIs have breaking changes
- **Alpha**: Missing features and bugs to fix, progressive access to Lagon Cloud ([waitlist](https://tally.so/r/n9q1Rp))
- ~Beta~: Stable APIs, last features are being added, Lagon Cloud available without a waitlist
- **Alpha**: Missing features and bugs to fix, progressive access to Lagoss Cloud ([waitlist](https://tally.so/r/n9q1Rp))
- ~Beta~: Stable APIs, last features are being added, Lagoss Cloud available without a waitlist
- ~General Availability~: Cloud and self-hosted versions available for production usage

## Packages
Expand All @@ -39,7 +39,7 @@ Current status:
- **[runtime](./crates/runtime)** Rust JavaScript Runtime, using V8 Isolates
- **[serverless](./crates/serverless)** HTTP entrypoint for Functions, using the Runtime and exporting metrics
- **[ui](./packages/ui)** Design system
- **[wpt-runner](./crates/wpt-runner)** Run web-platform-tests on Lagon
- **[wpt-runner](./crates/wpt-runner)** Run web-platform-tests on Lagoss

## Features

Expand All @@ -62,7 +62,7 @@ The roadmap is accessible to anyone on GitHub. Feel free to open an issue to dis

## How it works

Lagon uses V8 Isolates, which are sandboxed environments used to run plain JavaScript. That means each Function's memory is isolated from each others, and you can run a lot of them at the same time with very few resources. [Node.js](https://nodejs.org/), [Electron](https://www.electronjs.org/), [Deno](https://deno.land/) (and [Deno Deploy](https://deno.com/deploy)), [Cloudflare Workers](https://workers.cloudflare.com/) are also using V8 Isolates to execute JavaScript.
Lagoss uses V8 Isolates, which are sandboxed environments used to run plain JavaScript. That means each Function's memory is isolated from each others, and you can run a lot of them at the same time with very few resources. [Node.js](https://nodejs.org/), [Electron](https://www.electronjs.org/), [Deno](https://deno.land/) (and [Deno Deploy](https://deno.com/deploy)), [Cloudflare Workers](https://workers.cloudflare.com/) are also using V8 Isolates to execute JavaScript.

Starting an Isolate is a lot faster than starting a whole Node.js process, which allows for almost free cold starts.

Expand Down
2 changes: 1 addition & 1 deletion crates/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @lagon/cli
# @lagoss/cli

## 0.7.8

Expand Down
6 changes: 3 additions & 3 deletions crates/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@lagon/cli",
"name": "@lagoss/cli",
"version": "0.7.8",
"description": "CLI for Lagon",
"description": "CLI for Lagoss",
"type": "module",
"files": [
"npm"
],
"bin": {
"lagon": "./npm/run.js"
"lagoss": "./npm/run.js"
},
"scripts": {
"build": "cargo build",
Expand Down
4 changes: 2 additions & 2 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ struct Cli {

#[derive(Subcommand, Debug)]
enum Commands {
/// Log in to Lagon
/// Log in to Lagoss
Login,
/// Log out of Lagon
/// Log out of Lagoss
Logout,
/// Deploy a new or existing Function
Deploy {
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @lagon/runtime
# @lagoss/runtime

## 0.3.19

Expand Down
4 changes: 2 additions & 2 deletions crates/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lagon/runtime",
"name": "@lagoss/runtime",
"version": "0.3.19",
"description": "JavaScript Serverless Runtime for Lagon",
"description": "JavaScript Serverless Runtime for Lagoss",
"private": true,
"scripts": {
"build": "cargo build",
Expand Down
4 changes: 2 additions & 2 deletions crates/runtime_isolate/src/bindings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pub fn bind<'a>(
compression_finish_binding
);

global.set(v8_string(scope, "LagonSync").into(), lagon_object.into());
global.set(v8_string(scope, "LagossSync").into(), lagon_object.into());
}

if bind_strategy == BindStrategy::All || bind_strategy == BindStrategy::Async {
Expand Down Expand Up @@ -189,7 +189,7 @@ pub fn bind<'a>(
generate_key_binding
);

global.set(v8_string(scope, "LagonAsync").into(), lagon_object.into());
global.set(v8_string(scope, "LagossAsync").into(), lagon_object.into());
}

v8::Context::new_from_template(scope, global)
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime_utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @lagon/runtime-utils
# @lagoss/runtime-utils

## 0.2.2

Expand Down
14 changes: 7 additions & 7 deletions crates/runtime_utils/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@lagon/runtime-utils",
"version": "0.2.2",
"description": "JavaScript Serverless Runtime for Lagon",
"private": true,
"scripts": {
"test": "cargo test -F test"
}
"name": "@lagoss/runtime-utils",
"version": "0.2.2",
"description": "JavaScript Serverless Runtime for Lagoss",
"private": true,
"scripts": {
"test": "cargo test -F test"
}
}
50 changes: 28 additions & 22 deletions crates/runtime_utils/public/403.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Forbidden</title>
</head>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Forbidden</title>
</head>

<body>
<section class="w-screen h-screen flex items-center justify-center flex-col dark:bg-stone-800">
<h1 class="font-semibold text-3xl text-gray-900 dark:text-gray-200 mb-1">Forbidden</h1>
<span class="uppercase text-lg text-blue-500 mb-6">403</span>
<p class="text-base text-gray-800 dark:text-gray-300 text-center">You can't access this deployment.</p>
</section>

<footer class="absolute bottom-4 left-[50%] transform -translate-x-[50%]">
<a href="https://lagon.app" target="_blank">
<img class="h-6 dark:hidden" alt="Lagon logo" src="https://github.com/lagonapp/lagon/blob/main/assets/logo-black.png?raw=true" />
<img class="h-6 hidden dark:block" alt="Lagon logo for dark mode" src="https://github.com/lagonapp/lagon/blob/main/assets/logo-white.png?raw=true" />
</a>
</footer>
</body>
<body>
<section class="flex h-screen w-screen flex-col items-center justify-center dark:bg-stone-800">
<h1 class="mb-1 text-3xl font-semibold text-gray-900 dark:text-gray-200">Forbidden</h1>
<span class="mb-6 text-lg uppercase text-blue-500">403</span>
<p class="text-center text-base text-gray-800 dark:text-gray-300">You can't access this deployment.</p>
</section>

<footer class="absolute bottom-4 left-[50%] -translate-x-[50%] transform">
<a href="https://lagon.app" target="_blank">
<img
class="h-6 dark:hidden"
alt="Lagoss logo"
src="https://github.com/lagonapp/lagon/blob/main/assets/logo-black.png?raw=true"
/>
<img
class="hidden h-6 dark:block"
alt="Lagoss logo for dark mode"
src="https://github.com/lagonapp/lagon/blob/main/assets/logo-white.png?raw=true"
/>
</a>
</footer>
</body>
</html>
50 changes: 28 additions & 22 deletions crates/runtime_utils/public/404.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Deployment not found</title>
</head>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Deployment not found</title>
</head>

<body>
<section class="w-screen h-screen flex items-center justify-center flex-col dark:bg-stone-800">
<h1 class="font-semibold text-3xl text-gray-900 dark:text-gray-200 mb-1">Deployment not found</h1>
<span class="uppercase text-lg text-blue-500 mb-6">404</span>
<p class="text-base text-gray-800 dark:text-gray-300 text-center">This Deployment does not exist.</p>
</section>

<footer class="absolute bottom-4 left-[50%] transform -translate-x-[50%]">
<a href="https://lagon.app" target="_blank">
<img class="h-6 dark:hidden" alt="Lagon logo" src="https://github.com/lagonapp/lagon/blob/main/assets/logo-black.png?raw=true" />
<img class="h-6 hidden dark:block" alt="Lagon logo for dark mode" src="https://github.com/lagonapp/lagon/blob/main/assets/logo-white.png?raw=true" />
</a>
</footer>
</body>
<body>
<section class="flex h-screen w-screen flex-col items-center justify-center dark:bg-stone-800">
<h1 class="mb-1 text-3xl font-semibold text-gray-900 dark:text-gray-200">Deployment not found</h1>
<span class="mb-6 text-lg uppercase text-blue-500">404</span>
<p class="text-center text-base text-gray-800 dark:text-gray-300">This Deployment does not exist.</p>
</section>

<footer class="absolute bottom-4 left-[50%] -translate-x-[50%] transform">
<a href="https://lagon.app" target="_blank">
<img
class="h-6 dark:hidden"
alt="Lagoss logo"
src="https://github.com/lagonapp/lagon/blob/main/assets/logo-black.png?raw=true"
/>
<img
class="hidden h-6 dark:block"
alt="Lagoss logo for dark mode"
src="https://github.com/lagonapp/lagon/blob/main/assets/logo-white.png?raw=true"
/>
</a>
</footer>
</body>
</html>
58 changes: 32 additions & 26 deletions crates/runtime_utils/public/500.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,36 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Function errored</title>
</head>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Function errored</title>
</head>

<body>
<section class="w-screen h-screen flex items-center justify-center flex-col dark:bg-stone-800">
<h1 class="font-semibold text-3xl text-gray-900 dark:text-gray-200 mb-1">Function errored</h1>
<span class="uppercase text-lg text-blue-500 mb-6">500</span>
<p class="text-base text-gray-800 dark:text-gray-300 text-center">
An error occurred while running this Function.
<br />
If you are the owner, check the logs.
</p>
</section>

<footer class="absolute bottom-4 left-[50%] transform -translate-x-[50%]">
<a href="https://lagon.app" target="_blank">
<img class="h-6 dark:hidden" alt="Lagon logo" src="https://github.com/lagonapp/lagon/blob/main/assets/logo-black.png?raw=true" />
<img class="h-6 hidden dark:block" alt="Lagon logo for dark mode" src="https://github.com/lagonapp/lagon/blob/main/assets/logo-white.png?raw=true" />
</a>
</footer>
</body>
<body>
<section class="flex h-screen w-screen flex-col items-center justify-center dark:bg-stone-800">
<h1 class="mb-1 text-3xl font-semibold text-gray-900 dark:text-gray-200">Function errored</h1>
<span class="mb-6 text-lg uppercase text-blue-500">500</span>
<p class="text-center text-base text-gray-800 dark:text-gray-300">
An error occurred while running this Function.
<br />
If you are the owner, check the logs.
</p>
</section>

<footer class="absolute bottom-4 left-[50%] -translate-x-[50%] transform">
<a href="https://lagon.app" target="_blank">
<img
class="h-6 dark:hidden"
alt="Lagoss logo"
src="https://github.com/lagonapp/lagon/blob/main/assets/logo-black.png?raw=true"
/>
<img
class="hidden h-6 dark:block"
alt="Lagoss logo for dark mode"
src="https://github.com/lagonapp/lagon/blob/main/assets/logo-white.png?raw=true"
/>
</a>
</footer>
</body>
</html>
Loading

0 comments on commit 1943b1c

Please sign in to comment.