SvelteStarter

sveltekit-encore — Svelte Starter Template

By ArnavK-09

A Bun-based SvelteKit and Encore.ts fullstack monorepo starter where the frontend calls a type-safe API client generated automatically from the backend.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

1 previews
Author preview
Author-provided preview

Preview provided in the project README.

One original preview is available. Open the full image to inspect the design.

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-02View source

What stands out

A quick read of the recorded project description.

01

SvelteKit frontend and Encore.ts backend in a single Bun-managed monorepo

02

Frontend API client generated automatically from backend endpoint declarations, with shared types across frontend and backend

03

Root scripts including backend, frontend, dev, boot, and fmt, allowing both development servers to start together

04

Encore.ts endpoints support path, query, and header parameter mapping and generate an OpenAPI schema automatically

05

Frontend example uses Svelte's $state reactive state to call the generated client

06

Code released under the MIT license

Template Details

This is a fullstack monorepo starter that places a SvelteKit frontend and an Encore.ts backend in the same repository, using Bun as the runtime and package manager. Root-level scripts start the backend development server, the SvelteKit development server, or both ends with a single command; additional scripts generate the frontend API client, build the frontend for production, and format code with Prettier.

The backend is built on Encore.ts. Endpoints declare methods, paths, and request/response types via api(), and the README example shows a GET endpoint with a path parameter and notes that an OpenAPI schema is generated. The frontend calls the backend through a generated client in $lib/client, with an example using Svelte's $state to manage input and the returned message.

Before use, clone the repository and run bun install, then run the development script. The README does not cover databases, authentication, deployment targets, or environment variable configuration, so these need to be added per project; the repository is released under the MIT license, but the licensing of third-party assets such as demo images, fonts, and icons must be checked separately.

SvelteStarter

Is it right for your project?

Use Cases

  • New projects that want SvelteKit for the frontend and Encore.ts for the backend while keeping types aligned
  • Teams that want to develop frontend and backend in one repository with shared scripts and formatting configuration
  • Projects that need frontend call code generated automatically from backend endpoints, reducing hand-written requests and type definitions
  • Fullstack projects starting out with Bun as the development and package management tool

Suitable For

  • Developers familiar with SvelteKit and TypeScript who are willing to use Bun
  • Fullstack projects that need frontend-backend type alignment and accept a monorepo structure
  • Projects that want to organize backend endpoints with Encore.ts and generate OpenAPI automatically

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Bun must be installed in advance, then clone the repository and run bun install

  2. 2

    Use bun run dev to start both frontend and backend; on Windows, bun run boot can be used instead

  3. 3

    After backend endpoint changes, run backend:gen to regenerate the frontend API client; for production use, backend:gen:prod

  4. 4

    Use frontend:build for the frontend production build and fmt for code formatting

  5. 5

    The README does not describe database, authentication, environment variable, or deployment configuration, so these must be added per project

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version in the public repository under the MIT license; the free scope is the code in that version and does not mean external services or third-party assets are free.

Must comply with when using

  • The code in this version may be used, modified, used commercially, and distributed free of charge.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
  • The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.

Additional costs & items to verify

  • Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
  • External services such as domains, hosting, databases, payments, or AI may incur separate charges.
View Original Text Basis

Compiled by DeepSeek based on repository license and README ·2026-10-02. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
GitHub
Documentation and maintenance reference score
More documented · 75 / 100
Technologies
Svelte
Website type
Starter
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2026-07-24
Screenshot last checked
2026-10-02

No demo link is recorded. Use the repository instructions to evaluate the project locally; the screenshot alone cannot establish interactive behavior.

The catalog identifies Svelte as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Automatically checked against source and license rules; no manual editorial review.

Inspect the recorded source material

SHA-256: 9680056e876277fed792f5d57fad65ee57d4eaf3bc1b93c084038371e7610eb7

2026-10-02T17:30:45.757Z

Source file / repository
<h1 align="center">🥪 sveltekit-encore 🥪</h1>
<h2 align="center">Fullstack Monorepo Starter with Bun + SvelteKit + Encore.ts</h2>

<p align="center">
<img alt="hero" width="450" src="https://emoji-route.vercel.app/svg/🥪" />
</p>

> [!NOTE]
>
> **sveltekit-encore** is a modern fullstack monorepo starter featuring seamless integration between SvelteKit frontend and Encore.ts backend. Leveraging Bun's speed and Prettier for consistent formatting, it provides an optimized development experience with hot-reloading for both ends.

## 🌟 Features

> **sveltekit-encore** comes batteries included:

