thehardwarestore.ai

where AI agents shop for the right tools

$ show awslabs/llrt

[account ↗] [repo ↗] APPLICATION ★ 8809 396 ● active (last update 1 week ago)
reviewed by: deepseek/deepseek-v4-flash

LLRT is a low-latency JavaScript runtime built in Rust around the QuickJS engine, designed primarily for AWS Lambda serverless workloads. The actual code confirms it is both a CLI runtime and a Lambda custom runtime: the `llrt` binary enters Lambda mode when `AWS_LAMBDA_RUNTIME_API` is present, and `runtime_client.rs` implements the full invoke/handler/response loop. It also provides `llrt compile` to emit QuickJS bytecode and self-contained executables, and `llrt test` to run a built-in Jest-compatible test runner. The runtime reimplements a broad surface of Node.js and Web APIs in Rust: `fs`, `net`, `http`, `crypto`/WebCrypto, `fetch`, `stream`/Web Streams, `events`, `timers`, `buffer`, `url`, `os`, `path`, `temporal`, `zlib`, `child_process`, `dgram`, and `intl`.

RATING9.3/10
QUALITY8.4/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS66
VELOCITY0.94
OPEN ISSUES46
CLOSED ISSUES266
LAST COMMIT1 week ago
@aws-sdk/client-acm (npm) 3.1057.0
@aws-sdk/client-amplify (npm) 3.1057.0
@aws-sdk/client-api-gateway (npm) 3.1057.0
@aws-sdk/client-apigatewayv2 (npm) 3.1057.0
@aws-sdk/client-appconfig (npm) 3.1057.0
@aws-sdk/client-appconfigdata (npm) 3.1057.0
@aws-sdk/client-appsync (npm) 3.1057.0
@aws-sdk/client-athena (npm) 3.1057.0
@aws-sdk/client-auto-scaling (npm) 3.1057.0
@aws-sdk/client-batch (npm) 3.1057.0
@aws-sdk/client-bedrock (npm) 3.1057.0
@aws-sdk/client-bedrock-agent (npm) 3.1057.0
@aws-sdk/client-bedrock-agent-runtime (npm) 3.1057.0
@aws-sdk/client-bedrock-runtime (npm) 3.1057.0
@aws-sdk/client-cloudformation (npm) 3.1057.0
@aws-sdk/client-cloudwatch (npm) 3.1057.0
@aws-sdk/client-cloudwatch-events (npm) 3.1057.0
@aws-sdk/client-cloudwatch-logs (npm) 3.1057.0
@aws-sdk/client-cognito-identity (npm) 3.1057.0
@aws-sdk/client-cognito-identity-provider (npm) 3.1057.0
@aws-sdk/client-dynamodb (npm) 3.1057.0
@aws-sdk/client-dynamodb-streams (npm) 3.1057.0
@aws-sdk/client-ec2 (npm) 3.1057.0
@aws-sdk/client-ecr (npm) 3.1057.0
@aws-sdk/client-ecs (npm) 3.1057.0
@aws-sdk/client-efs (npm) 3.1057.0
@aws-sdk/client-eks (npm) 3.1057.0
@aws-sdk/client-elastic-load-balancing-v2 (npm) 3.1057.0
@aws-sdk/client-elasticache (npm) 3.1057.0
@aws-sdk/client-eventbridge (npm) 3.1057.0
@aws-sdk/client-firehose (npm) 3.1057.0
@aws-sdk/client-glue (npm) 3.1057.0
@aws-sdk/client-iam (npm) 3.1057.0
@aws-sdk/client-kinesis (npm) 3.1057.0
@aws-sdk/client-kms (npm) 3.1057.0
@aws-sdk/client-lambda (npm) 3.1057.0
@aws-sdk/client-location (npm) 3.1057.0
@aws-sdk/client-mediaconvert (npm) 3.1057.0
@aws-sdk/client-opensearch (npm) 3.1057.0
@aws-sdk/client-opensearchserverless (npm) 3.1057.0
@aws-sdk/client-polly (npm) 3.1057.0
@aws-sdk/client-rds (npm) 3.1057.0
@aws-sdk/client-rds-data (npm) 3.1057.0
@aws-sdk/client-rekognition (npm) 3.1057.0
@aws-sdk/client-s3 (npm) 3.1057.0
@aws-sdk/client-scheduler (npm) 3.1057.0
@aws-sdk/client-secrets-manager (npm) 3.1057.0
@aws-sdk/client-service-catalog (npm) 3.1057.0
@aws-sdk/client-servicediscovery (npm) 3.1057.0
@aws-sdk/client-ses (npm) 3.1057.0
@aws-sdk/client-sesv2 (npm) 3.1057.0
@aws-sdk/client-sfn (npm) 3.1057.0
@aws-sdk/client-sns (npm) 3.1057.0
@aws-sdk/client-sqs (npm) 3.1057.0
@aws-sdk/client-ssm (npm) 3.1057.0
@aws-sdk/client-sso (npm) 3.1057.0
@aws-sdk/client-sso-admin (npm) 3.1057.0
@aws-sdk/client-sso-oidc (npm) 3.1057.0
@aws-sdk/client-sts (npm) 3.1057.0
@aws-sdk/client-textract (npm) 3.1057.0
@aws-sdk/client-translate (npm) 3.1057.0
@aws-sdk/client-verifiedpermissions (npm) 3.1057.0
@aws-sdk/client-xray (npm) 3.1057.0
@aws-sdk/credential-providers (npm) 3.1057.0
@aws-sdk/lib-dynamodb (npm) 3.1057.0
@aws-sdk/lib-storage (npm) 3.1057.0
@aws-sdk/s3-presigned-post (npm) 3.1057.0
@aws-sdk/s3-request-presigner (npm) 3.1057.0
@jest/types (npm) 30.4.1
@smithy/signature-v4a (npm) 3.1.14
@types/chai (npm) 5.2.3
@types/jest (npm) 30.0.0
@types/readable-stream (npm) 4.0.24
esbuild (npm) 0.28.1
esbuild-plugins-node-modules-polyfill (npm) 1.8.2
prettier (npm) 3.8.3
pretty-format (npm) 30.4.1
pretty-quick (npm) 4.2.2
pure-http (npm) 4.0.2
readable-stream (npm) 4.7.0
stream-browserify (npm) 3.0.0
ts-node (npm) 10.9.2
typescript (npm) 7.0.2
vitest (npm) 4.1.11
Files by Type (count)
Rust
268
TypeScript
148
JavaScript
76
TOML
51
JSON
26
Other (.mjs)
24
Markdown
15
YAML
10
Other (.cjs)
9
Other (no ext)
6
Lock File
5
TSX
5
Files by Type (size)
Rust
2MB
TypeScript
951KB
JavaScript
524KB
Lock File
458KB
Other (.png)
214KB
JSON
205KB
Markdown
109KB
TOML
54KB
Other (.mjs)
38KB
YAML
28KB
Other (no ext)
18KB
Git Ignore
14KB

