Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Serverless | 44,479 | 1,618 | 830 | 15 hours ago | 1,987 | September 19, 2022 | 1,002 | mit | JavaScript | |
⚡ Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! – | ||||||||||
Sst | 12,910 | 4 | a day ago | 681 | September 23, 2022 | 623 | mit | JavaScript | ||
💥 SST makes it easy to build full-stack serverless apps. | ||||||||||
Awesome Aws | 11,283 | 24 days ago | 1 | December 21, 2015 | 63 | other | Python | |||
A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome. | ||||||||||
Examples | 10,762 | 4 days ago | 19 | April 25, 2021 | 167 | other | JavaScript | |||
Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more. | ||||||||||
Chalice | 9,597 | 126 | 31 | 23 days ago | 86 | June 01, 2022 | 430 | apache-2.0 | Python | |
Python Serverless Microframework for AWS | ||||||||||
Serverless Application Model | 8,965 | 84 | 15 | 2 days ago | 59 | June 07, 2022 | 132 | apache-2.0 | Python | |
The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates. | ||||||||||
Up | 8,687 | 68 | 13 | a month ago | 11 | March 02, 2018 | 291 | mit | Go | |
Deploy infinitely scalable serverless apps, apis, and sites in seconds to AWS. | ||||||||||
Webiny Js | 6,477 | 113 | 14 hours ago | 251 | September 07, 2022 | 216 | other | TypeScript | ||
Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS. | ||||||||||
Aws Sam Cli | 6,249 | 31 | 12 | 15 hours ago | 129 | June 29, 2022 | 358 | apache-2.0 | Python | |
CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM | ||||||||||
Docker Lambda | 5,852 | 38 | 14 | 3 months ago | 15 | June 30, 2018 | 68 | mit | C# | |
Docker images and test runners that replicate the live AWS Lambda environment |
Package gateway provides a drop-in replacement for net/http's ListenAndServe
for use in AWS Lambda & API Gateway, simply swap it out for gateway.ListenAndServe
. Extracted from Up which provides additional middleware features and operational functionality.
There are two versions of this library, version 1.x supports AWS API Gateway 1.0 events used by the original REST APIs, and 2.x which supports 2.0 events used by the HTTP APIs. For more information on the options read Choosing between HTTP APIs and REST APIs on the AWS documentation website.
To install version 1.x for REST APIs.
go get github.com/apex/gateway
To install version 2.x for HTTP APIs.
go get github.com/apex/gateway/v2
package main
import (
"fmt"
"log"
"net/http"
"os"
"github.com/apex/gateway"
)
func main() {
http.HandleFunc("/", hello)
log.Fatal(gateway.ListenAndServe(":3000", nil))
}
func hello(w http.ResponseWriter, r *http.Request) {
// example retrieving values from the api gateway proxy request context.
requestContext, ok := gateway.RequestContext(r.Context())
if !ok || requestContext.Authorizer["sub"] == nil {
fmt.Fprint(w, "Hello World from Go")
return
}
userID := requestContext.Authorizer["sub"].(string)
fmt.Fprintf(w, "Hello %s from Go", userID)
}