{"id":15992731,"url":"https://github.com/pmlopes/vertx-lambda-runtime","last_synced_at":"2025-09-10T11:38:42.918Z","repository":{"id":57745409,"uuid":"193095258","full_name":"pmlopes/vertx-lambda-runtime","owner":"pmlopes","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-13T14:27:37.000Z","size":95,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-07-20T08:16:19.484Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/pmlopes.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}},"created_at":"2019-06-21T12:35:45.000Z","updated_at":"2019-11-12T19:55:32.000Z","dependencies_parsed_at":"2022-08-30T23:40:17.868Z","dependency_job_id":null,"html_url":"https://github.com/pmlopes/vertx-lambda-runtime","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pmlopes/vertx-lambda-runtime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlopes%2Fvertx-lambda-runtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlopes%2Fvertx-lambda-runtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlopes%2Fvertx-lambda-runtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlopes%2Fvertx-lambda-runtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmlopes","download_url":"https://codeload.github.com/pmlopes/vertx-lambda-runtime/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlopes%2Fvertx-lambda-runtime/sbom","scorecard":{"id":738828,"data":{"date":"2025-08-11","repo":{"name":"github.com/pmlopes/vertx-lambda-runtime","commit":"89d44e18e57a5828d0e392943b372cbf600e7a0f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"68 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-27xj-rqx5-2255","Warn: Project is vulnerable to: GHSA-288c-cq4h-88gq","Warn: Project is vulnerable to: GHSA-4w82-r329-3q67","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-58pp-9c76-5625","Warn: Project is vulnerable to: GHSA-5949-rw7g-wx7w","Warn: Project is vulnerable to: GHSA-5p34-5m6p-p58g","Warn: Project is vulnerable to: GHSA-5r5r-6hpj-8gg9","Warn: Project is vulnerable to: GHSA-6fpp-rgj9-8rwc","Warn: Project is vulnerable to: GHSA-758m-v56v-grj4","Warn: Project is vulnerable to: GHSA-85cw-hj65-qqv9","Warn: Project is vulnerable to: GHSA-89qr-369f-5m5x","Warn: Project is vulnerable to: GHSA-8c4j-34r4-xr8g","Warn: Project is vulnerable to: GHSA-8w26-6f25-cm9x","Warn: Project is vulnerable to: GHSA-95cm-88f5-f2c7","Warn: Project is vulnerable to: GHSA-9gph-22xh-8x98","Warn: Project is vulnerable to: GHSA-9m6f-7xcq-8vf8","Warn: Project is vulnerable to: GHSA-9vvp-fxw6-jcxr","Warn: Project is vulnerable to: GHSA-c265-37vj-cwcc","Warn: Project is vulnerable to: GHSA-c2q3-4qrh-fm48","Warn: Project is vulnerable to: GHSA-cf6r-3wgc-h863","Warn: Project is vulnerable to: GHSA-cvm9-fjm9-3572","Warn: Project is vulnerable to: GHSA-f3j5-rmmp-3fc5","Warn: Project is vulnerable to: GHSA-f9xh-2qgp-cq57","Warn: Project is vulnerable to: GHSA-fmmc-742q-jg75","Warn: Project is vulnerable to: GHSA-fqwf-pjwf-7vqv","Warn: Project is vulnerable to: GHSA-gjmw-vf9h-g25v","Warn: Project is vulnerable to: GHSA-gwp4-hfv6-p7hw","Warn: Project is vulnerable to: GHSA-gww7-p5w4-wrfv","Warn: Project is vulnerable to: GHSA-h3cw-g4mq-c5x2","Warn: Project is vulnerable to: GHSA-h4rc-386g-6m85","Warn: Project is vulnerable to: GHSA-h822-r4r5-v8jg","Warn: Project is vulnerable to: GHSA-j823-4qch-3rgm","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-m6x4-97wx-4q27","Warn: Project is vulnerable to: GHSA-mc6h-4qgp-37qh","Warn: Project is vulnerable to: GHSA-mx7p-6679-8g3q","Warn: Project is vulnerable to: GHSA-p43x-xfjf-5jhr","Warn: Project is vulnerable to: GHSA-q93h-jc49-78gg","Warn: Project is vulnerable to: GHSA-qjw2-hr98-qgfh","Warn: Project is vulnerable to: GHSA-qmqc-x3r4-6v39","Warn: Project is vulnerable to: GHSA-r3gr-cxrf-hg25","Warn: Project is vulnerable to: GHSA-r695-7vr9-jgc2","Warn: Project is vulnerable to: GHSA-rf6r-2c4q-2vwg","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-rpr3-cw39-3pxh","Warn: Project is vulnerable to: GHSA-v3xw-c963-f5hc","Warn: Project is vulnerable to: GHSA-v585-23hc-c647","Warn: Project is vulnerable to: GHSA-vfqx-33qm-g869","Warn: Project is vulnerable to: GHSA-wh8g-3j2c-rqj5","Warn: Project is vulnerable to: GHSA-9vjp-v76f-g363","Warn: Project is vulnerable to: GHSA-grg4-wf29-r9vv","Warn: Project is vulnerable to: GHSA-269q-hmxg-m83q","Warn: Project is vulnerable to: GHSA-5jpm-x58v-624v","Warn: Project is vulnerable to: GHSA-5mcr-gq6c-3hq2","Warn: Project is vulnerable to: GHSA-cqqj-4p63-rrmm","Warn: Project is vulnerable to: GHSA-wx5j-54mm-rqqq","Warn: Project is vulnerable to: GHSA-f256-j965-7f32","Warn: Project is vulnerable to: GHSA-prj3-ccx8-p6x4","Warn: Project is vulnerable to: GHSA-wm47-8v5p-wjpj","Warn: Project is vulnerable to: GHSA-xpw8-rcwv-8f8p","Warn: Project is vulnerable to: GHSA-389x-839f-4rhx","Warn: Project is vulnerable to: GHSA-xq3w-v528-46rv","Warn: Project is vulnerable to: GHSA-6mjq-h674-j845","Warn: Project is vulnerable to: GHSA-mm9x-g8pc-w292","Warn: Project is vulnerable to: GHSA-p2v9-g2qv-p635"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T16:45:03.651Z","repository_id":57745409,"created_at":"2025-08-22T16:45:03.651Z","updated_at":"2025-08-22T16:45:03.651Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274455880,"owners_count":25288557,"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-09-10T02:00:12.551Z","response_time":83,"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":[],"created_at":"2024-10-08T06:40:45.001Z","updated_at":"2025-09-10T11:38:42.894Z","avatar_url":"https://github.com/pmlopes.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vertx lambda\n\n## Run native Lambda's with Vert.x\n\n*Disclaimer - This project should be considered a POC and has not been tested or verified for production use.\nIf you decided to run this on production systems you do so at your own risk.*\n\n## Building this Runtime\n\nThis runtime should give you all the boilerplate code for:\n\n* AWS Lambda\n* Knative\n* OpenFaaS\n\n## Compile the Runtime Classes\n\n```\n$ mvn package\n```\n\n## Writing your lambda\n\nCreate a project and add the dependency:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003exyz.jetdrone\u003c/groupId\u003e\n  \u003cartifactId\u003evertx.lambda\u003c/artifactId\u003e\n  \u003cversion\u003eLATEST\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nCreate a lambda as:\n\n```java\npackage com.example;\n\nimport io.vertx.core.buffer.Buffer;\nimport io.vertx.core.eventbus.Message;\nimport io.vertx.core.json.JsonObject;\nimport xyz.jetdrone.vertx.lambda.Lambda;\n\npublic class MyLambda implements Lambda\u003cBuffer\u003e {\n  @Override\n  public void handle(Message\u003cBuffer\u003e event) {\n    System.out.println(\"HEADERS: \" + event.headers());\n    System.out.println(\"BODY: \" + event.body());\n\n    // Here your business logic...\n\n    event.reply(\"OK\");\n  }\n}\n```\n\nAnd register your class in the service loader `src/main/resources/META-INF/services/xyz.jetdrone.vertx.lambda.Lambda`:\n\n```\n# List all available Lambdas here\ncom.example.knativelambda.MyLambda\n```\n\n## Build\n\n### AWS Lambda\n\nIn your `pom.xml` add the plugins:\n\n```xml\n\u003cbuild\u003e\n  \u003cplugins\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003ecom.oracle.substratevm\u003c/groupId\u003e\n      \u003cartifactId\u003enative-image-maven-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e${graal.version}\u003c/version\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003enative-image\u003c/goal\u003e\n          \u003c/goals\u003e\n          \u003cphase\u003epackage\u003c/phase\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n      \u003cconfiguration\u003e\n        \u003cmainClass\u003exyz.jetdrone.vertx.lambda.knative.Bootstrap\u003c/mainClass\u003e\n        \u003cimageName\u003ebootstrap\u003c/imageName\u003e\n        \u003cbuildArgs\u003e--report-unsupported-elements-at-runtime --allow-incomplete-classpath --no-server\u003c/buildArgs\u003e\n      \u003c/configuration\u003e\n    \u003c/plugin\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n      \u003cartifactId\u003emaven-assembly-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e3.1.1\u003c/version\u003e\n      \u003cdependencies\u003e\n        \u003cdependency\u003e\n          \u003cgroupId\u003exyz.jetdrone\u003c/groupId\u003e\n          \u003cartifactId\u003evertx.lambda\u003c/artifactId\u003e\n          \u003cversion\u003eLATEST\u003c/version\u003e\n        \u003c/dependency\u003e\n      \u003c/dependencies\u003e\n      \u003cconfiguration\u003e\n        \u003cdescriptorRefs\u003e\n          \u003cdescriptorRef\u003eaws-function\u003c/descriptorRef\u003e\n        \u003c/descriptorRefs\u003e\n      \u003c/configuration\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cphase\u003epackage\u003c/phase\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003esingle\u003c/goal\u003e\n          \u003c/goals\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n    \u003c/plugin\u003e\n  \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\nThe first plugin will compile your code to a `native-image` and the second\nwill `zip` your function as required by AWS.\n\n### Knative\n\nIn your `pom.xml` add the plugins:\n\n```xml\n\u003cbuild\u003e\n  \u003cplugins\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003ecom.oracle.substratevm\u003c/groupId\u003e\n      \u003cartifactId\u003enative-image-maven-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e${graal.version}\u003c/version\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003enative-image\u003c/goal\u003e\n          \u003c/goals\u003e\n          \u003cphase\u003epackage\u003c/phase\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n      \u003cconfiguration\u003e\n        \u003cmainClass\u003exyz.jetdrone.vertx.lambda.knative.Bootstrap\u003c/mainClass\u003e\n        \u003cimageName\u003ebootstrap\u003c/imageName\u003e\n        \u003cbuildArgs\u003e--report-unsupported-elements-at-runtime --allow-incomplete-classpath --no-server\u003c/buildArgs\u003e\n      \u003c/configuration\u003e\n    \u003c/plugin\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n      \u003cartifactId\u003emaven-dependency-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e3.1.1\u003c/version\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cid\u003eunpack\u003c/id\u003e\n          \u003cphase\u003epackage\u003c/phase\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003eunpack\u003c/goal\u003e\n          \u003c/goals\u003e\n          \u003cconfiguration\u003e\n            \u003cartifactItems\u003e\n              \u003cartifactItem\u003e\n                \u003cgroupId\u003exyz.jetdrone\u003c/groupId\u003e\n                \u003cartifactId\u003evertx.lambda\u003c/artifactId\u003e\n                \u003cversion\u003eLATEST\u003c/version\u003e\n                \u003ctype\u003ejar\u003c/type\u003e\n                \u003coverWrite\u003efalse\u003c/overWrite\u003e\n                \u003coutputDirectory\u003e${project.build.directory}\u003c/outputDirectory\u003e\n                \u003cincludes\u003e**/knative/*\u003c/includes\u003e\n              \u003c/artifactItem\u003e\n            \u003c/artifactItems\u003e\n          \u003c/configuration\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n    \u003c/plugin\u003e\n  \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\nThe first plugin will compile your code to a `native-image` and the second\nwill `unpack` a default `service.yaml` to be used to deploy your lambda.\n\n### OpenFaaS\n\nIn your `pom.xml` add the plugin:\n\n```xml\n\u003cbuild\u003e\n  \u003cplugins\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003ecom.oracle.substratevm\u003c/groupId\u003e\n      \u003cartifactId\u003enative-image-maven-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e${graal.version}\u003c/version\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003enative-image\u003c/goal\u003e\n          \u003c/goals\u003e\n          \u003cphase\u003epackage\u003c/phase\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n      \u003cconfiguration\u003e\n        \u003cmainClass\u003exyz.jetdrone.vertx.lambda.knative.Bootstrap\u003c/mainClass\u003e\n        \u003cimageName\u003ebootstrap\u003c/imageName\u003e\n        \u003cbuildArgs\u003e--report-unsupported-elements-at-runtime --allow-incomplete-classpath --no-server\u003c/buildArgs\u003e\n      \u003c/configuration\u003e\n    \u003c/plugin\u003e\n  \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\nThe plugin will compile your code to a `native-image`.\n\n## Next steps\n\nLambdas are exposed to `vert.x` event bus, however for `knative` and `openFaaS` you might\nneed to map the functions to URLs too. In this case you can override the method `alias`:\n\n```java\npublic class MyLambda implements Lambda\u003cBuffer\u003e {\n  @Override\n  public String alias() {\n    return \"/\";\n  }\n}\n```\n\nIn this case the mapping is not base on the fully qualified class name, but on the given\nalias.\n\n# Finally\n\nDeploy and profit!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmlopes%2Fvertx-lambda-runtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmlopes%2Fvertx-lambda-runtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmlopes%2Fvertx-lambda-runtime/lists"}