The Svelte framework.
WHAT IT PROVIDES
File-based routing Server rendering, static generation and client rendering Data loading per route Form handling An adapter system for deployment
WHAT ADAPTERS DO
Produce output suited to a particular hosting environment.
WHY THAT MATTERS
The same application can target static hosting, a node server, or a platform, by changing the adapter.
WHAT THAT MEANS FOR SHARED HOSTING
A static adapter produces files any host can serve.
WHAT THE LOAD FUNCTIONS DO
Provide data to a route, running on the server, the client, or both.
WHAT FORM ACTIONS PROVIDE
Handling submissions on the server, with forms working without JavaScript.
WHY THAT MATTERS
Progressive enhancement by default.
WHAT TO BE CAREFUL WITH
Code intended for the server running in the browser Secrets in modules imported by client code
WHAT CONVENTION HELPS
Server-only modules, which fail the build if imported into client code.
WHAT TO TEST
The static output, with routes entered directly.
WHAT TO CHECK
Whether forms function with JavaScript disabled.