{"library":"osls","title":"OSLS (Open-Source Serverless) Framework","description":"OSLS (Open-Source Serverless) Framework, currently at version 3.63.2, is a community-maintained, open-source fork of the Serverless Framework v3. It acts as a drop-in replacement for users who cannot or choose not to upgrade to Serverless Framework v4. The project primarily focuses on supporting AWS Lambda deployments, offering up-to-date compatibility with new AWS runtimes and bug fixes. It distinguishes itself by being lighter and faster than the original v3, having removed enterprise features (like Serverless Dashboard and Components), auto-updating, and unused dependencies. Maintained by the Bref community, its release cadence involves frequent patch and minor updates to ensure continued compatibility and security. It supports various languages including Node.js, TypeScript, Python, Go, and Java, leveraging an approachable YAML syntax for defining serverless applications and their infrastructure.","language":"javascript","status":"active","last_verified":"Tue Apr 21","install":{"commands":["npm install osls"],"cli":{"name":"osls","version":null}},"imports":["npm install -g osls\nserverless deploy","import type { ServerlessConfig } from 'osls';","import { Serverless } from 'osls';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// serverless.yml\nservice: my-first-osls-app\nframeworkVersion: \"3\"\n\nprovider:\n  name: aws\n  runtime: nodejs20.x\n  region: us-east-1\n  stage: dev\n\nfunctions:\n  hello:\n    handler: handler.hello\n    events:\n      - httpApi:\n          path: /hello\n          method: get\n\n// handler.js\n'use strict';\n\nmodule.exports.hello = async (event) => {\n  return {\n    statusCode: 200,\n    body: JSON.stringify(\n      {\n        message: 'Hello from OSLS!',\n        input: event,\n      },\n      null,\n      2\n    ),\n  };\n};\n\n// --- Terminal Commands ---\nnpm install -g osls\n# Navigate to your project directory\n# cd my-first-osls-app\nserverless deploy --verbose\n# Note the endpoint URL from the deploy output\nserverless invoke --function hello --log\nserverless remove","lang":"typescript","description":"This quickstart demonstrates how to install OSLS globally, define a basic AWS Lambda function with an API Gateway endpoint using `serverless.yml`, deploy it, invoke it, and then remove the deployed resources.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}