{"library":"machine-as-action","type":"library","category":null,"description":"machine-as-action is a Node.js utility designed to bridge the gap between 'machines' – a pattern for encapsulating reusable business logic – and standard HTTP/WebSocket request-response cycles. It allows developers to define a machine and then wrap it with `asAction` to automatically handle incoming request parameters as machine inputs and map machine exits to various HTTP response types, including JSON data, rendered views, or redirects. The current stable version is 10.3.1, though recent release notes show significant changes around version 7.x. While there isn't a strict, rapid release cadence apparent from the provided data, updates have been made. Its primary differentiator lies in its deep integration with the 'machine' pattern, providing a structured and convention-over-configuration approach to expose API endpoints, particularly useful in frameworks like Sails.js where machines are a core architectural component. It offers granular control over response status codes and view rendering based on the outcome of a machine's execution, aiming to reduce boilerplate in controller logic.","language":"javascript","status":"active","version":"10.3.1","tags":["javascript","machine","action","actions2","controller","sails.js","sails","blueprint","request"],"install":[{"cmd":"npm install machine-as-action","imports":["const asAction = require('machine-as-action');"]},{"cmd":"yarn add machine-as-action","imports":[]},{"cmd":"pnpm add machine-as-action","imports":[]}],"homepage":null,"github":"https://github.com/treelinehq/machine-as-action","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/machine-as-action","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/machine-as-action/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}