{"id":18596850,"url":"https://github.com/bytekast/algo-lambda","last_synced_at":"2025-05-16T13:33:00.659Z","repository":{"id":41766713,"uuid":"213085325","full_name":"bytekast/algo-lambda","owner":"bytekast","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-04T14:55:53.000Z","size":242,"stargazers_count":0,"open_issues_count":24,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T23:41:33.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bytekast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-05T23:36:38.000Z","updated_at":"2019-11-02T16:22:23.000Z","dependencies_parsed_at":"2023-01-22T20:25:12.406Z","dependency_job_id":null,"html_url":"https://github.com/bytekast/algo-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytekast%2Falgo-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytekast%2Falgo-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytekast%2Falgo-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytekast%2Falgo-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytekast","download_url":"https://codeload.github.com/bytekast/algo-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254538438,"owners_count":22087866,"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-11-07T01:25:58.272Z","updated_at":"2025-05-16T13:33:00.632Z","avatar_url":"https://github.com/bytekast.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Component - Algorithmia Function Lambda Wrapper\n\n\u0026nbsp;\n\nThis is a simple [Serverless Framework Component](https://serverless.com/components/) that creates a Lambda wrapper to an [Algorithmia](https://algorithmia.com) function. With a Lambda wrapper, an Algorithmia function can be triggered by AWS Events - such as SNS, SQS, etc. \n\n\u0026nbsp;\n\n1. [Install](#1-install)\n2. [Usage](#2-usage)\n3. [Deploy](#3-deploy)\n\n\u0026nbsp;\n\n\n### 1. Install\n\nInstall the [Serverless Framework](https://www.github.com/serverless/serverless):\n\n```console\n$ npm i -g serverless\n```\n\nAdd the access keys of an AWS IAM Role with `AdministratorAccess` in a `.env` file, using this format:\n\n```bash\nAWS_ACCESS_KEY_ID=1234\nAWS_SECRET_ACCESS_KEY=1234\n```\n\nOr, you can set these as environment variables manually before deploying.\n\n### 2. Usage\n\nCreate a `serverless.yml` in an empty directory and add the following:\n\n```yaml\nname: demo\n\nsummarizer:\n  component: 'algo-lambda'\n  inputs:\n    env:\n      apiKey: 'YOUR_ALGORITHMIA_API_KEY'\n      algorithm: 'nlp/Summarizer/0.1.8' # See Algorithmia marketplace\n```\n\nIn the same directory, create a `package.json` file with the following contents:\n\n```json\n{\n  \"dependencies\": {\n    \"algo-lambda\": \"latest\"\n  }\n}\n```\n\nRun `npm install`\n\nSee example [here](./examples/simple).\n\n### 3. Deploy\n\nDeploy via the `serverless` command:\n\n```console\n$ serverless\n```\n\nUse the `--debug` flag if you'd like to learn what's happening behind the scenes:\n\n```console\n$ serverless --debug\n```\n\n## New to Components?\n\nCheckout the [Serverless Components](https://github.com/serverless/components) repo for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytekast%2Falgo-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytekast%2Falgo-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytekast%2Falgo-lambda/lists"}