Demos

This is a Greenwood demonstration repo showcasing various features deployed to and running on Vercel serverless functions, powered by htmx.

Greeting API

This is an example of a Greenwood API Route returning HTML when fetched on-submit of the form to display a message on the page. You can see it fire in the network tab as /api/greeting

Fragments API (w/ WCC)

This is an example of a Greenwood API route returning an HTML response that is generated by server-rendering a Web Component (with Declarative Shadow DOM). This same component is loaded on the client-side too, so that when you click the Item Details button, state and interactivity can still be resumed. You can see it fire in the network tab as /api/fragment