{"id":20109846,"url":"https://github.com/hyper63/hyper-adapter-sqs","last_synced_at":"2025-11-28T06:07:58.170Z","repository":{"id":42480457,"uuid":"377474627","full_name":"hyper63/hyper-adapter-sqs","owner":"hyper63","description":"SQS Adapter for hyper queue port","archived":false,"fork":false,"pushed_at":"2023-11-29T01:01:03.000Z","size":218,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-13T05:41:39.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyper63.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-06-16T11:37:00.000Z","updated_at":"2023-06-07T20:37:38.000Z","dependencies_parsed_at":"2023-11-29T01:43:58.087Z","dependency_job_id":"99473748-bce2-4a82-a47f-f6276f68083f","html_url":"https://github.com/hyper63/hyper-adapter-sqs","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-adapter-sqs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-adapter-sqs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-adapter-sqs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-adapter-sqs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyper63","download_url":"https://codeload.github.com/hyper63/hyper-adapter-sqs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241550077,"owners_count":19980645,"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-13T18:09:36.861Z","updated_at":"2025-11-28T06:07:58.130Z","avatar_url":"https://github.com/hyper63.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e\nhyper-adapter-sqs\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003eA Queue port adapter for AWS SQS in the \u003ca href=\"https://hyper.io/\"\u003ehyper\u003c/a\u003e  service framework\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nest.land/package/hyper-adapter-sqs\"\u003e\u003cimg src=\"https://nest.land/badge.svg\" alt=\"Nest Badge\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/hyper63/hyper-adapter-sqs/actions/workflows/tes-and-publish.yml\"\u003e\u003cimg src=\"https://github.com/hyper63/hyper-adapter-sqs/actions/workflows/test-and-publish.yml/badge.svg\" alt=\"Test\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/hyper63/hyper-adapter-sqs/tags/\"\u003e\u003cimg src=\"https://img.shields.io/github/tag/hyper63/hyper-adapter-sqs\" alt=\"Current Version\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003c!-- toc --\u003e\n\n- [Getting Started](#getting-started)\n  - [ENV VARS](#env-vars)\n- [Sleep](#sleep)\n- [Installation](#installation)\n- [Contributing](#contributing)\n- [Testing](#testing)\n- [License](#license)\n\n\u003c!-- tocstop --\u003e\n\n## Getting Started\n\n`hyper.config.js`\n\n```js\nimport { default as sqs } from 'https://x.nest.land/hyper-adapter-sqs@0.1.4/mod.js'\n\nexport default {\n  app: opine,\n  adapter: [\n    { port: 'queue', plugins: [sqs('UNIQUE_NAME')] },\n  ],\n}\n```\n\nIn order to use this adapter you will need to have an AWS Account and will need the following\ninformation:\n\n- IAM User with access to SQS and S3 (AWS_ACCESS_KEY_ID, AWS_ACCESS_SECRET_KEY, and optional\n  AWS_SESSION_TOKEN)\n- AWS Region (default: us-east-1)\n\n\u003e The AWS User will need the ability to manage s3 and SQS resources\n\n### ENV VARS\n\nYou may set envrionment variables like so, and the adapter will use them:\n\n```txt\nAWS_ACCESS_KEY_ID=XXXXX\nAWS_SECRET_ACCESS_KEY=XXXXX\nAWS_SESSION_TOKEN=XXXXX\nAWS_REGION=XXXXX\n```\n\nThen when you configure the hyper service, you can setup the sqs adapter like:\n\n\u003e The unique name is an alphanumeric string that contains identifing information, this will enable\n\u003e you to identify the bucket and queue which will be prefixed by 'hyper-queue-' and whatever name\n\u003e you provide.\n\n`hyper.config.js`\n\n```js\nimport { default as sqs } from 'https://x.nest.land/hyper-adapter-sqs@0.1.4/mod.js'\n\nexport default {\n  app: opine,\n  adapter: [\n    { port: 'queue', plugins: [sqs('UNIQUE_NAME')] },\n  ],\n}\n```\n\nYou can explictly pass in awsAccessKeyId, awsSecretKey, sessionToken, and region as options to the\nadapter method.\n\n```js\nsqs(UNIQUE_NAME, {\n  awsAccessKeyId,\n  awsSecretKey,\n  sessionToken,\n  region: 'us-east-1',\n})\n```\n\n## Sleep\n\nThis adapter's process task receives messages from SQS and sends them to your queue's worker url for\nprocessing. If no messages are received from SQS, this adapter's process task will pause, by\ndefault, for 10 seconds, before attempting to receive more messages from SQS\n\nYou can also pass a `sleep` value to the adapter, which should be the number of milliseconds to\npause if no messages are received from SQS:\n\n```js\nsqs(UNIQUE_NAME, { sleep: 5000, awsAccessKeyId: ...})\n```\n\n## Installation\n\nThis is a Deno module available to import from\n[nest.land](https://nest.land/package/hyper-adapter-sqs)\n\ndeps.js\n\n```js\nexport { default as sqs } from 'https://x.nest.land/hyper-adapter-sqs@0.1.4/mod.js'\n```\n\n## Contributing\n\nContributions are welcome! See the hyper\n[contribution guide](https://docs.hyper.io/contributing-to-hyper)\n\n## Testing\n\n```\n./scripts/test.sh\n```\n\nTo lint, check formatting, and run unit tests\n\n## License\n\nApache License 2.0 SEE [LICENSE](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Fhyper-adapter-sqs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyper63%2Fhyper-adapter-sqs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Fhyper-adapter-sqs/lists"}