Skip to content

feat(examples): add http-hello-world-hono-persistent-storage#668

Merged
ericgregory merged 1 commit into
wasmCloud:mainfrom
ericgregory:ci/test-quickstart-templates
Jun 22, 2026
Merged

feat(examples): add http-hello-world-hono-persistent-storage#668
ericgregory merged 1 commit into
wasmCloud:mainfrom
ericgregory:ci/test-quickstart-templates

Conversation

@ericgregory

@ericgregory ericgregory commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Adds the TypeScript Hono component as it stands at the end of the wasmcloud.com quickstart's Add persistent storage step for testing.

Companion PR

wasmCloud/wasmCloud#5272 does the same thing for the Rust side.

@ericgregory ericgregory requested review from a team as code owners June 19, 2026 17:59
@vados-cosmonic

Copy link
Copy Markdown
Contributor

Hey same comment as over on the Rust side here -- I wonder if we should just add another example, or extend the example code that's in there right now

Adds the TypeScript Hono component as it stands at the end of the
wasmcloud.com quickstart's "Add persistent storage" step — the
templates/http-hello-world-hono starting point plus wasi:keyvalue
imports in wit/world.wit and the per-name counter in
src/component.ts. The standard examples workflow picks it up via
one new entry in the components matrix.

The entry uses skip-wash-dev: true with an empty test-command,
because the component imports wasi:keyvalue at runtime and wash dev
doesn't auto-provision a keyvalue provider in CI. The build pass
alone catches the drift this example exists to surface — template
package.json's jco-std version vs. world.wit's wasi:http and
wasi:keyvalue versions vs. what the adapter bundles.

Replaces the earlier tests/quickstart/*.sh overlay + dedicated
workflow draft per @vados-cosmonic's review on wasmCloud#668 — having the
end-state code in-tree as an example obviates the need for a
parallel CI mechanism.

Signed-off-by: Eric Gregory <eric@cosmonic.com>
@ericgregory ericgregory force-pushed the ci/test-quickstart-templates branch from 43d6a21 to be28aff Compare June 22, 2026 16:20
@ericgregory ericgregory requested review from a team as code owners June 22, 2026 16:20
@ericgregory ericgregory changed the title ci: test the quickstart-modified variant of http-hello-world-hono feat(examples): add http-hello-world-hono-persistent-storage Jun 22, 2026

@ericgregory ericgregory left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same redesign as on the Rust side (#5272) — you were definitely right that adding the quickstart-modified code as a regular example is much cleaner.

@vados-cosmonic

Copy link
Copy Markdown
Contributor

Yeah it's going to be very nice to be able to just point at/link to this!

@vados-cosmonic vados-cosmonic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Small nit about dep versions, but that can be left to a follow up!

"hono": "^4.12.21"
},
"devDependencies": {
"@bytecodealliance/jco": "^1.15.4",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be able to safely update Jco to 1.24.3 here...
And also the other versions as well --

rolldown @ ^1.1.2
typescript @ ^6.0.3
rimraf @ ^6.1.3
nodemon @ ^3.1.14

@ericgregory ericgregory merged commit 4c41d1e into wasmCloud:main Jun 22, 2026
24 checks passed
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