Simple example projects that show how to use ClaudiaJs
JavaScript HTML Shell
Latest commit 8e7475b Jan 17, 2017 @gojko gojko binary content example
Failed to load latest commit information.
alexa-skill link to bot file Nov 23, 2016
api-gw-geolocation geo location example Dec 23, 2016
async-await-and-babel Add async/await example Dec 24, 2016
aws-mobile-analytics removed obsolete function Jun 30, 2016
babel babel example Dec 23, 2016
binary-content binary content example Jan 17, 2017
bot-with-buttons killing context immediately after callback Jul 30, 2016
custom-authorizers version reference Aug 26, 2016
deploy-proxy-api Update Oct 14, 2016
detecting-context example for detecting context Apr 20, 2016
dynamodb-example comments on promise returns Jul 30, 2016
env-variables env var example Nov 24, 2016
express-app-lambda express example Oct 4, 2016
github-repo-labels typo Jan 2, 2017
graphql-example Use claudia v1.0.15 Mar 12, 2016
hello-world Add version to package.json files Nov 7, 2016
intercepting-requests an example for request interception Jul 12, 2016
iot-mqtt-websocket-chat add fb login for cognito Jan 3, 2017
pandoc-s3-converter pandoc s3 converter Sep 14, 2016
recursive-invoke recursive invocation example Jul 12, 2016
s3-file-processing Add version to package.json files Nov 7, 2016
simple-bot using assets from CDN instead of gh-pages Jul 2, 2016
slack-delayed-response link to the tutorial Jul 21, 2016
svg-to-pdf-s3-converter svg-to-pdf-s3-converter example Oct 29, 2016
using-npm-modules Add version to package.json files Nov 7, 2016
web-api-custom-cors Add version to package.json files Nov 7, 2016
web-api-custom-headers Add version to package.json files Nov 7, 2016
web-api-custom-status-code Add version to package.json files Nov 7, 2016
web-api-generic-handlers Add version to package.json files Nov 7, 2016
web-api-lambda-context upgrade to 2.x Nov 18, 2016
web-api-postdeploy-configuration Add version to package.json files Nov 7, 2016
web-api-postdeploy Add version to package.json files Nov 7, 2016
web-api Add version to package.json Nov 7, 2016
web-serving-html Add version to package.json files Nov 7, 2016
website-email-alert Add version to package.json files Nov 7, 2016
.gitignore ignoring multiple json files from claudia Aug 26, 2016 binary content example Jan 17, 2017

Claudia.js Example projects

Hello world

  • Hello World – shows a trivial Node.js Lambda function and how to set up deployment using Claudia.js
  • Web API – a simple REST api, shows how to configure and deploy an API Gateway interface along with the Lambda function

Common Development tasks

  • Using NPM Modules – a slightly more complex function, shows how to deploy third party dependencies using Claudia.js
  • Using Babel – shows how to deploy transpiled Babel code
  • Environment Variables – setting and using Lambda environment variables
  • Detecting Context – detect if a function was called for development or production, in order to load the right configuration
  • Recursive invocation – an example of how Lambda can asynchronously call itself to work around timing limitations


  • Web Serving HTML – shows how to change error and success content types and response codes, and how to perform browser redirects
  • Generic handlers – shows how to capture dynamic paths and set up handlers for any content type easily
  • Custom response codes – shows how to change status codes for response
  • Custom Headers – shows how to return custom headers from API responses
  • Custom CORS origins – shows how to control allowed CORS origins/headers
  • Intercepting requests – an example showing how to prevent or modify requests
  • Post-deploy variable configuration – shows how to set up post-deploy hooks to prompt users for stage variables
  • Generic post-deploy steps – shows how to set up post-deploy hooks for automatic configuration
  • Using Lambda Context – shows how to access the Lambda Context object from projects built using claudia-api-builder
  • DynamoDB CRUD – a simple document store, shows how to use DynamoDB and connect it to a CRUD REST API. Also shows how to configure a single Lambda function to work with different resources for development, testing and production.
  • GraphQL Endpoint – GraphQL CRUD operations, using ES2015 transpiled by Babel, using DynamoDB for persistence.
  • GitHub Repository Labels – a simple image server, shows how to map URL path components to arguments, how to customise response types and how to connect to third party REST APIs
  • Using AWS Mobile Analytics for server-side events – log events into AWS Mobile Analytics for easy internal telemetry
  • Custom Authorizers – a simple example of how to set up custom authorizers in API Gateway
  • Geo location – shows how to retrieve the country where your users originated the request
  • Binary Content – shows how to configure API Gateway to send or receive binary data

Event processing

  • S3 File Processing – an example service that converts files uploaded to S3; shows how to wire up Lambda to respond to S3 events
  • Pandoc S3 Converter – a more complex example that converts S3 files to .docx using Pandoc
  • SVG to PDF S3 Converter – convert SVG files uploaded to S3 to PDF format using RSVG and Cairo
  • Website Email Alert – periodically check a URL and send an e-mail if it is not available; shows how to send e-mails using SES and set up Lambda functions as scheduled recurring events

Proxy API


  • Simple Bot – an example demonstrating how to receive and respond with simple text messages
  • Facebook Messenger Bot with Buttons – an example showing how to create more complex platform specific messages, for example Facebook buttons
  • Space Explorer Bot – uses NASA's API to get the data and images about the space, shows how to use Facebook Template builders for response messages.
  • Slack Delayed Reply – an example showing how to send delayed and multiple replies for Slack slash commands.
  • Alexa Skill – an Amazon Echo (Alexa) skill sample that spells out English words

Examples in other repositories

More information

For more information on the Web API configuration syntax, check out the Claudia API Builder project. For more information on Claudia.js options, see the Command Line Usage.

Join the chat at


AWS Lambda currently runs Node.js version 4.3.2 (optionally, you can downgrade to 0.10.36 by using --runtime when creating the function). It's best to use that version for testing. To get started, make sure your credentials are configured. See the ClaudiaJS Getting Started Guide for more information.