{"id":15468449,"url":"https://github.com/winebarrel/sqsf","last_synced_at":"2025-04-22T11:49:51.364Z","repository":{"id":59676747,"uuid":"538381901","full_name":"winebarrel/sqsf","owner":"winebarrel","description":"sqsf is a tool to receive AWS SQS messages like `tail -f`.","archived":false,"fork":false,"pushed_at":"2025-04-14T06:50:07.000Z","size":208,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T07:41:45.293Z","etag":null,"topics":["aws","golang","sqs"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winebarrel.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-19T07:25:45.000Z","updated_at":"2025-04-14T06:50:10.000Z","dependencies_parsed_at":"2022-09-19T20:02:17.526Z","dependency_job_id":"e5cb5f0c-1902-440d-b4c1-b5ed2d5b610e","html_url":"https://github.com/winebarrel/sqsf","commit_stats":{"total_commits":83,"total_committers":2,"mean_commits":41.5,"dds":0.3975903614457831,"last_synced_commit":"203d13b8ebbbab29c955d69c1f642515fc2a5236"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fsqsf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fsqsf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fsqsf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fsqsf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winebarrel","download_url":"https://codeload.github.com/winebarrel/sqsf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237793,"owners_count":21397399,"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","golang","sqs"],"created_at":"2024-10-02T01:41:06.275Z","updated_at":"2025-04-22T11:49:51.340Z","avatar_url":"https://github.com/winebarrel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqsf\n\nsqsf is a tool to receive AWS SQS messages like `tail -f`.\n\n## Installation\n\n```\nbrew install winebarrel/sqsf/sqsf\n```\n\n## Usage\n\n```\nUsage: sqsf [OPTION] QUEUE\n  -decode-body\n    \tprint decoded message body\n  -delete\n    \tdelete received message\n  -endpoint-url string\n    \tAWS endpoint URL ($AWS_ENDPOINT_URL)\n  -limit int\n    \tmaximum number of received messages\n  -message-id string\n    \tmessage ID to receive\n  -query string\n    \tjq expression to filter the output\n  -region string\n    \tAWS region ($AWS_REGION)\n  -version\n    \tprint version and exit\n  -vis-timeout int\n    \tvisibility timeout (default 600)\n```\n\n## Getting Started\n\n```\n$ docker compose up -d\n$ make queue\n$ make message\n$ make receive\n```\n\n## Example\n\n```\n$ sqsf my-queue-name\n{\n    \"Attributes\": null,\n    \"Body\": \"{\\\"version\\\":\\\"1.0\\\",\\\"timestamp\\\":\\\"2022-09-19T09:01:29.773Z\\\",\\\"requestContext\\\":{\\\"requestId\\\":\\\"7e658e64-4e9f-499f-a949-fad9eb41fff0\\\",\\\"functionArn\\\":\\\"arn:aws:lambda:ap-northeast-1:123456789012:function:hello:$LATEST\\\",\\\"condition\\\":\\\"Success\\\",\\\"approximateInvokeCount\\\":1},\\\"requestPayload\\\":{\\\"key1\\\":100,\\\"key2\\\":200,\\\"key3\\\":300},\\\"responseContext\\\":{\\\"statusCode\\\":200,\\\"executedVersion\\\":\\\"$LATEST\\\"},\\\"responsePayload\\\":100}\",\n    \"MD5OfBody\": \"e3216d7baf92ab8d3842b2c5f742cbc5\",\n    \"MD5OfMessageAttributes\": null,\n    \"MessageAttributes\": null,\n    \"MessageId\": \"3fdc12d6-3cb8-4c0d-aaa5-b6a6d40a0d54\",\n    \"ReceiptHandle\": \"...\"\n}\n^C # Running until CTRL-C is pressed\n\n$ sqsf -decode-body my-queue-name\n{\n    \"requestContext\": {\n        \"approximateInvokeCount\": 1,\n        \"condition\": \"Success\",\n        \"functionArn\": \"arn:aws:lambda:ap-northeast-1:123456789012:function:hello:$LATEST\",\n        \"requestId\": \"894310eb-fc64-4f12-aa2d-9ad6a4d2c8ae\"\n    },\n    \"requestPayload\": {\n        \"key1\": 100,\n        \"key2\": 200,\n        \"key3\": 300\n    },\n    \"responseContext\": {\n        \"executedVersion\": \"$LATEST\",\n        \"statusCode\": 200\n    },\n    \"responsePayload\": 100,\n    \"timestamp\": \"2022-09-19T09:01:55.043Z\",\n    \"version\": \"1.0\"\n}\n```\n\n## Use with LocalStack\n\n```\n$ sqsf -region us-east-1 -endpoint-url http://localhost:4566 my-queue-name\n```\n\n## Filtering with [jq](https://github.com/itchyny/gojq) expression\n\n```\n$ sqsf -query '.MessageId' my-queue-name\n3fdc12d6-3cb8-4c0d-aaa5-b6a6d40a0d54\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fsqsf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinebarrel%2Fsqsf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fsqsf/lists"}