This repo demonstrates how you can consume a Primo site's data from SvelteKit (or a similar framework). If you'd like to serve Primo pages from your SvelteKit app, check out primo-headless.
In this case, it's used to list blog posts and render individual blog posts. The content is server-side rendered or can be statically rendered from SvetleKit.
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
/routes/+layout.js
fetches the Primo site object/routes/+page.svelte
accesses the site object to list the blog posts/routes/blog/post/+pages.svelte
accesses the site object to pull out the blog post title, image, and body