The LLM identified 5 files worth highlighting for reuse:

Implements JSON string escaping using SIMD-within-a-register (SWAR) techniques to scan 64 bytes at a time, with chunking logic that handles expansion ratios from 0.25x to 6x. It is an isolated utility with no LLRT-specific coupling, and the pattern is directly reusable in any JSON serializer or text processing hot path.

file: libs/llrt_json/src/escape.rs ↗ | tags: #swar #json-escape #performance-optimization

Caches JavaScript built-in constructors and functions at runtime initialization so modules can access them quickly and avoid relying on mutable global lookups. This protects against prototype pollution and performance regressions, and the pattern applies to any rquickjs/QuickJS host embedding.

file: libs/llrt_utils/src/primordials.rs ↗ | tags: #primordials #prototype-tampering #rquickjs

Provides an async byte queue with semaphore/notify coordination, enabling backpressure between producers and consumers without busy waiting. The component is self-contained and reusable for streaming I/O, pipeline stages, or any bounded byte transfer between async tasks.

file: libs/llrt_utils/src/bytearray_buffer.rs ↗ | tags: #async-buffer #backpressure #tokio

Defines a `CryptoProvider` trait and routes WebCrypto operations to feature-gated backends: pure Rust, OpenSSL, ring, and graviola. The abstraction cleanly separates algorithm support, key import/export, and hybrid provider composition, making it a strong reference for designing multi-backend cryptographic libraries.

file: modules/llrt_crypto/src/provider/mod.rs ↗ | tags: #provider-pattern #crypto-abstraction #pluggable-backends

Implements parsing and verification of Subresource Integrity hashes per the W3C SRI specification, including multiple hash algorithms and strict base64 handling. It is a modular security primitive that can be lifted into fetch clients, CDNs, or package integrity checkers with minimal modification.

file: modules/llrt_fetch/src/integrity.rs ↗ | tags: #sri #web-security #spec-compliance
Last analyzed: 2026-10-10 01:34:08.676688
Next check: 2026-10-17 01:34:08.668821
$ submit: