{"id":13449110,"url":"https://github.com/architect/functions","last_synced_at":"2025-05-15T13:07:09.487Z","repository":{"id":23161610,"uuid":"97773247","full_name":"architect/functions","owner":"architect","description":"AWS Lambda Node runtime helpers for Architect apps ","archived":false,"fork":false,"pushed_at":"2025-04-22T12:27:28.000Z","size":1871,"stargazers_count":163,"open_issues_count":8,"forks_count":37,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-22T13:41:25.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://arc.codes","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/architect.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":null,"code_of_conduct":".github/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-20T00:33:19.000Z","updated_at":"2025-04-22T12:27:32.000Z","dependencies_parsed_at":"2023-12-11T23:10:36.531Z","dependency_job_id":"f094f109-ea35-4db1-9d01-d395769a8b65","html_url":"https://github.com/architect/functions","commit_stats":{"total_commits":1050,"total_committers":28,"mean_commits":37.5,"dds":0.598095238095238,"last_synced_commit":"6f544ba64997e2669cce09ccbd623f79aea19601"},"previous_names":[],"tags_count":305,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Ffunctions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Ffunctions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Ffunctions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Ffunctions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/architect","download_url":"https://codeload.github.com/architect/functions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T06:00:31.462Z","updated_at":"2025-05-15T13:07:04.472Z","avatar_url":"https://github.com/architect.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/architect/assets.arc.codes/raw/main/public/architect-logo-light-500b%402x.png\"\u003e\n  \u003cimg alt=\"Architect Logo\" src=\"https://github.com/architect/assets.arc.codes/raw/main/public/architect-logo-500b%402x.png\"\u003e\n\u003c/picture\u003e\n\n## [`@architect/functions`](https://www.npmjs.com/package/@architect/functions)\n\n\u003e Runtime utility library for [Functional Web Apps (FWAs)](https://fwa.dev/) built with [Architect][https://arc.codes]\n\n[![GitHub CI status](https://github.com/architect/functions/workflows/Node%20CI/badge.svg)](https://github.com/architect/functions/actions?query=workflow%3A%22Node+CI%22)\n\nCheck out the full docs for [this library](https://arc.codes/docs/en/reference/runtime-helpers/node.js) and [Architect](https://arc.codes)\n\n\n## Install\n\nWithin your Architect project directory, add `@architect/function` to its root `package.json`:\n\n`npm i @architect/functions`\n\n\u003e You may also add `@architect/function` to individual Lambda `package.json` files, but we suggest making use of Architect's automated Lambda treeshaking. See the [Architect dependency management guide](https://staging.arc.codes/docs/en/guides/developer-experience/dependency-management#node.js) for more details.\n\n\n## Usage\n\n```js\nlet {\n  events,   // @events pub/sub\n  http,     // @http middleware + tools\n  queues,   // @queues pub/sub\n  services, // Architect resource / service discovery\n  static,   // @static asset helper\n  tables,   // @tables DynamoDB helper methods + API client\n  ws,       // @ws WebSocket helper + API client\n} = require('@architect/functions')\n```\n\n\n# API\n\n**[`@events` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.events)**\n- [`events.subscribe()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.events.subscribe())\n- [`events.publish()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.events.publish())\n\n**[`@http` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.http)**\n- [`http()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.http)\n- [`http` middleware](https://arc.codes/docs/en/reference/runtime-helpers/node.js#middleware)\n- [`http.session`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.http.session)\n\n**[`@queues` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.queues)**\n- [`queues.subscribe()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.queues.subscribe())\n- [`queues.publish()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.queues.publish())\n\n**Service discovery**\n- [`services()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.services())\n\n**[`@static`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.static())**\n- [`static()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.static())\n\n**[`@tables` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables())**\n- [`tables()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.tables())\n  - [`table.delete()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)\n  - [`table.get()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)\n  - [`table.put()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)\n  - [`table.query()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)\n  - [`table.scan()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)\n  - [`table.scanAll()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)\n  - [`table.update()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#instance-methods)\n  - [`table._db`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#client-methods)\n  - [`table._doc`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#client-methods)\n  - [`table.name`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#client-methods)\n  - [`table.reflect()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#client-methods)\n\n**[`@ws` methods](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws)**\n- [`ws.send()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.send())\n- [`ws.close()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.close())\n- [`ws.info()`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws.info())\n- [`ws._api`](https://arc.codes/docs/en/reference/runtime-helpers/node.js#arc.ws._api())\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitect%2Ffunctions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchitect%2Ffunctions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitect%2Ffunctions/lists"}