RepositoryRust
pheuter

pheuter/svelte-check-rs

Sunsetted / archived. Rust Svelte 5 checker (Jan–Sep 2026) that helped inspire upstream native checking. Use official svelte-check; see README.

133stars
10forks
0issues
2views

svelte-check-rs

A high-performance, Rust-powered diagnostic engine designed as a drop-in replacement for svelte-check.

Note: This tool only supports Svelte 5+. For Svelte 4 or earlier, use the official svelte-check.

Features

  • 🚀 Fast: 10-100x faster than svelte-check through Rust's zero-cost abstractions and parallel processing
  • ✅ Accurate: Matches svelte-check diagnostics, including Svelte compiler errors via bun
  • 🔄 Compatible: Drop-in CLI replacement, identical output formats
  • 🔧 Maintainable: Clean separation of concerns, comprehensive test suite

Installation

npm install -D svelte-check-rs

The npm package uses platform-specific optional dependencies to provide the binary. If you install with --no-optional, re-enable optional dependencies or use the shell/PowerShell installers below.

Then add to your package.json scripts:

{
  "scripts": {
    "check": "svelte-check-rs"
  }
}

Or run directly with npx:

npx svelte-check-rs

macOS / Linux

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/pheuter/svelte-check-rs/releases/latest/download/svelte-check-rs-installer.sh | sh

Windows (PowerShell)

irm https://github.com/pheuter/svelte-check-rs/releases/latest/download/svelte-check-rs-installer.ps1 | iex

Usage

# Check current directory
svelte-check-rs

# Check specific directory
svelte-check-rs --workspace ./my-project

# Watch mode
svelte-check-rs --watch

# Different output formats
svelte-check-rs --output json
svelte-check-rs --output machine
svelte-check-rs --output human-verbose

Requirements

svelte-check-rs expects tsgo to be available from your workspace node_modules. Install it via:

npm install -D @typescript/native-preview

Some package managers (for example, bun) may auto-install peer dependencies, but explicit installation is always supported.

CLI Options

OptionDescription
--workspace <PATH>Working directory (default: .)
--output <FORMAT>Output format: human, human-verbose, json, machine
--tsconfig <PATH>Path to tsconfig.json
--threshold <LEVEL>Minimum severity: error, warning
--watchWatch mode
--preserveWatchOutputDon't clear screen in watch mode
--fail-on-warningsExit with error on warnings
--ignore <PATTERNS>Glob patterns to ignore
--skip-tsgoSkip TypeScript type-checking
--tsgo-versionShow installed tsgo version + path
--bun-versionShow installed bun version + path
--bun-update[=<VER>]Update bun to latest or specific version
--debug-pathsShow resolved binaries (tsgo, bun, svelte-kit)

Caching: svelte-check-rs writes transformed files and tsgo incremental build info to node_modules/.cache/svelte-check-rs/. Cache invalidation is automatic: dependency changes (lockfiles, node_modules markers) clear the entire cache, and source file changes are handled via content-addressed writes.

Project Structure

crates/
├── svelte-parser/        # Lexer + parser + AST types
├── source-map/           # Position tracking and mapping
├── svelte-transformer/   # Svelte → TypeScript transformation
├── svelte-diagnostics/   # A11y and component checks
├── tsgo-runner/          # tsgo process management
├── bun-runner/           # bun-managed Svelte compiler bridge
└── svelte-check-rs/      # CLI binary

Development

# Build all crates
cargo build

# Run tests
cargo test

# Run clippy
cargo clippy --all-targets -- -D warnings

# Format code
cargo fmt

Upstream parser parity sweep

To compare this parser against Svelte's full parser suites (parser-modern + parser-legacy), run the optional ignored test with a local checkout of sveltejs/svelte:

git clone https://github.com/sveltejs/svelte.git /tmp/svelte
SVELTE_REPO=/tmp/svelte cargo test -p svelte-parser test_upstream_svelte_parser_samples -- --ignored

The harness runs every sample under parser-modern and parser-legacy, enabling loose mode for samples whose directory name starts with loose- (mirroring upstream's runner).

License

MIT License - see LICENSE for details.

Similar Projects

Discover other similar projects and AI models.

RepositoryPHP
timegridio/timegrid

Free, open-source, online appointments platform based on Laravel PHP Framework.

972
Apr 19, 2023
RepositoryRust
xou816/spot

UNMAINTAINED! Please check out active forks

2.4k
Oct 13, 2025
RepositoryRust
microsoft/azure-devops-rust-api

DEPRECATED Rust API crate for the Azure DevOps API

75
Oct 26, 2026
RepositoryJavaScript
jscs-dev/node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)

4.9k
Mar 23, 2024
RepositoryTypeScript
ArthurHeitmann/arctic_shift

Making Reddit data accessible to researchers, moderators and everyone else. Interact with the data through large dumps, an API or web interface.

2.0k
Nov 14, 2026
RepositoryRuby
Telefonica/Eternalblue-Doublepulsar-Metasploit

Module of Metasploit to exploit the vulnerability Eternalblue-Doublepulsar.

1.2k
Mar 31, 2021
RepositoryShell
mozilla-b2g/B2G

DEPRECATED - Boot to Gecko aims to create a complete, standalone operating system for the open web.

1.1k
Jul 6, 2020
RepositoryPHP
jamierumbelow/codeigniter-base-model

⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity

1.0k
Apr 4, 2018
RepositoryGo
Zibbp/ganymede

Twitch VOD and Live Stream archiving platform. Includes a rendered and real-time chat for each archive.

1.0k
Dec 1, 2026