All Projects → elsaland → Elsa

elsaland / Elsa

Licence: mit
❄️ Elsa is a minimal, fast and secure runtime for JavaScript and TypeScript written in Go

Programming Languages

go
31211 projects - #10 most used programming language
typescript
32286 projects
Makefile
30231 projects

Projects that are alternatives of or similar to Elsa

quickjs-build
Build for QuickJS JavaScript Engine
Stars: ✭ 25 (-98.98%)
Mutual labels:  runtime, quickjs
Smol
A small and fast async runtime for Rust
Stars: ✭ 2,206 (-10.36%)
Mutual labels:  runtime
Debugengine
Delphi debug framework
Stars: ✭ 133 (-94.6%)
Mutual labels:  runtime
Inline Manifest Webpack Plugin
inline your webpack manifest (runtime code) with a script tag to save http request
Stars: ✭ 157 (-93.62%)
Mutual labels:  runtime
Nconcern
NConcern .NET AOP Framework
Stars: ✭ 139 (-94.35%)
Mutual labels:  runtime
Zap
An asynchronous runtime with a focus on performance and resource efficiency.
Stars: ✭ 162 (-93.42%)
Mutual labels:  runtime
Runtypes
Runtime validation for static types
Stars: ✭ 1,950 (-20.76%)
Mutual labels:  runtime
Swiftdb
A modern database abstraction layer, batteries included.
Stars: ✭ 183 (-92.56%)
Mutual labels:  runtime
Coreclr
CoreCLR is the runtime for .NET Core. It includes the garbage collector, JIT compiler, primitive data types and low-level classes.
Stars: ✭ 12,610 (+412.39%)
Mutual labels:  runtime
Quickjs
QuickJS是一个小型并且可嵌入的Javascript引擎,它支持ES2020规范,包括模块,异步生成器和代理器。
Stars: ✭ 2,199 (-10.65%)
Mutual labels:  quickjs
Elsa Core
A .NET Standard 2.0 Workflows Library
Stars: ✭ 2,793 (+13.49%)
Mutual labels:  elsa
Swizzleswift
Swizzle selectors with just one clean and elegant API
Stars: ✭ 140 (-94.31%)
Mutual labels:  runtime
Wasm Micro Runtime
WebAssembly Micro Runtime (WAMR)
Stars: ✭ 2,440 (-0.85%)
Mutual labels:  runtime
Next Runtime Dotenv
Expose environment variables to the runtime config of Next.js
Stars: ✭ 136 (-94.47%)
Mutual labels:  runtime
Aesthetic
[DEPRECATED]
Stars: ✭ 2,044 (-16.94%)
Mutual labels:  runtime
Electron Global
One Electron instance for multiple apps
Stars: ✭ 129 (-94.76%)
Mutual labels:  runtime
Crystdb
CrystDB is a thread-safe and convenient Object Relational Mapping database that based on SQLite.
Stars: ✭ 146 (-94.07%)
Mutual labels:  runtime
One
On-device Neural Engine
Stars: ✭ 162 (-93.42%)
Mutual labels:  runtime
Csmodel
CSModel is a concise and efficient model framework for iOS/OSX, and provides nested Model to compare values and copy values.
Stars: ✭ 192 (-92.2%)
Mutual labels:  runtime
Colorful
Android runtime theme library
Stars: ✭ 2,091 (-15.03%)
Mutual labels:  runtime

Elsa

Travis Status Build Status - Badge Discord invite

Elsa is a minimal, fast and secure runtime for JavaScript and TypeScript written in Go, leveraging the power from QuickJS.

Features

  • URL based imports.
  • No fs, net access unless specified.
  • Compliant to web standards.
  • Supports TypeScript.
  • Module caching.
  • Bundle your script into a single file.
  • Create a standalone executable for your bundles.

Install

Not yet released, build from source instead.

Build from source

You will need Go installed on your machine before building.

Install go-bindata using go get github.com/go-bindata/go-bindata/...

Clone the repo on your $GOPATH and run make build to trigger the build process.

Getting Started

Try running a simple program:

// hello.ts
import { hello } from "https://x.nest.land/[email protected]/mod.ts";

hello("Elsa");
> elsa run hello.ts
Hello, Elsa

Contributing

Start by creating an issue about your feature or bug! Then, create a PR and we'll land it 😄

Credits

FAQs

Where to use Elsa and where not to...

Elsa is small and embeddable into Go programs, using Quickjs as the backend comes with certain pros and cons -

PROS:

  • Suitable for CLI applications and shipping them as an executable
  • Native bindings to system level APIs (webview, etc)
  • Hosting discord bots on your raspberry pi
  • Embeddable inside your Go programs.
  • General purpose scripting

CONS:

  • Slower runtime execution than Node and Deno
  • Slower backends
  • Double GC

Why choose QuickJS over V8?

QuickJS is a small and embeddable JavaScript engine but it lacks V8's JIT for fast JavaScript execution. Although, it doesn't mean you cannot use Elsa on backends and CPU intensive tasks.

QuickJS has a better startup time than V8 so it would be a strong alternative for CLI apps and short-lived runs.

Looks like a QuickJS wrapper to me?

Technically, Node and Deno are also V8 wrappers. All do the same job, init engine - init ops - bundle - run. Most people don't realise that implementing native ops is what makes a runtime and not an interpreter.

What's the status of the project?

It is in it's very early stages of development i.e. nothing should be considered stable. Feel free to take it for a spin though :)

What does "minimal" actually refer to?

The goal is to fullfil the bare minimum requirements needed for development of a project. Elsa, although aims to be extendable via plugins. A few examples of features that are not likely to be included in Elsa are tools for formatting, linting and analysis.

In short, develop - package - ship

License

Elsa.land is licensed under MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].