Looks interesting but it says it's unstable. Do you have to write the backend in TS/JS?
And yeah, I think if you want to use SvelteKit the endpoints need to be in something that compiles to JS — not 100% sure.
But it's quite possible to hook Svelte itself into any stack you want. SvelteKit is the bundling up of a bunch of nice defaults whereas Svelte is completely stack agnostic.