项目 / serverless/examples

serverless/examples

行业推荐
语言 JavaScript标签 serverlessserverless-frameworkexamples数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

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.

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
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.
11,512累计星
4,350Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

智能题库与自动阅卷

适配系统:考试系统、题库系统 · 得分 1.3

提供组卷、作答与自动评分链路,可嵌入考试系统降低教师批改成本。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
安装或使用说明见 https://github.com/serverless/serverless。
特点或设计要点
当前默认分支为 `v4`。示例按运行时和场景分类,包括 REST API 与 DynamoDB、HTTP 接口、S3 处理、Express 应用、GraphQL、自定义鉴权、镜像处理、队列与流处理等;也收录社区示例。可用 `serverless` 命令的交互模板菜单选择起步项目,或按目录直接部署。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-10-27 · 语言 JavaScript · 贡献者 —
javascript

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 60,897 字节),完整内容见 GitHub 仓库。

<br/>

<div align="center">
  <a aria-label="Serverless.com" href="https://serverless.com">Website</a>
  &nbsp;•&nbsp;
  <a aria-label="Serverless Framework Documentation" href="https://serverless.com/framework/docs/">Documentation</a>
  &nbsp;•&nbsp;
  <a aria-label="Serverless Inc Twitter" href="https://twitter.com/goserverless">X / Twitter</a>
  &nbsp;•&nbsp;
  <a aria-label="Serverless Framework Community Slack" href="https://join.slack.com/t/serverless-contrib/shared_invite/zt-2jpqamlep-SRbvbcFGDXmpEXErcL4WWQ">Community Slack</a>
  &nbsp;•&nbsp;
  <a aria-label="Serverless Framework Community Forum" href="https://forum.serverless.com">Forum</a>
</div>

<br/>
<br/>

