{"id":16698934,"url":"https://github.com/eahefnawy/backend.js","last_synced_at":"2025-03-14T04:29:44.054Z","repository":{"id":78207257,"uuid":"167789523","full_name":"eahefnawy/backend.js","owner":"eahefnawy","description":"Import your λ functions into the browser.","archived":false,"fork":false,"pushed_at":"2019-01-27T10:58:32.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-11T11:49:30.124Z","etag":null,"topics":["aws","aws-lambda","browser","javascript","lambda","serverless"],"latest_commit_sha":null,"homepage":"","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/eahefnawy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-27T09:06:57.000Z","updated_at":"2023-06-02T01:46:28.000Z","dependencies_parsed_at":"2023-05-18T00:00:39.839Z","dependency_job_id":null,"html_url":"https://github.com/eahefnawy/backend.js","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"845caa0b9939c82c7523ac592aeca4f55d473593"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eahefnawy%2Fbackend.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eahefnawy%2Fbackend.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eahefnawy%2Fbackend.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eahefnawy%2Fbackend.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eahefnawy","download_url":"https://codeload.github.com/eahefnawy/backend.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243525301,"owners_count":20304970,"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":["aws","aws-lambda","browser","javascript","lambda","serverless"],"created_at":"2024-10-12T18:04:48.789Z","updated_at":"2025-03-14T04:29:44.032Z","avatar_url":"https://github.com/eahefnawy.png","language":"JavaScript","readme":"backend.js is a super light module that lets you imports your λ functions into the browser as a backend library.\n\n### Usage\n\n**Important Note:** To keep your AWS account secure, make sure you pass access keys with limited access to **only** invoke the functions you want to invoke. \n\n#### React\n\n```\nnpm i --save @eahefnawy/backend.js\n```\n\n```js\nimport { backend } from '@eahefnawy/backend.js'\n\nconst config = {\n  import: ['sendSms', 'sendEmail'], // λ function names that you'd like to import\n  region: 'us-east-1',\n  accessKeyId: 'xxx',\n  secretAccessKey: 'xxx'\n}\n\nconst { sendSms, sendEmail } = backend(config)\n\nawait sendSms({ some: 'inputs' })\nawait sendEmail({ some: 'inputs' })\n\n```\n\n#### HTML\n\n```html\n\u003cscript crossorigin src=\"https://unpkg.com/@eahefnawy/backend.js/dist/backend.umd.min.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  const config = {\n    import: ['sendSms', 'sendEmail'], // λ function names that you'd like to import\n    region: 'us-east-1',\n    accessKeyId: 'xxx',\n    secretAccessKey: 'xxx'\n  }\n\n  const { sendSms, sendEmail } = backend(config)\n\n  sendSms({ some: 'inputs' })\n  sendEmail({ some: 'inputs' })\n\u003c/script\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feahefnawy%2Fbackend.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feahefnawy%2Fbackend.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feahefnawy%2Fbackend.js/lists"}