{"library":"bragg","type":"library","category":null,"description":"Bragg is a concise AWS Lambda web framework that provides a Koa.js-inspired middleware pattern for handling serverless HTTP requests. It simplifies the process of building API Gateway-backed Lambda functions by allowing developers to chain middleware functions that operate on a `ctx` (context) object. As of its current stable version, 1.4.0, Bragg maintains a focused scope, emphasizing a clear request-response cycle and robust error handling through its `app.onError()` mechanism, which supports asynchronous cleanup processes. Its release cadence appears stable rather than rapid, indicating a mature project. A key differentiator is its straightforward approach to promise resolution for `ctx.body`, automatically awaiting results before sending the Lambda response. It requires Node.js version 4 or higher.","language":"javascript","status":"active","version":"1.4.0","tags":["javascript","aws","lambda","web","framework","bragg"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bragg","imports":["const bragg = require('bragg');","exports.handler = app.listen();","app.use(async ctx => { /* ... */ });"]},{"cmd":"yarn add bragg","imports":[]},{"cmd":"pnpm add bragg","imports":[]}],"homepage":null,"github":"https://github.com/SamVerschueren/bragg","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bragg","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/bragg/compatibility"}}