MCPcopy
hub / github.com/serverless/examples

github.com/serverless/examples @main sqlite

repository ↗ · DeepWiki ↗
552 symbols 1,747 edges 355 files 151 documented · 27%
README

Website  •  Documentation  •  X / Twitter  •  Community Slack  •  Forum

examples-hero

Serverless Examples

A collection of ready-to-deploy Serverless Framework services.

Table of Contents

Click to expand

Getting Started

If you are new to serverless, we recommend getting started with by creating an HTTP API Endpoint in NodeJS, Python, Java, or Golang.

Examples

Each example contains a README.md with an explanation about the service and it's use cases.

Have an example? Submit a PR or open an issue. ⚡️

To install any of these you can run:

serverless install -u https://github.com/serverless/examples/tree/master/folder-name -n my-project
Example Runtime
Dot Net REST API with DynamoDB

Setup a REST API w/ DynamoDB using Dot Net Core 2.1 | unknown | | AWS FFmepg Layer

AWS FFmepg Layer & a service using it to create GIFs | unknown | | AWS Golang Auth

This example shows you how to setup auth in front of a AWS Lambda function | unknown | | DynamoDB Stream To Elasticsearch

Stream data from DynamoDB to Elasticsearch | unknown | | Google map api

Serverless example using golang to hit google map api | unknown | | HTTP GET and POST

Boilerplate code for Golang with GET and POST example | unknown | | Aws golang rest api with dynamodb

Boilerplate code for Golang CRUD Operations | unknown | | AWS S3 Bucket Replicator in Golang

Boilerplate code for Golang with S3 object create event and replicator example | unknown | | TODO

This example demonstrates how to setup a simple HTTP endpoint in Go. | unknown | | TODO

This example demonstrates how to stream kinesis information into elasticsearch in a golang runtime | unknown | | AWS Simple HTTP Endpoint example in Java

This example demonstrates how to setup a simple HTTP GET endpoint using Java. Once you ping it, it will reply with the current time. | unknown | | TODO

This example demonstrates how you can run multiple runtimes in AWS Lambda. | unknown | | AWS Serverless Alexa Skill example in NodeJS

This example demonstrates how to setup your own Alexa skill using AWS Lambdas. | unknown | | API Gateway Authorizer Function for Auth0 or AWS Cognito using RS256 JSON Web Key Sets tokens.

Authorize your API Gateway with either Auth0 or Cognito JWKS RS256 tokens. | unknown | | AWS API Gateway Custom Authorizer Function with Auth0 example in NodeJS

This is an example of how to protect API endpoints with Auth0, JSON Web Tokens (jwt) and a custom authorizer lambda function. | unknown | | Dynamic Image Resizing API

This example shows you how to setup a dynamic image resizer API | unknown | | TODO

This examples shows your how to create a backup of your DynamoDB table to S3. | unknown | | AWS Storing Encrypted Secrets example in NodeJS

This example demonstrates how to store secrets like API keys encrypted in your repository while providing them as environment variables to your AWS Lambda functions. | unknown | | AWS Serverless Environment Variables Usage example in NodeJS

This example demonstrates how to use environment variables for AWS Lambdas. | unknown | | Node Express API on AWS

This template demonstrates how to develop and deploy a simple Node Express API running on AWS Lambda using the Serverless Framework. | unknown | | Node Express API service backed by DynamoDB on AWS

This template demonstrates how to develop and deploy a simple Node Express API service backed by DynamoDB running on AWS Lambda using the Serverless Framework. | unknown | | AWS Fetch image from URL and upload to S3 example in NodeJS

This example display how to fetch an image from remote source (URL) and then upload this image to a S3 bucket. | unknown | | Serverless Email Sign Up Form

This example demonstrates how to deploy a Fullstack serverless application | unknown | | AWS Function compiled with Babel example in NodeJS

This example demonstrates how to compile your JavaScript code with Babel. In order to do so the 'serverless-babel-plugin' is leveraged. | unknown | | Serverless Github Check

The idea is to validate that all Pull Requests are related to a specific trello card.

Extension points exported contracts — how you extend this code

IDummyObject (Interface)
(no doc)
aws-node-typescript-apollo-lambda/src/graphql/resolvers/typings.ts
IDummyQueryArgs (Interface)
(no doc)
aws-node-typescript-apollo-lambda/src/graphql/resolvers/typings.ts
IDummyMutationArgs (Interface)
(no doc)
aws-node-typescript-apollo-lambda/src/graphql/resolvers/typings.ts

Core symbols most depended-on inside this repo

error
called by 144
aws-node-rest-api-typescript/app/utils/message.ts
send
called by 27
aws-node-twilio-send-text-message/messenger.js
update
called by 11
aws-node-rest-api-typescript/app/controller/books.ts
createErrorResponse
called by 9
aws-node-rest-api-mongodb/handler.js
createErrorResponse
called by 9
aws-node-http-api-mongodb/handler.js
createAgent
called by 9
aws-bedrock-agentcore/javascript/langgraph-memory/index.js
find
called by 7
aws-node-rest-api-typescript/app/controller/books.ts
save
called by 6
aws-python-pynamodb-s3-sigurl/asset/asset_model.py

Shape

Function 381
Method 75
Class 57
Struct 25
TypeAlias 6
Route 4
Interface 3
Enum 1

Languages

TypeScript47%
Python31%
Go18%
Java4%

Modules by API surface

aws-golang-googlemap/geomap/geomap.go18 symbols
aws-bedrock-agentcore/javascript/langgraph-comprehensive/agents/index.js16 symbols
aws-java-simple-http-endpoint/src/main/java/com/serverless/ApiGatewayResponse.java15 symbols
aws-python-pynamodb-s3-sigurl/asset/asset_model.py12 symbols
aws-node-fullstack/frontend/src/DemoApp.js12 symbols
aws-python-auth0-custom-authorizers-api/lambda_handlers.py9 symbols
aws-node-rest-api-typescript/app/utils/message.ts9 symbols
aws-node-rest-api-typescript/app/service/books.ts8 symbols
aws-node-rest-api-typescript/app/controller/books.ts8 symbols
aws-node-single-page-app-via-cloudfront/serverless-single-page-app-plugin/index.js7 symbols
aws-golang-dynamo-stream-to-elasticsearch/dstream/update.go7 symbols
aws-node-github-check/libs/response-lib.js6 symbols

Dependencies from manifests, versioned

github.com/aws/aws-sdk-gov1.37.1 · 1×
github.com/onsi/ginkgov1.6.0 · 1×
github.com/pmezard/go-difflibv1.0.0 · 1×
golang.org/x/netv0.0.0-2018092615472 · 1×
golang.org/x/sysv0.0.0-2018092813382 · 1×
com.amazonaws:aws-lambda-java-core1.1.0 · 1×
com.amazonaws:aws-lambda-java-log4j1.0.0 · 1×

Datastores touched

UserCollection · 1 repos
booksCollection · 1 repos
(mongodb)Database · 1 repos
(mysql)Database · 1 repos

For agents

$ claude mcp add examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact