# awslabs/llrt

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/awslabs-llrt).**

8,752 stars · 393 forks · Rust · Apache-2.0

## Links

- GitHub: https://github.com/awslabs/llrt
- awesome-repositories: https://awesome-repositories.com/repository/awslabs-llrt.md

## Description

llrt is a low-latency JavaScript runtime based on the QuickJS engine, specifically designed for executing asynchronous functions in serverless environments. It provides a lightweight execution layer optimized for fast startup times and minimal memory usage when running ES2023 workloads.

The project differentiates itself by bundling natively optimized cloud service SDKs directly into the runtime binary to eliminate external dependency loading. To further reduce cold start latency, it implements parallel connection warming for TLS and network handshakes during the startup phase.

The runtime covers a broad range of capabilities including network connectivity via HTTP and UDP, filesystem management, and modular cryptographic operations. It also includes memory management tools such as configurable garbage collection thresholds and a set of web API polyfills to ensure compatibility with standard JavaScript libraries.

The project includes a built-in test runner for local function verification and supports deployment via infrastructure as code templates.

## Tags

### Programming Languages & Runtimes

- [Low-Latency JavaScript Execution](https://awesome-repositories.com/f/programming-languages-runtimes/low-latency-javascript-execution.md) — Executes JavaScript applications in a lightweight environment specifically optimized for low-latency serverless execution. ([source](https://github.com/awslabs/llrt/blob/main/Cargo.toml))
- [JavaScript Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/javascript-runtimes.md) — Provides a lightweight JavaScript runtime based on QuickJS optimized for efficiency and fast startup. ([source](https://github.com/awslabs/llrt/blob/main/example/functions/build.mjs))
- [Cloud Native Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/cloud-native-runtimes.md) — Acts as an execution layer that bundles native cloud clients and network optimizations to accelerate function initialization.
- [Cold Start Optimizations](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-infrastructure/intermediate-representations/bytecode/precompilation/cold-start-optimizations.md) — Reduces cold start latency through parallel connection warming and the use of lightweight binaries.
- [Connection Warming](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-infrastructure/intermediate-representations/bytecode/precompilation/cold-start-optimizations/connection-warming.md) — Reduces TLS latency by initializing secure connections in parallel during the runtime startup phase. ([source](https://github.com/awslabs/llrt#readme))
- [Asynchronous Event Loops](https://awesome-repositories.com/f/programming-languages-runtimes/language-features-paradigms/concurrency-models/asynchronous-event-loops.md) — Implements a custom event-driven execution model designed specifically for low-latency serverless workloads.
- [QuickJS-Based Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/quickjs-based-runtimes.md) — Uses the QuickJS engine to provide a lightweight environment with fast startup and low memory overhead.
- [Low-Latency Execution](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/javascript-runtimes/sandboxed-javascript-execution/low-latency-execution.md) — Optimizes JavaScript execution for minimal memory usage and fast startup times in serverless environments.
- [Serverless Workload Execution](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/javascript-runtimes/sandboxed-javascript-execution/serverless-workload-execution.md) — Executes ES2023 JavaScript workloads with a focus on minimal memory footprint and low latency. ([source](https://github.com/awslabs/llrt/blob/main/README.md))
- [Embedded JavaScript Interpreters](https://awesome-repositories.com/f/programming-languages-runtimes/javascript-engines/embedded-javascript-interpreters.md) — Utilizes an embedded QuickJS interpreter to provide a high-performance, small-footprint environment.
- [JavaScript and Web-Standard](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/runtime-environments/runtimes/javascript-and-web-standard.md) — Supports development of small-footprint applications using ES2023 and essential web-standard APIs.
- [API Polyfills](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/runtime-environments/runtimes/javascript-and-web-standard/api-polyfills.md) — Provides embedded polyfills for standard web APIs to ensure compatibility with common JavaScript libraries.

### Software Engineering & Architecture

- [Native SDK Integration](https://awesome-repositories.com/f/software-engineering-architecture/cloud-native-integration-layers/native-sdk-integration.md) — Bakes high-performance cloud service clients directly into the runtime binary to eliminate external dependency loading.
- [Resource Limit Configurations](https://awesome-repositories.com/f/software-engineering-architecture/default-configuration-values/execution-parameter-configurations/application-parameter-configurators/runtime-parameter-configurators/resource-limit-configurations.md) — Allows configuration of memory limits and idle socket timeouts to ensure stable system performance. ([source](https://github.com/awslabs/llrt/blob/main/README.md))

### DevOps & Infrastructure

- [Serverless Execution Environments](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure/cloud-computing-serverless/serverless-execution-environments.md) — Provides an optimized runtime environment for event-driven, ephemeral code execution across various architectures. ([source](https://github.com/awslabs/llrt/blob/main/Makefile))
- [Cloud Native Application Development](https://awesome-repositories.com/f/devops-infrastructure/cloud-native-orchestration/cloud-native-application-development.md) — Provides a runtime optimized for building and executing cloud-native serverless applications.
- [Native SDK Binaries](https://awesome-repositories.com/f/devops-infrastructure/cloud-service-integrations/native-sdk-binaries.md) — Bakes natively optimized cloud service SDKs directly into the runtime binary to remove dependency loading overhead.
- [Serverless Function Executions](https://awesome-repositories.com/f/devops-infrastructure/event-driven-triggers/serverless-function-executions.md) — Runs asynchronous handler functions to process events in a low-latency serverless environment. ([source](https://github.com/awslabs/llrt/blob/main/example/functions/src/v3-lib.mjs))
- [Function Warm-up Utilities](https://awesome-repositories.com/f/devops-infrastructure/function-warm-up-utilities.md) — Initializes network connections in parallel during startup to eliminate cold-start latency for initial requests. ([source](https://github.com/awslabs/llrt/blob/main/README.md))
- [Native Binary Packagers](https://awesome-repositories.com/f/devops-infrastructure/native-binary-packagers.md) — Bundles cloud service clients into the runtime binary as part of the native binary packaging to eliminate cold starts.
- [AWS API Clients](https://awesome-repositories.com/f/devops-infrastructure/aws-api-clients.md) — Integrates high-performance AWS API clients directly into the runtime to reduce cold start latency. ([source](https://github.com/awslabs/llrt/blob/main/index.mjs))
- [Application Cloud Deployments](https://awesome-repositories.com/f/devops-infrastructure/cloud-deployment/multi-cloud-deployments/cross-cloud-certificate-deployment/cloud-platform-deployments/application-cloud-deployments.md) — Supports packaging application code into container images for deployment to cloud hosting environments. ([source](https://github.com/awslabs/llrt/blob/main/example/llrt-sam-container-image))
- [Infrastructure Deployment](https://awesome-repositories.com/f/devops-infrastructure/infrastructure-deployment.md) — Includes dedicated construct libraries to automate the deployment of serverless functions via infrastructure as code. ([source](https://github.com/awslabs/llrt/blob/main/README.md))
- [Serverless Deployment](https://awesome-repositories.com/f/devops-infrastructure/serverless-deployment.md) — Provides tools to package and deploy code to event-driven serverless cloud environments. ([source](https://github.com/awslabs/llrt/blob/main/example/llrt-sam))

### Networking & Communication

- [Parallel Connection Warming](https://awesome-repositories.com/f/networking-communication/tcp-connection-lifecycles/secure-connection-initialization/parallel-connection-warming.md) — Initializes TLS and network connections in parallel during startup to remove handshake latency from the first request.

### Part of an Awesome List

- [Configurable Garbage Collection](https://awesome-repositories.com/f/awesome-lists/devtools/memory-management/configurable-garbage-collection.md) — Implements configurable garbage collection thresholds to prevent memory exhaustion in constrained serverless environments.

### Development Tools & Productivity

- [Cloud Service SDKs](https://awesome-repositories.com/f/development-tools-productivity/cloud-service-sdks.md) — Bundles specific cloud service clients and endpoints into the runtime to reduce initialization time. ([source](https://github.com/awslabs/llrt/blob/main/sdk.cfg))
- [Local Function Execution](https://awesome-repositories.com/f/development-tools-productivity/local-function-execution.md) — Provides utilities to run serverless functions locally using mock events to emulate cloud environments. ([source](https://github.com/awslabs/llrt/blob/main/example/llrt-sam-container-image))
- [Native SDK Bundling](https://awesome-repositories.com/f/development-tools-productivity/third-party-integrations/dependency-bundling/native-sdk-bundling.md) — Bakes native implementations of cloud service clients into the runtime to reduce cold starts and binary size. ([source](https://github.com/awslabs/llrt#readme))

### Operating Systems & Systems Programming

- [Garbage Collection](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/process-and-memory-management/memory-management/automated-reclamation-systems/garbage-collection.md) — Implements configurable garbage collection thresholds to reclaim memory and prevent application crashes in serverless environments. ([source](https://github.com/awslabs/llrt#readme))
- [Memory-Threshold GC Tuning](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/process-and-memory-management/memory-management/automated-reclamation-systems/garbage-collection-tuning/memory-threshold-gc-tuning.md) — Allows configuring memory limits that force the garbage collector to run and prevent memory exhaustion.

### System Administration & Monitoring

- [Function Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/function-monitoring.md) — Provides a CLI to fetch and filter execution logs from deployed serverless functions. ([source](https://github.com/awslabs/llrt/blob/main/example/llrt-sam-container-image))
- [Memory Usage Analyzers](https://awesome-repositories.com/f/system-administration-monitoring/memory-usage-analyzers/memory-usage-analyzers.md) — Computes detailed memory statistics, including object and string counts, to monitor runtime resource usage. ([source](https://github.com/awslabs/llrt/blob/main/API.md))
- [Garbage Collection Triggers](https://awesome-repositories.com/f/system-administration-monitoring/memory-usage-analyzers/memory-usage-analyzers/memory-threshold-alerting/garbage-collection-triggers.md) — Forces garbage collection when a configurable memory threshold is reached to prevent crashes in constrained environments.

### Testing & Quality Assurance

- [Built-in Testing Frameworks](https://awesome-repositories.com/f/testing-quality-assurance/built-in-testing-frameworks.md) — Includes an integrated, lightweight testing framework for verifying functions with standard assertions. ([source](https://github.com/awslabs/llrt#readme))
