{"id":20805734,"url":"https://github.com/danbugs/spin-dapr-poc","last_synced_at":"2026-04-25T01:35:53.707Z","repository":{"id":115403775,"uuid":"598340808","full_name":"danbugs/spin-dapr-poc","owner":"danbugs","description":"This is a simple proof of concept for using Dapr with a Spin application.","archived":false,"fork":false,"pushed_at":"2023-04-24T17:49:28.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T03:33:42.549Z","etag":null,"topics":["dapr","spin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/danbugs.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":"2023-02-06T22:44:25.000Z","updated_at":"2023-02-07T19:45:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ee00ab6-d19e-481e-83f8-ea298c14290e","html_url":"https://github.com/danbugs/spin-dapr-poc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danbugs/spin-dapr-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danbugs%2Fspin-dapr-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danbugs%2Fspin-dapr-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danbugs%2Fspin-dapr-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danbugs%2Fspin-dapr-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danbugs","download_url":"https://codeload.github.com/danbugs/spin-dapr-poc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danbugs%2Fspin-dapr-poc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28071574,"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","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dapr","spin"],"created_at":"2024-11-17T19:16:07.251Z","updated_at":"2025-12-27T04:47:25.639Z","avatar_url":"https://github.com/danbugs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## spin-dapr-poc\n\nThis is a simple proof of concept for using Dapr with a Spin application.\n\n### Prerequisites\n\n- [Docker](https://www.docker.com/)\n- [Dapr CLI](https://dapr.io/)\n- [Spin CLI](https://www.fermyon.com/spin)\n\n\u003e for examplary installation for **Dapr CLI** and **Spin CLI** on Ubuntu see below\n\n### Running the application\n\n1. Start Dapr\n\n```bash\ndapr init\n```\n\n2. Build the application\n\n```bash\nspin build\n```\n\n3. Start the application\n\n```bash\ndapr run --app-id spin-dapr-poc --app-port 3000 --dapr-http-port 3500 --resources-path ./components -- spin up\n```\n\n4. Invoke the application\n\n- Using the test.http file in VS Code, or\n- Using the following curl command:\n\n```bash\ncurl -v -H \"dapr-app-id: spin-dapr-poc\" -X GET http://localhost:3500\n```\n\nThis app creates an entry onto a Redis statestore, and then retrieves that same entry.\n\nThe expected output should be something like this:\n\n```\nHTTP/1.1 200 OK\nServer: fasthttp\nDate: Mon, 06 Feb 2023 22:49:43 GMT\nContent-Type: text/plain; charset=utf-8\nContent-Length: 15\nContent_type: application/json\nTraceparent: 00-af6523bd51865cc5c46a89051d1684dd-20224c208faa5d9e-01\nConnection: close\n\n{\n  \"orderId\": 257\n}\n```\n\nHere's a video demo:\n\n[![Demo](https://i.imgur.com/af7q9k7.jpg)](https://youtu.be/VP7bJXk6YFU)\n\n### sample installation on Ubuntu 22.10\n\n```shell\nsudo apt update\nsudo apt upgrade -y\nsudo apt install nodejs npm -y\n# install Dapr CLI\nwget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash\ndapr init\n# install and configure Spin CLI\ncurl -fsSL https://developer.fermyon.com/downloads/install.sh | bash\nsudo mv spin /usr/local/bin/\nspin plugin update\nspin plugin install js2wasm\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanbugs%2Fspin-dapr-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanbugs%2Fspin-dapr-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanbugs%2Fspin-dapr-poc/lists"}