Demos

This is a Greenwood demonstration repo showcasing various Greenwood features deployed to and running on Fly.io hosting.

JSON API

This is an example of a Greenwood API Route returning JSON 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 Artist Details button, state and interactivity can still be resumed. You can see it fire in the network tab as /api/fragment