Virtual as a Service (VaaS) is a Node.js framework for building serverless applications using TypeScript. It uses a decorator-based approach to define HTTP endpoints, supports worker threads for isolation, and allows dynamic app loading. Current version 1.9.16. The framework is designed for microservices and multi-tenant apps where each 'app' runs in its own worker thread with configurable resource limits. It requires Node.js 16+ and uses Koa under the hood.
npm install vaas-frameworkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a simple HTTP endpoint /hello that returns a JSON response, with VaaS configuration.
Ensure each app file exports a default class. The class name is used to identify the app.
Use async method with destructured { req, res } parameters of type VaasServerType.HttpParams.Use named parameters like '/user/:id' and access via req.params.id.
Do not rely on instance state; use database or external storage for per-request data.
npm install vaas-framework
export default class AppName { ... }import { Decorator } from 'vaas-framework'