Svelte Adapter Bun screenshot

Svelte Adapter Bun

Author Avatar Theme by Gornostay25
Updated: 22 Oct 2025
648 Stars

A SvelteKit adapter for Bun

Overview

The Svelte-adapter-bun is an adapter for SvelteKit apps that generates a standalone Bun server. It allows you to easily integrate a Bun server into your SvelteKit app.

Features

  • Generates a standalone Bun server for SvelteKit apps
  • Allows configuration of various options such as output directory, asset browsing, precompression, and file extensions to compress
  • Supports WebSocket server for real-time communication
  • Handles environment variables and allows customization through .env files

Installation

To install Svelte-adapter-bun, use the following command:

bun add -d svelte-adapter-bun

After installation, add the adapter to your svelte.config.js file.

Summary

The Svelte-adapter-bun is a useful tool for integrating a standalone Bun server into your SvelteKit app. It offers various configuration options and supports WebSocket server for real-time communication. Additionally, it handles environment variables and allows customization through .env files. Overall, it simplifies the process of building and deploying SvelteKit apps with a Bun server.