Tag: svelte
33 articles
- Routing and Pages
Master SvelteKit's file-based routing system. Learn dynamic routes, route groups, optional parameters, and layout patterns.
- Loading Data
Fetch data for your pages with SvelteKit load functions. Learn the difference between server and universal loads, and how to handle errors.
- Form Actions
Handle form submissions with SvelteKit's actions. Learn progressive enhancement, validation, and how to build forms that work without JavaScript.
- API Routes
Build backend endpoints with SvelteKit's +server.js files. Learn to handle HTTP methods, return JSON, and create REST APIs.
- Error Handling
Handle errors gracefully in SvelteKit. Learn about error pages, the error() helper, expected vs unexpected errors, and hooks.
- Deployment
Deploy your SvelteKit app to production. Learn about adapters, environment variables, and deployment platforms like Vercel, Netlify, and Cloudflare.
- What's Next
Continue your Svelte journey. Explore advanced topics, the ecosystem, and resources for going deeper with Svelte and SvelteKit.
- x402 with SvelteKit: Full-Stack Example
Build a complete SvelteKit application with x402 payments - wallet connection, protected routes, and automatic payment handling.
- Interacting with Programs from Svelte
Build Svelte components that interact with Solana programs - token balances, transfers, and real-time updates.
- Signing Messages and Transactions in the Browser
Learn to sign messages for authentication and build transactions that users approve through their wallet.