![examples-hero](https://github.com/user-attachments/assets/83d9a859-a801-4abd-b812-c4498bb032c3)

# Serverless Examples

A collection of ready-to-deploy [Serverless Framework](https://github.com/serverless/serverless) services.

## Table of Contents

<!-- AUTO-GENERATED-CONTENT:START (TOC:collapse=true&collapseText=Click to expand)
  generated w/ `npm run docs`
-->
<details>
<summary>Click to expand</summary>

- [Getting Started](#getting-started)
- [Examples](#examples)
- [Community Examples](#community-examples)
- [Contributing](#contributing)
  - [Adding example code](#adding-example-code)
  - [Adding a community example](#adding-a-community-example)

</details>
<!-- AUTO-GENERATED-CONTENT:END -->

## Getting Started

The fastest way to get started is installing the [Serverless Framework CLI](https://www.serverless.com/framework/docs/getting-started) (`npm install -g serverless`) and deploying one of the examples below. If you are new to serverless, we recommend getting started by creating an HTTP API Endpoint in [NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-simple-http-endpoint), [Python](https://github.com/serverless/examples/tree/v4/aws-python-simple-http-endpoint), [Java](https://github.com/serverless/examples/tree/v4/aws-java-simple-http-endpoint), or [Golang](https://github.com/serverless/examples/tree/v4/aws-golang-simple-http-endpoint).

## 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](https://github.com/serverless/examples/issues). ⚡️

To use one of these examples, run the `serverless` command and pick a starter from the interactive template menu, or grab any example directly:

```bash
git clone https://github.com/serverless/examples
cd examples/folder-name
serverless deploy
```

<!-- AUTO-GENERATED-CONTENT:START (SERVERLESS_EXAMPLE_TABLE) t generated w/ `npm run docs` -->
| Example | Runtime |
|:--- |:--- |
| [Dot Net REST API with DynamoDB](https://github.com/serverless/examples/tree/v4/aws-dotnet-rest-api-with-dynamodb) <br/> Setup a REST API w/ DynamoDB using .NET 10 | dotnet |
| [AWS FFmepg Layer](https://github.com/serverless/examples/tree/v4/aws-ffmpeg-layer) <br/> AWS FFmepg Layer & a service using it to create GIFs | nodeJS |
| [AWS Golang Auth](https://github.com/serverless/examples/tree/v4/aws-golang-auth-examples) <br/> This example shows you how to setup auth in front of a AWS Lambda function | golang |
| [Google map api](https://github.com/serverless/examples/tree/v4/aws-golang-googlemap) <br/> Serverless example using golang to hit google map api | golang |
| [HTTP GET and POST](https://github.com/serverless/examples/tree/v4/aws-golang-http-get-post) <br/> Boilerplate code for Golang with GET and POST example | golang |
| [Aws golang rest api with dynamodb](https://github.com/serverless/examples/tree/v4/aws-golang-rest-api-with-dynamodb) <br/> Boilerplate code for Golang CRUD Operations | golang |
| [AWS S3 Bucket Replicator in Golang](https://github.com/serverless/examples/tree/v4/aws-golang-s3-file-replicator) <br/> Boilerplate code for Golang with S3 object create event and replicator example | golang |
| [Golang Simple HTTP Endpoint](https://github.com/serverless/examples/tree/v4/aws-golang-simple-http-endpoint) <br/> This example demonstrates how to setup a simple HTTP endpoint in Go. | golang |
| [AWS Simple HTTP Endpoint example in Java](https://github.com/serverless/examples/tree/v4/aws-java-simple-http-endpoint) <br/> This example demonstrates how to setup a simple HTTP GET endpoint using Java. Once you ping it, it will reply with the current time. | java |
| [Multiple Runtimes in One Service](https://github.com/serverless/examples/tree/v4/aws-multiple-runtime) <br/> This example demonstrates how you can run multiple runtimes in AWS Lambda. | nodeJS |
| [Dev Mode: a TypeScript HTTP API and a Python queue worker](https://github.com/serverless/examples/tree/v4/aws-dev-mode) <br/> This example shows Serverless Framework Dev Mode on a service with a TypeScript HTTP API and a Python SQS worker: real requests and queue messages run the code on your machine, from a terminal or an AI coding agent. | nodeJS |
| [AWS Serverless Alexa Skill example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-alexa-skill) <br/> This example demonstrates how to setup your own Alexa skill using AWS Lambdas. | nodeJS |
| [API Gateway Authorizer Function for Auth0 or AWS Cognito using RS256 JSON Web Key Sets tokens.](https://github.com/serverless/examples/tree/v4/aws-node-auth0-cognito-custom-authorizers-api) <br/> Authorize your API Gateway with either Auth0 or Cognito JWKS RS256 tokens. | nodeJS |
| [AWS API Gateway Custom Authorizer Function with Auth0 example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-auth0-custom-authorizers-api) <br/> This is an example of how to protect API endpoints with Auth0, JSON Web Tokens (jwt) and a custom authorizer lambda function. | nodeJS |
| [AWS Lambda container image with SnapStart (NodeJS)](https://github.com/serverless/examples/tree/v4/aws-node-container-snapstart) <br/> Deploy a Node.js Lambda function as a container image with SnapStart enabled, including the Dockerfile label that makes a non-Java/Python/.NET image snapshot-ready. | nodeJS |
| [AWS Lambda durable function (NodeJS)](https://github.com/serverless/examples/tree/v4/aws-node-durable-function) <br/> Deploy a Node.js Lambda durable function that runs a checkpointed step, waits, and resumes, and start an execution with serverless invoke. | nodeJS |
| [Dynamic Image Resizing API](https://github.com/serverless/examples/tree/v4/aws-node-dynamic-image-resizer) <br/> This example shows you how to setup a dynamic image resizer API | nodeJS |
| [DynamoDB Streams Processing to S3](https://github.com/serverless/examples/tree/v4/aws-node-dynamodb-stream-processing) <br/> This example shows you how to consume a DynamoDB Stream, transform records, and archive them to S3. | nodeJS |
| [AWS Node.js ES Module Bundles with esbuild](https://github.com/serverless/examples/tree/v4/aws-node-esm-esbuild) <br/> This example demonstrates how to bundle TypeScript handlers as ES modules (.mjs) with the built-in esbuild support, without adding a package.json to the deployment artifact. | nodeJS |
| [AWS Storing Encrypted Secrets example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-env-variables-encrypted-in-a-file) <br/> 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. | nodeJS |
| [AWS Serverless Environment Variables Usage example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-env-variables) <br/> This example demonstrates how to use environment variables for AWS Lambdas. | nodeJS |
| [Node Express API on AWS](https://github.com/serverless/examples/tree/v4/aws-node-express-api) <br/> This template demonstrates how to develop and deploy a simple Node Express API running on AWS Lambda using the Serverless Framework. | nodeJS |
| [Node Express API service backed by DynamoDB on AWS](https://github.com/serverless/examples/tree/v4/aws-node-express-dynamodb-api) <br/> 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. | nodeJS |
| [Express web app on AWS Lambda Web Functions](https://github.com/serverless/examples/tree/v4/aws-node-express-web-app) <br/> This example deploys a plain Express server to AWS Lambda Web Functions with the Serverless Framework. The server has no Lambda-specific code and answers on a public HTTPS endpoint. | nodeJS |
| [AWS Fetch image from URL and upload to S3 example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-fetch-file-and-store-in-s3) <br/> This example display how to fetch an image from remote source (URL) and then upload this image to a S3 bucket. | nodeJS |
| [Serverless Github Check](https://github.com/serverless/examples/tree/v4/aws-node-github-check) <br/> The idea is to validate that all Pull Requests are related to a specific trello card. | nodeJS |
| [AWS Serverless Github Webhook Listener example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-github-webhook-listener) <br/> This service will listen to github webhooks fired by a given repository. | nodeJS |
| [GraphQL query endpoint in NodeJS on AWS with DynamoDB](https://github.com/serverless/examples/tree/v4/aws-node-graphql-api-with-dynamodb) <br/> A single-module GraphQL endpoint with query and mutation functionality. | nodeJS |
| [AWS Serverless IoT Event example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-iot-event) <br/> This example demonstrates how to setup a AWS IoT Rule to send events to a Lambda function. | nodeJS |
| [AWS MCP Server behind API Gateway REST (NodeJS)](https://github.com/serverless/examples/tree/v4/mcp/custom/rest-api) <br/> Run an MCP server built with the official MCP TypeScript SDK on AWS Lambda, with streaming responses through API Gateway REST response streaming. | nodeJS |
| [AWS MCP Server on Lambda Function URL (NodeJS)](https://github.com/serverless/examples/tree/v4/mcp/custom/function-url) <br/> Run an MCP server built with the official MCP TypeScript SDK on a Lambda Function URL with response streaming - no API Gateway. | nodeJS |
| [AWS MCP Server with Hono (NodeJS)](https://github.com/serverless/examples/tree/v4/mcp/custom/hono) <br/> Run an MCP server on AWS Lambda with the official MCP Hono integration and Hono's aws-lambda adapter - no hand-written Lambda glue at all. | nodeJS |
| [AWS MCP Server with Express and Lambda Web Adapter (NodeJS)](https://github.com/serverless/examples/tree/v4/mcp/custom/express-web-adapter) <br/> Run an MCP server as a plain Express app on AWS Lambda with Lambda Web Adapter - zip deployment, streaming through API Gateway REST. | nodeJS |
| [AWS MCP Server, minimal (NodeJS)](https://github.com/serverless/examples/tree/v4/mcp/minimal) <br/> Deploy an MCP server built with the official MCP TypeScript SDK to AWS Lambda with the Serverless Framework - one module, one line of configuration. | nodeJS |
| [Node.js AWS Lambda connecting to MongoDB Atlas](https://github.com/serverless/examples/tree/v4/aws-node-mongodb-atlas) <br/> Shows how to connect AWS Lambda to MongoDB Atlas. | nodeJS |
| [Next.js app on AWS Lambda Web Functions](https://github.com/serverless/examples/tree/v4/aws-node-nextjs-web-app) <br/> This example deploys a Next.js app to AWS Lambda Web Functions with the Serverless Framework, using the standalone server that next build writes. Pages, route handlers and static assets are all served from one public HTTPS endpoint. | nodeJS |
| [Running Puppeteer on AWS Lambda](https://github.com/serverless/examples/tree/v4/aws-node-puppeteer) <br/> This example shows you how to run Puppeteer on AWS Lambda | nodeJS |
| [AWS Recursive Lambda function Invocation example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-recursive-function) <br/> This is an example of a function that will recursively call itself. | nodeJS |
| [AWS Analyse Image from S3 with Amazon Rekognition example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-rekognition-analysis-s3-image) <br/> This example shows how to analyze an image in an S3 bucket with Amazon Rekognition and return a list of labels. | nodeJS |
| [Serverless MongoDB Rest API with Mongoose and Bluebird Promises](https://github.com/serverless/examples/tree/v4/aws-node-rest-api-mongodb) <br/> This example demonstrate how to use MongoDB with AWS and Serverless. | nodeJS |
| [AWS Simple HTTP Endpoint example in NodeJS with Typescript](https://github.com/serverless/examples/tree/v4/aws-node-rest-api-typescript-simple) <br/> This template demonstrates how to make a simple REST API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1. | nodeJS |
| [Serverless Nodejs Rest API with TypeScript And MongoDB Atlas](https://github.com/serverless/examples/tree/v4/aws-node-rest-api-typescript) <br/> This is simple REST API example for AWS Lambda By Serverless framwork with TypeScript and MongoDB Atlas. | nodeJS |
| [AWS Serverless REST API with DynamoDB and offline support example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-rest-api-with-dynamodb-and-offline) <br/> This example demonstrates how to run a service locally, using the 'serverless-offline' plugin. It provides a REST API to manage Todos stored in DynamoDB. | nodeJS |
| [AWS Serverless REST API example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-rest-api-with-dynamodb) <br/> This example demonstrates how to setup a RESTful Web Service allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data. | nodeJS |
| [AWS Simple HTTP Endpoint example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-rest-api) <br/> This template demonstrates how to make a simple REST API with Node.js running on AWS Lambda and API Gateway using the traditional Serverless Framework. | nodeJS |
| [AWS Simple HTTP Endpoint example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-http-api) <br/> This template demonstrates how to make a simple HTTP API with Node.js running on AWS Lambda and API Gateway using the Serverless Framework. | nodeJS |
| [AWS Serverless HTTP API example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-http-api-dynamodb) <br/> This example demonstrates how to setup an HTTP API allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data. | nodeJS |
| [AWS Serverless HTTP API with DynamoDB and offline support example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-http-api-dynamodb-local) <br/> This example demonstrates how to run a service locally, using the 'serverless-offline' plugin. It provides an HTTP API to manage Todos stored in DynamoDB. | nodeJS |
| [Serverless MongoDB HTTP API with Mongoose and Bluebird Promises](https://github.com/serverless/examples/tree/v4/aws-node-http-api-mongodb) <br/> This example demonstrate how to use MongoDB with AWS and Serverless. | nodeJS |
| [AWS Simple HTTP Endpoint example in NodeJS with Typescript](https://github.com/serverless/examples/tree/v4/aws-node-http-api-typescript) <br/> This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1. | nodeJS |
| [TypeScript Serverless HTTP API with DynamoDB](https://github.com/serverless/examples/tree/v4/aws-node-http-api-typescript-dynamodb) <br/> This example shows your how to create a TypeScript powered HTTP API with DynamoDB. | nodeJS |
| [AWS S3 File Replicator](https://github.com/serverless/examples/tree/v4/aws-node-s3-file-replicator) <br/> This example creates 2 AWS S3 buckets and copies files in one bucket to the other | nodeJS |
| [AWS Node Scheduled Cron example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-scheduled-cron) <br/> A Node.js function on AWS Lambda that runs once a minute, triggered by the Serverless Framework schedule event. | nodeJS |
| [AWS Lambda Self-Managed Code Storage](https://github.com/serverless/examples/tree/v4/aws-node-self-managed-code-storage) <br/> Run Lambda function and layer code directly from the deployment bucket with self-managed code storage | nodeJS |
| [AWS Serving Dynamic HTML via API Gateway example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-serve-dynamic-html-via-http-endpoint) <br/> This example illustrates how to hookup an API Gateway endpoint to a Lambda function to render HTML on a GET request. | nodeJS |
| [The Serverless Gong](https://github.com/serverless/examples/tree/v4/aws-node-serverless-gong) <br/> A serverless gong with GitHub and Slack webhooks | nodeJS |
| [AWS SES receive emails and process body](https://github.com/serverless/examples/tree/v4/aws-node-ses-receive-email-body) <br/> This example shows how to process receiving emails, and have S3 trigger a lambda function. | nodeJS |
| [AWS SES receive an email, trigger a lambda function to process header.](https://github.com/serverless/examples/tree/v4/aws-node-ses-receive-email-header) <br/> This example shows how to process receiving email header, and trigger a lambda function. | nodeJS |
| [Shared AWS API Gateway with multiple Node Lambdas](https://github.com/serverless/examples/tree/v4/aws-node-shared-gateway) <br/> A sample of implementing shared API gateway with multiple Node Lambdas | nodeJS |
| [AWS Node Signed Uploads](https://github.com/serverless/examples/tree/v4/aws-node-signed-uploads) <br/> The approach implemented in this service is useful when you want to use Amazon API Gateway and you want to solve the 10MB payload limit | nodeJS |
| [AWS Simple HTTP Endpoint example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-simple-http-endpoint) <br/> This example demonstrates how to setup a simple HTTP GET endpoint. Once you ping it, it will reply with the current time. | nodeJS |
| [Simple AWS Transcribe example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-simple-transcribe-s3) <br/> This example demonstrates how to setup a lambda function to transcribe your audio file (.wav format) into a text transcription. The lambda will be triggered whenever a new audio file is uploaded to S3 and the transcription (JSON format) will be saved to a S3 bucket. | nodeJS |
| [AWS Single Page Application example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-single-page-app-via-cloudfront) <br/> This example demonstrates how to setup a Single Page Application. | nodeJS |
| [Node SQS Producer Consumer on AWS](https://github.com/serverless/examples/tree/v4/aws-node-sqs-worker) <br/> This template demonstrates how to develop and deploy a simple SQS-based producer-consumer service running on AWS Lambda using the traditional Serverless Framework. | nodeJS |
| [AWS Stripe Integration example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-stripe-integration) <br/> This example for Stripe integration using AWS Lambda and API Gateway. | nodeJS |
| [Simple Telegram bot](https://github.com/serverless/examples/tree/v4/aws-node-telegram-echo-bot) <br/> This is a simple echo bot on Telegram. | nodeJS |
| [AWS Data Processing example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-text-analysis-via-sns-post-processing) <br/> This example demonstrates how to setup a simple data processing pipeline. | nodeJS |
| [AWS Send SMS Message with Twilio example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-twilio-send-text-message) <br/> This example demonstrates how to send SMS messages with the Twilio SDK and AWS lambda. | nodeJS |
| [AWS Apollo Lambda (NodeJS & Typescript)](https://github.com/serverless/examples/tree/v4/aws-node-typescript-apollo-lambda) <br/> This example provides a setup for a Lambda Graphql API with apollo | nodeJS |
| [AWS Kinesis D
↑