Write serverless with Typescript

Usage no npm install needed!

<script type="module">
  import ahamoveAhaless from 'https://cdn.skypack.dev/@ahamove/ahaless';



Write serverless application on top of Typescript


To install the AhaLess library into an existing project, use the yarn CLI

yarn add @ahamove/ahaless 
yarn add serverless-webpack @ahamove/serverless-generate-functions -D

or the npm CLI

npm install @ahamove/ahaless
npm add serverless-webpack @ahamove/serverless-generate-functions -D


We have several examples on the website. Here is the first one to get you started

// ./src/hello/hello.service.ts

import { injectable } from '@ahamove/ahaless'

export class HelloService {
  async hello() {
    return 'Hello world'
// ./src/hello/hello.handler.ts

import { HelloService } from './hello.service'
import { handler, get, param } from '@ahamove/ahaless'

export class HelloHandler {
  constructor(private readonly helloService: HelloService) {

  async hello() {
    return this.helloService.hello()
// ./src/hello/hello.module.ts

import { module } from '@ahamove/ahaless'
import { HelloHandler } from './src/hello.handler'

  handlers: [HelloHandler],
  providers: [HelloService]
export class HelloModule {}
// ./handler.ts

import { module } from '@ahamove/ahaless'
import { HelloModule } from './src/hello/hello.module'

  imports: [HelloModule],
export class Handler {
  static exports = exports

Add the plugin @ahamove/serverless-gen-functions to your serverless.yml file:

  - serverless-dotenv-plugin
  - serverless-offline
  - serverless-webpack
  - @ahamove/serverless-generate-functions

After that, when you want to generate list functions. You can simply run the command line with option --gf:

sls offline --env staging --gf

Stay in touch

  • Company - AhaMove


Ahaless is MIT licensed