Skip to content
pubscout

aws_lambda_dart_runtime_ns

1.0.1, released a year ago by shinyakato.dev

A Dart runtime to build and deploy AWS Lambda functions.

$ flutter pub add aws_lambda_dart_runtime_ns
Source repository

What it does

Allows developers to build AWS Lambda functions in Dart with support for native AWS events and multiple event handlers. It provides a lightweight runtime with low memory consumption and fast event processing.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to write AWS Lambda functions using Dart
  • You need to handle native AWS events and API Gateway responses in a Dart backend

Skip it when

  • You are deploying to a serverless provider other than AWS Lambda
  • You are building a client-side mobile or desktop application

Strengths

  • Low memory consumption (< 50MB)
  • Fast event processing (< 10ms)
  • Supports multiple event handlers

Weaknesses

  • Limited to AWS Lambda runtime environments
  • Dependency on community maintenance rather than official AWS labs

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1

Add the package to pubspec.yaml and configure your AWS Lambda function handlers.

import 'package:aws_lambda_dart_runtime_ns/aws_lambda_dart_runtime_ns.dart';

Future<void> main() async => await invokeAwsLambdaRuntime([
      FunctionHandler(
        name: 'main.helloWorld',
        action: (context, event) {
          return InvocationResult(
            requestId: context.requestId,
            body: {'message': 'Hello, World!'},
          );
        },
      ),
    ]);

Alternatives

Packages that do the same job and could replace aws_lambda_dart_runtime_ns.