repowiserepowise

sveltejs / svelte Architecture and code health

web development for the rest of us

★ 89,840stars on GitHubJavaScriptMIT

Claude Code, Cursor, Codex or VS Code. No key. You approve one sign-in in your browser.

Setup instructions on GitHub

Releases on GitHub (latest svelte@5.59.1, Nov 20, 2026)

Repowise maps public repos from their source. Not affiliated with sveltejs. What is Repowise?

github.com/sveltejs/svelteIndexed at 90ad4e8

What is svelte?

svelte is a compiler for building web applications from declarative components. It takes those components and converts them into JavaScript that updates the DOM directly. The code is written mainly in JavaScript, with Svelte component files as its input. Its code health is 8.8 out of 10 (Excellent). The last commit to svelte was on Nov 21, 2026, and 118 people have contributed.

As of commit 90ad4e8, indexed Nov 21, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentssvelte.md

Repo facts: type, license, health, rank, contributors
svelte facts
LicenseMIT
Code health8.8 / 10 (Excellent)
Health rankNot ranked (not on a leaderboard yet)
Last commitNov 21, 2026
Contributors118
Bus factor1
Size9,905 files, 159,960 lines

Explore svelte

Ask about this code in your agent

This connects Repowise to svelte's code. It does not install svelte.

Useful if you want to change or fork svelte: your agent can ask how it is put together and get answers that cite its files.

Ask about svelte

Answers come from svelte's README and source, with the files they cite. Two free answers a day without an account.

Featured answer

Svelte is a compiler for building web applications from declarative components, and it converts those components into JavaScript that updates the DOM directly. The core library lives in packages/svelte, with client and server entry points at packages/svelte/src/index-client.js and packages/svelte/src/index-server.js. Compiler code sits under packages/svelte/src/compiler, while client runtime code under packages/svelte/src/internal/client handles reactivity, for example in packages/svelte/src/internal/client/reactivity/batch.js. Server-side rendering is handled in packages/svelte/src/internal/server/renderer.js, and packages/svelte/types/index.d.ts provides TypeScript declarations. By file count, the Application layer is the largest with 415 files, followed by Docs & Tooling with 135. To start reading, open packages/svelte/src/compiler/print/index.js or the entry points benchmarking/run.js and playgrounds/sandbox/run.js.

Files per layer in svelte6 layers.

Basis: Inferred · knowledge graph· as of 90ad4e8

Want this for your own codebase? Map your repo free

About this page

Get a page like this for your own codebase

Repowise built this map of sveltejs/svelte from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

sveltejs/svelte FAQ

What is svelte?

svelte is a compiler for building web applications from declarative components. It converts those components into JavaScript that updates the DOM directly.

How does svelte work?

svelte takes declarative components as input and compiles them into efficient JavaScript. That JavaScript surgically updates the DOM when the application state changes.

What language is svelte written in?

svelte is written mainly in JavaScript. The repository also contains TypeScript files and Svelte component files.

How is the svelte code organized?

svelte keeps its main library in packages/svelte. Client and server entry points are in packages/svelte/src/index-client.js and packages/svelte/src/index-server.js, and the compiler is under packages/svelte/src/compiler.

When should I use svelte?

Use svelte when you are building web applications from declarative components. It compiles those components into JavaScript that updates the DOM directly.

What license does svelte use?

svelte is released under the MIT license. It is an open source project whose development is supported by volunteers and donations.

Code health

8.7out of 10Excellent

Hotspots average 4.1, the place fixes pay off most.

Key features of svelte

  • Compiles declarative components into JavaScript that surgically updates the DOM.
  • Is an MIT-licensed open source project.
  • Accepts donations through Open Collective to cover expenses such as hosting costs.
  • Offers a Discord chatroom and a project website for learning more about it.

How sveltejs/svelte works

The core library is in packages/svelte, and its client and server entry points are packages/svelte/src/index-client.js and packages/svelte/src/index-server.js. Compiler code lives under packages/svelte/src/compiler, including packages/svelte/src/compiler/print/index.js. Client-side runtime code under packages/svelte/src/internal/client handles reactivity, for example in packages/svelte/src/internal/client/reactivity/batch.js. Server-side rendering is handled in packages/svelte/src/internal/server/renderer.js. The packages/svelte/types/index.d.ts file provides TypeScript type declarations, and the benchmarking and playgrounds directories contain the entry points benchmarking/run.js and playgrounds/sandbox/run.js.

The codebase has 9,905 files and 18,413 symbols in 4 modules, mostly JavaScript by code size, with the most files in Svelte. Code health is 8.7 out of 10, rated excellent.