{"id":18284467,"url":"https://github.com/pplu/mojo-plugin-lambda","last_synced_at":"2025-04-09T05:46:43.796Z","repository":{"id":41445959,"uuid":"509135786","full_name":"pplu/mojo-plugin-lambda","owner":"pplu","description":"A mojojs plugin to enable MojoJS apps to run in AWS Lambda","archived":false,"fork":false,"pushed_at":"2022-07-01T22:21:23.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T10:34:37.170Z","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/pplu.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":"2022-06-30T15:31:48.000Z","updated_at":"2023-05-18T07:08:57.000Z","dependencies_parsed_at":"2022-08-01T00:48:05.289Z","dependency_job_id":null,"html_url":"https://github.com/pplu/mojo-plugin-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/pplu%2Fmojo-plugin-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pplu%2Fmojo-plugin-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pplu%2Fmojo-plugin-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pplu%2Fmojo-plugin-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pplu","download_url":"https://codeload.github.com/pplu/mojo-plugin-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987107,"owners_count":21028891,"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-05T13:13:39.601Z","updated_at":"2025-04-09T05:46:43.761Z","avatar_url":"https://github.com/pplu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mojo-plugin-lambda\n\nRun your mojojs application inside AWS Lambda\n\n```\nnpm install mojo-plugin-lambda\n```\n\nIn your mojojs code:\n\n```\nimport lambdaPlugin from 'mojo-plugin-lambda';\n```\n\nThen after `const app = mojo();` enable the plugin\n\n\n```\napp.plugin(lambdaPlugin, {});\nconst handler = app.handler;\nexport { handler };\n```\n\nThis installs a handler function for AWS Lambda to invoke. Set your Lambdas entrypoint to `appfile.handler` \n(where `appfile` is the main file of your application.\n\nFinally, delete `app.start()` from the end of your application file. You can alternatively invoke it whenever\nit is not running inside a Lambda environment.\n\n```\nif (! process.env.AWS_LAMBDA_FUNCTION_NAME) {\n  app.start();\n}\n```\n\nZip your code (or create a Lambda Container Image), upload it, and profit\n\n## Author\n\nJose Luis Martinez Torres\n\n## Copyright\n\n(c) Jose Luis Martinez Torres 2022\n\n## License\n\nApache 2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpplu%2Fmojo-plugin-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpplu%2Fmojo-plugin-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpplu%2Fmojo-plugin-lambda/lists"}