SvelteKit

I think I’m going to try SvelteKit. I’m definitely hitting a wall with both writing the DOM manipulation in JavaScript, and with reusing bits of HTML+CSS+JS on multiple pages. I’ve only used Hugo before, for the latter purpose, but I’ve always heard good things about Svelte.

It’s also quite promising that it looks like it has both quite decent handling of setting the Content-Security-Policy header, as well as the option to roll my own. The CSP is a pain point, currently, and it’s nice to know that the framework will handle its own resources.

The CSP isn’t too complicated, it’s mostly that the Google API client doesn’t have great documentation, and that documentation was archived earlier this year. Combined with the only slightly better Google Sign-In library, and I’m definitely looking at [Svelte’s better-auth][svelte better auth] integration, and handling the API requests manually.

If I go with that route, I can rely on Svelte’s excellent TypeScript support.