All Projects → lucacasonato → Now Deno

lucacasonato / Now Deno

Licence: mit
Deno builder for Vercel - run Deno on Vercel. :sauropod: + λ = ❤️

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Now Deno

Aws Auto Remediate
Open source application to instantly remediate common security issues through the use of AWS Config
Stars: ✭ 191 (-19.75%)
Mutual labels:  serverless, lambda
Bless
Repository for BLESS, an SSH Certificate Authority that runs as a AWS Lambda function
Stars: ✭ 2,627 (+1003.78%)
Mutual labels:  serverless, lambda
Serverless Sinatra Sample
Demo code for running Ruby Sinatra on AWS Lambda
Stars: ✭ 195 (-18.07%)
Mutual labels:  serverless, lambda
Realworld Dynamodb Lambda
λ serverless backend implementation for RealWorld using AWS DynamoDB + Lambda
Stars: ✭ 185 (-22.27%)
Mutual labels:  serverless, lambda
Serverless Slack App
A Serverless.js Slack App Boilerplate with OAuth and Bot actions
Stars: ✭ 217 (-8.82%)
Mutual labels:  serverless, lambda
Aws Lambda Fastify
Insipired by aws-serverless-express to work with Fastify with inject functionality.
Stars: ✭ 190 (-20.17%)
Mutual labels:  serverless, lambda
Serverless Analytics
Track website visitors with Serverless Analytics using Kinesis, Lambda, and TypeScript.
Stars: ✭ 219 (-7.98%)
Mutual labels:  serverless, lambda
Es2017 Lambda Boilerplate
AWS Lambda boilerplate for Node.js 6.10, adding ES2018/7/6 features, Docker-based unit testing and various CI/CD configurations
Stars: ✭ 169 (-28.99%)
Mutual labels:  serverless, lambda
Algnhsa
AWS Lambda Go net/http server adapter
Stars: ✭ 226 (-5.04%)
Mutual labels:  serverless, lambda
Knative Lambda Runtime
Running AWS Lambda Functions on Knative/Kubernetes Clusters
Stars: ✭ 201 (-15.55%)
Mutual labels:  serverless, lambda
Components
The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
Stars: ✭ 2,259 (+849.16%)
Mutual labels:  serverless, lambda
Serverless Chrome
🌐 Run headless Chrome/Chromium on AWS Lambda
Stars: ✭ 2,625 (+1002.94%)
Mutual labels:  serverless, lambda
Eventstormingworkshop
EventStorming workshop, this is a hands-on workshop. Contains such topics: DDD, Event storming, Specification by example. Including the AWS product : Serverless Lambda , DynamoDB, Fargate, CloudWatch.
Stars: ✭ 184 (-22.69%)
Mutual labels:  serverless, lambda
Bref
Serverless PHP on AWS Lambda
Stars: ✭ 2,382 (+900.84%)
Mutual labels:  serverless, lambda
Serverlessish
Run the same Docker images in AWS Lambda and AWS ECS
Stars: ✭ 177 (-25.63%)
Mutual labels:  serverless, lambda
Aws Lambda Power Tuning
AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.
Stars: ✭ 3,040 (+1177.31%)
Mutual labels:  serverless, lambda
Sqs Worker Serverless
Example for SQS Worker in AWS Lambda using Serverless
Stars: ✭ 164 (-31.09%)
Mutual labels:  serverless, lambda
Laravel Bridge
Package to use Laravel on AWS Lambda with Bref
Stars: ✭ 168 (-29.41%)
Mutual labels:  serverless, lambda
Aws Mobile React Native Starter
AWS Mobile React Native Starter App https://aws.amazon.com/mobile
Stars: ✭ 2,247 (+844.12%)
Mutual labels:  serverless, lambda
Komiser
☁️ Cloud Environment Inspector 👮🔒 💰
Stars: ✭ 2,684 (+1027.73%)
Mutual labels:  serverless, lambda

now-deno

Deno builder for Vercel - run Deno on vercel. 🦕 + λ = ❤️

This builder allows you to run Deno as a lambda on vercel.

Usage

If you're unfamiliar with vercel runtimes, please read the runtime docs first. This runtime can be used like any other Community Runtime.

// vercel.json
{
  "functions": {
    "api/**/*.{j,t}s": {
      "runtime": "[email protected]"
    }
  }
}

Note: You need vercel v17.x or above to use the above configuration.

// api/hello.ts
import {
  APIGatewayProxyEvent,
  APIGatewayProxyResult,
  Context,
} from 'https://deno.land/x/lambda/mod.ts';

export async function handler(
  event: APIGatewayProxyEvent,
  context: Context
): Promise<APIGatewayProxyResult> {
  return {
    statusCode: 200,
    body: `Welcome to deno ${Deno.version.deno} 🦕`,
    headers: {
      'content-type': 'text/html; charset=utf-8',
    },
  };
}

That's the simplest way to use this runtime!

Advanced usage

Specific Deno version

To use a specific version of Deno you can specify a environment variable in your vercel.json:

// vercel.json
{
  "functions": {
    ...
  },
  "env": {
    "DENO_VERSION": "0.42.0"
  }
}

Unstable mode

To use Deno's unstable mode you can specify the environment variable DENO_UNSTABLE in your vercel.json:

// vercel.json
{
  "functions": {
    ...
  },
  "env": {
    "DENO_UNSTABLE": "true"
  }
}

TS Config

To pass a custom config, you can specify the variable DENO_CONFIG in your now.json:

// now.json
{
  "functions": {
    ...
  },
  "env": {
    "DENO_CONFIG": "tsconfig.json"
  }
}

Custom pre-package script

You can place a build.sh function in the root of your deploy directory. This will be executed before the function is packaged up.

vercel dev

vercel dev is currently only supported on macOS and Linux. It is not supported on Windows.

If you have have deno installed in your path then you can use vercel dev with this runtime. It should work just like any other runtime.

Credits

This was only possible due to the great work of Andy Hayden who made the first attempts at running deno in a lambda function.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].