Tauri & Capacitor
svelte-realtime works with Tauri and Capacitor without any static build or architectural changes.
Both runtimes let you point their webview at a live URL instead of local files. Your SvelteKit app runs on the server as normal - SSR, WebSocket hydration, live stores, RPC - and the native wrapper adds platform APIs (camera, push notifications, filesystem, etc.) on top.
Capacitor
capacitor.config.ts
import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'com.example.app',
appName: 'My App',
server: {
url: 'https://yourapp.com'
}
};
export default config; Tauri
tauri.conf.json
{
"build": {
"devPath": "https://yourapp.com",
"distDir": "https://yourapp.com"
}
} The webview loads your server directly. No static adapter, no URL configuration in the client, nothing special in your SvelteKit code.
Was this page helpful?