{"id":28003166,"url":"https://github.com/fnproject/cloudevents-demo","last_synced_at":"2026-05-04T01:35:11.928Z","repository":{"id":87295957,"uuid":"131148774","full_name":"fnproject/cloudevents-demo","owner":"fnproject","description":"Image processing application demo with CloudEvents and TensorFlow","archived":false,"fork":false,"pushed_at":"2018-12-09T18:50:06.000Z","size":42522,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-03-12T03:54:03.366Z","etag":null,"topics":["cloud-computing","fnproject","functions-as-a-service","golang","image-processing","opencv","python","serverless","tensorflow"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/fnproject.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,"zenodo":null}},"created_at":"2018-04-26T11:56:44.000Z","updated_at":"2019-04-16T18:52:28.000Z","dependencies_parsed_at":"2023-03-13T19:30:49.682Z","dependency_job_id":null,"html_url":"https://github.com/fnproject/cloudevents-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fnproject/cloudevents-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Fcloudevents-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Fcloudevents-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Fcloudevents-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Fcloudevents-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnproject","download_url":"https://codeload.github.com/fnproject/cloudevents-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Fcloudevents-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cloud-computing","fnproject","functions-as-a-service","golang","image-processing","opencv","python","serverless","tensorflow"],"created_at":"2025-05-09T01:59:21.126Z","updated_at":"2026-05-04T01:35:11.924Z","avatar_url":"https://github.com/fnproject.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloudEvents demo\n\nDemo rules: https://github.com/ac360/cloudevents-demo\n\n## Configuration\n\nAll you need is to put Twitter account credentials to [app file](app.yaml).\nFollow the instructions at https://developer.twitter.com/en/docs/basics/getting-started#get-started-app\n\n## How to run\n\n```bash\nfn -v deploy --all --registry `whoaim`\n```\n\n## How to test\n\nUsing the following command you can test the application:\n```bash\ncurl -v -X POST ${FN_API_URL}/r/cloudevents/cloudevent -d @tweet-entry/payloads/aws.payload.json\n```\n\n## Notes\n\nA function that [does image processing](image-processor) has a config var: [`DETECT_SENSITIVITY`](image-processor/func.yaml), \nit has default value - `\"0.3\"`, it’s enough to detect most of the objects.\nHowever, as lower you go then more objects detected but probability of the correct detection may vary from 0 to 100. \nSo if you want to get more objects detected, just set that to `\"0.1\"`\n\n## Acceptable payloads\n\n[CloudEvent function](tweet-entry) accepts the following payloads:\n\n * [AWS CloudEvent](tweet-entry/payloads/aws.payload.json)\n * [Azure CloudEvent](tweet-entry/payloads/azure.payload.json)\n\nImage processing function accepts the following payload:\n\n * [Batch image payload](image-processor/payload.sample.json)\n\n## Setting up functions using Fn CLI (alternative to deploy)\n\n```bash\n# creates an application\nfn apps create cloudevents\n\n# sets application config\nfn apps config set cloudevents TWITTER_CONSUMER_KEY ...\nfn apps config set cloudevents TWITTER_CONSUMER_SECRET ...\nfn apps config set cloudevents TWITTER_ACCESS_TOKEN_KEY ...\nfn apps config set cloudevents TWITTER_ACCESS_TOKEN_SECRET ...\n\nfn routes create cloudevents /cloudevent --image denismakogon/tweet-entry:0.0.1 --type async --format json --timeout 60 --idle-timeout 30\nfn routes create cloudevents /image-processor --image denismakogon/image-processor:0.0.1 --type async --format json --timeout 3600 --idle-timeout 120 --memory 1024\nfn routes config set cloudevents /image-processor DETECT_SENSITIVITY \"0.3\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnproject%2Fcloudevents-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnproject%2Fcloudevents-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnproject%2Fcloudevents-demo/lists"}