This is the pattern from the platform evaluation: the widget below never talks to a database directly β€” it calls a same-origin API route (src/pages/api/live/example.ts), which is where a real integration would call your internal API with server-side credentials. Right now that route returns clearly-labelled mock data; swap it for a real fetch when this is wired up for real.

This particular example is public and unauthenticated on purpose, so it’s safe to demo here. A widget inside private/clients/ or private/internals/ would back onto a route that checks locals.scopes the same way src/middleware.ts does for pages β€” see the comment at the top of that API route.