Skip to content

example: add Bun Hono example - #876

Open
mattenarle10 wants to merge 2 commits into
aws:mainfrom
mattenarle10:example/bun-hono
Open

mattenarle10 wants to merge 2 commits into
aws:mainfrom
mattenarle10:example/bun-hono

Conversation

@mattenarle10

Copy link
Copy Markdown

Issue #, if available: N/A

Description of changes:

This PR adds examples/bun-hono. It runs a Hono application on Bun in a container image with Lambda Web Adapter. The application is a Bun HTTP server in TypeScript with no build step.

Changes:

  • examples/bun-hono: the application, the Dockerfile, the SAM template, and a README.
  • .github/example-matrix.json: an image entry, so Verify Examples builds and boots the example.
  • .github/dependabot.yml: an npm entry for /examples/bun-hono/app.
  • README.md and docs/guide/src/examples/overview.md: the example is in the two lists.

The Dockerfile starts from the Node.js image on Amazon ECR Public and installs Bun with npm. Bun has no official image on ECR Public, and the examples do not pull from Docker Hub (#752).

GET / returns the request ID and the function name, not the full request context and Lambda context. The full contexts contain the AWS account ID.

This is a companion to #875 (Hono in Zip). The two PRs do not change the same lines.

Testing:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Run a Hono app on Bun in a container image behind Lambda Web Adapter.
The Dockerfile installs Bun with npm on the Node.js image from ECR
Public, because Bun has no official image there. Add the example to the
image matrix so Verify Examples builds and boots it, and claim its
manifest in dependabot.yml.
@mattenarle10
mattenarle10 requested a review from a team as a code owner October 8, 2026 17:18

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants