mirror of
https://github.com/LukeHagar/sveltekit-adapters.git
synced 2025-12-06 04:21:32 +00:00
cc40622a02d8b6bd1b81c77214d9832d2652d10f
SvelteKit Adapters
This repo contains the below adapters and example implementations for each adapter.
Adapters
Appwrite adapter
Deploy SvelteKit applications as appwrite functions.
I have tested and validated the implementation with the node20 runtime. Other runtimes may work but have not been tested.
Electron adapter
Deploy SvelteKit applications as Electron desktop applications with native protocol handling.
This adapter provides seamless integration between SvelteKit and Electron, featuring:
- Native Protocol Handling: Uses Electron's
protocol.handle()API for production - Development Integration: Seamless Vite dev server integration with hot module replacement
- Full SvelteKit Support: SSR, API routes, static assets, prerendered pages, and form actions
- Clean Architecture: All Electron integration code is encapsulated
- Production Ready: Works with electron-builder and similar packaging tools
The adapter automatically handles the build process and provides helper functions for setting up the Electron main process. Please look at the example implementation for detailed setup instructions.
What's inside?
This repo includes the following packages and examples:
Examples
appwrite: a SvelteKit example app that uses theadapter-appwriteadapter [Link]electron: a SvelteKit example app that uses theadapter-electronadapter with native protocol handling [Link]
Packages
Description
Languages
JavaScript
100%