Featured answer
Give me an overview of svelte
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.
| Layer | Files |
|---|---|
| Application | 415 |
| Types | 6 |
| Data | 5 |
| Config | 14 |
| Utility | 45 |
| Docs & Tooling | 135 |
Basis: Inferred · knowledge graph· as of 90ad4e8