bun-sveltekit

Solid

Use when building or running SvelteKit apps on Bun, including SSR, adapters, and Bun-specific APIs

Web & Frontend 162 stars 25 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
74
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Bun SvelteKit Run SvelteKit applications with Bun for faster development and builds. ## Quick Start ```bash # Create new SvelteKit project bunx sv create my-app cd my-app # Install dependencies bun install # Development bun run dev # Build bun run build # Preview bun run preview ``` ## Project Setup ### package.json ```json { "scripts": { "dev": "vite dev", "build": "vite build", "preview": "vite preview" }, "devDependencies": { "@sveltejs/adapter-auto": "^7.0.0", "@sveltejs/kit": "^2.0.0", "svelte": "^5.0.0", "vite": "^7.3.0" } } ``` ### Use Bun Adapter ```bash bun add -D svelte-adapter-bun ``` ```javascript // svelte.config.js import adapter from "svelte-adapter-bun"; import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; /** @type {import('@sveltejs/kit').Config} */ export default { preprocess: vitePreprocess(), kit: { adapter: adapter(), }, }; ``` ## Using Bun APIs ### Server Load Functions ```typescript // src/routes/users/+page.server.ts import { Database } from "bun:sqlite"; import type { PageServerLoad } from "./$types"; export const load: PageServerLoad = async () => { const db = new Database("data.sqlite"); const users = db.query("SELECT * FROM users").all(); db.close(); return { users }; }; ``` ### Form Actions ```typescript // src/routes/users/+page.server.ts import { Database } from "bun:sqlite"; import type { Actions } from "./$types"; import { fail } from "@sveltejs/kit"; expo...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
6 months ago
Last Updated
2 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category