{"id":26032200,"url":"https://github.com/apache/openwhisk-runtime-deno","last_synced_at":"2025-04-09T22:14:26.407Z","repository":{"id":46564283,"uuid":"288636837","full_name":"apache/openwhisk-runtime-deno","owner":"apache","description":"Apache OpenWhisk Runtime Deno supports Apache OpenWhisk functions written in Deno","archived":false,"fork":false,"pushed_at":"2024-09-24T15:33:04.000Z","size":119,"stargazers_count":14,"open_issues_count":1,"forks_count":10,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-04-03T04:17:03.884Z","etag":null,"topics":["apache","cloud","deno","docker","faas","functions","functions-as-a-service","openwhisk","openwhisk-runtime","serverless","serverless-architectures","serverless-functions","typescript"],"latest_commit_sha":null,"homepage":"https://openwhisk.apache.org","language":"Scala","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/apache.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-19T04:54:49.000Z","updated_at":"2025-03-31T06:51:02.000Z","dependencies_parsed_at":"2023-01-30T04:45:29.669Z","dependency_job_id":null,"html_url":"https://github.com/apache/openwhisk-runtime-deno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fopenwhisk-runtime-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fopenwhisk-runtime-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fopenwhisk-runtime-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fopenwhisk-runtime-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/openwhisk-runtime-deno/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247898796,"owners_count":21014774,"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":["apache","cloud","deno","docker","faas","functions","functions-as-a-service","openwhisk","openwhisk-runtime","serverless","serverless-architectures","serverless-functions","typescript"],"created_at":"2025-03-06T21:33:38.746Z","updated_at":"2025-04-09T22:14:26.366Z","avatar_url":"https://github.com/apache.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n#\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements.  See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"License\"); you may not use this file except in compliance with\n# the License.  You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n--\u003e\n\n# Apache OpenWhisk Runtime for Deno\n\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\nThis repository contains sources files needed to build the Deno\nruntimes for Apache OpenWhisk. The build system will produce a Docker\nimage for each runtime version. These images are used in the platform\nto execute Deno actions.\n\nTry it out using Docker image:\n\n```sh\nwsk action create hello main.ts --docker=openwhisk/action-deno-1.3.0\n```\n\nThe content of the `main.ts` is shown below.\n```ts\nexport default (args: any) =\u003e {\n  return {\n    message: `Hello, ${args.name || 'World'}!`\n  }\n}\n```\nFor the return result, not only support `dictionary` but also support `array`\n\nSo a very simple `hello array` function would be:\n\n```ts\nexport default (args: any) =\u003e {\n   return [\"a\", \"b\"]\n}\n```\n\nAnd support array result for sequence action as well, the first action's array result can be used as next action's input parameter.\n\nSo the function can be:\n\n```ts\nfunc main(args: Any) -\u003e Any {\n    return args\n}\n```\nWhen invokes above action, we can pass an array object as the input parameter.\n\n## Development\n\nA Dockerfile for each runtime image is defined in its respective\nruntime version directory. Modify this file if you need to add extra\ndependencies to a runtime version.\n\n### Build\n\n- Run the `distDocker` command to generate local Docker images for the different runtime versions.\n\n```\n./gradlew distDocker\n```\n\n### Test\n\n1. Build the local Docker images for the Deno runtime (see the instructions above).\n\n2. Install project dependencies from the top-level Apache OpenWhisk\n[project](https://github.com/apache/openwhisk), which ensures correct\nversions of dependent libraries are available in the Maven cache.\n\n```\n./gradlew install\n```\n\n*This command **MUST BE** run from the directory containing the main\n Apache OpenWhisk [repository](https://github.com/apache/openwhisk),\n not this repository's directory.*\n\n3. Run the project tests.\n\n```\n./gradlew :tests:test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fopenwhisk-runtime-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fopenwhisk-runtime-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fopenwhisk-runtime-deno/lists"}