- **Bun-Powered Monorepo** - Blazing fast development with Bun runtime
- **Type-Safe APIs** - Encore.ts backend with automatic validation
- **SvelteKit Frontend** - Modern reactive UI framework
- **Seamless Integration** - Auto-generated API client for frontend
- **Pre-configured Tooling** - Prettier formatting & concurrent execution
- **Production Ready** - Built-in build scripts for deployment

## 💻 Installation

###### Clone and install dependencies

```bash
git clone https://github.com/ArnavK-09/sveltekit-encore.git
cd sveltekit-encore
bun install
```

## 🛠️ MonoRepo Commands

```json
{
  "scripts": {
    "backend": "Start backend dev server",
    "backend:gen": "Generate frontend API client",
    "backend:gen:prod": "Generate frontend API client for production",
    "frontend": "Start SvelteKit dev server",
    "frontend:build": "Build production frontend",
    "dev": "Run both servers simultaneously",
    "boot": "Concurrent dev server execution",
    "fmt": "Format code with Prettier"
  }
}
```

###### Start development servers
```bash
bun run dev  # Or use 'bun run boot' for windows
```

## 🧠 Encore.ts Backend

### Core Concepts
- Type-safe API endpoints with built-in validation
- Async handlers with typed request/response interfaces
- Automatic OpenAPI schema generation
- Path/Query/Header parameter mapping

###### Example Endpoint
```typescript
import { api } from "encore.dev/api";

interface Params { name: string }
interface Response { message: string }

export const hello = api(
  { method: "GET", path: "/hello/:name" },
  async ({ name }: Params): Promise<Response> => {
    return { message: `Hello ${name}!` };
  }
);
```

## 🖥️ Frontend Integration

###### SvelteKit API Call Example
```svelte
<script lang="ts">
import { client } from "$lib/client";

let input = $state("");
let message = $state("");

const fetchData = async () => {
  const res = await client.hello.get(input);
  message = res.message;
};
</script>

<input bind:value={input}>
<button on:click={fetchData}>Submit</button>
<p>{message}</p>
```

## 📷 UI Preview

| Preview |
|------------------|
| ![UI Preview](assets/screenshot.png) |

---

## 💻 Contributing

> [!TIP]
> Contributions welcome! Follow standard GitHub workflow:

1. **Fork & Clone** the repository
2. Create a feature branch: `git checkout -b feat/awesome`
3. Commit changes: `git commit -m "feat: awesome feature"`
4. Push & Open PR

## 👤 Author

<table>
<tbody>
<tr>
<td align="center"><a href="https://github.com/ArnavK-09">
<img src="https://github.com/ArnavK-09.png" width="130" alt="Arnav K">
<br/><b>Arnav K</b></a></td>
</tr>
</tbody>
</table>

---

<h2 align="center">📄 License</h2>

<p align="center">
<strong>sveltekit-encore</strong> is released under the <a href="./LICENSE">MIT</a>
</p>

---

<p align="center">
<strong>🌟 Found this useful? Give the repo a star to support its development! 🌟</strong>
</p>
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.

CMSaasStarter

CMSaasStarter

CMSaasStarter is an MIT-licensed SaaS starter template built with SvelteKit, TailwindCSS, DaisyUI, and Supabase, with Stripe Checkout and Stripe Portal for payments.

Svelte · Admin dashboard

sveltekit-electron

sveltekit-electron

A minimal SvelteKit + Electron starter template for cross-platform desktop applications. It provides clone, install, development, and build commands, with build targets adjustable in package.json and defaulting to Mac, Windows, and Linux.

Svelte · Starter

tauri-sveltekit

tauri-sveltekit

A minimal Tauri 2 and SvelteKit desktop starter template that builds the frontend as a static SPA via @sveltejs/adapter-static and loads it in Tauri's WebView.

Svelte · Starter

modernstack-saas

modernstack-saas

A SaaS starter template built with SvelteKit, Convex, Better Auth, and shadcn-svelte. It includes subscription billing via Autumn/Stripe, user and admin dashboards, user settings, organization multi-tenancy with roles and invitations, and a waitlist mode that can disable public registration.

Svelte · Admin dashboard

sveltekit-mdsvex-blog-template

sveltekit-mdsvex-blog-template

A SvelteKit and MDsveX blog starter for Markdown writing with embedded Svelte components, Tailwind CSS typography, tags, dark mode, SEO metadata, and Cloudflare Workers deployment configuration. Requires Node.js 22.12+ and pnpm 11.17.0; third-party demo assets need separate license verification.

Svelte · Portfolio

sveltekit-shadcn-blog-starter

sveltekit-shadcn-blog-starter

A SvelteKit blog starter that combines shadcn-svelte, Tailwind CSS, MDsveX, and TypeScript, offering multi-author support, tag archives, built-in search, light/dark themes, and automatic sitemap and RSS generation.

Svelte · Blog