rbtr-lang-svelte
Svelte support for rbtr. Optional plugin — install with
pip install rbtr[svelte]. Also hosts the shared single-file-component
machinery that rbtr-lang-vue reuses.
What it ingests
.svelte components. A component mixes several languages in one file, and
each part is indexed as itself:
- The markup template becomes one host doc-section chunk (named after the file), so component markup is searchable.
- A comment above the markup is its own chunk, so the note explaining what the component is for stays searchable.
- The
<script>and<style>blocks are delegated to their embedded language by injection (see below) — not re-parsed here.
Chunks produced
<script lang="ts">
import { store } from "./store"; // → import (typescript)
export let name = "world"; // → variable "name" (typescript)
</script>
<h1 class="greeting">Hello {name}</h1> <!-- → doc_section "Greeting" (svelte host) -->
<style lang="scss">
.greeting { color: red; } // → class ".greeting" (scss)
</style>
Embedded / injected chunks
The lang attribute picks the dialect; a bare block uses the fallback:
<script lang="ts">→ TypeScript, bare<script>→ JavaScript<style lang="scss">→ SCSS,lang="less"→ Less, bare<style>→ CSS
These chunks carry their embedded language; the delegated extraction runs
only when the corresponding plugin (e.g. rbtr-lang-javascript,
rbtr-lang-css) is installed.
Grammar & dependencies
Uses the tree-sitter-svelte grammar. Ships chunk_sfc and injections.scm,
which rbtr-lang-vue imports for .vue files (they share the SFC shape).
Metadata
Release files for rbtr-lang-svelte 2026.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rbtr_lang_svelte-2026.9.0.tar.gz | 7.5 kB | Without provenance | Details for rbtr_lang_svelte-2026.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rbtr_lang_svelte-2026.9.0-py3-none-any.whl | Python 3 | none | any | Details for rbtr_lang_svelte-2026.9.0-py3-none-any.whl |
Total release size: 19.5 kB
Release files / rbtr_lang_svelte-2026.9.0.tar.gz
| Download URL | rbtr_lang_svelte-2026.9.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8433c4f2bb5fafeff8849179c8f6c22b066f6c9d32af6db9bc855a6ad57b963a
|
|
BLAKE2b-256 checksum How to use checksums |
41e95b1f91f4e0c07afd7ea38c0b5c15a1dc5a0c932b585c1e7450672aeb000c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / rbtr_lang_svelte-2026.9.0-py3-none-any.whl
| Download URL | rbtr_lang_svelte-2026.9.0-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f62341258ad5b2b2bca4b2b4ffd50e8dca637073f773befbcc1a9d43b895eeb
|
|
BLAKE2b-256 checksum How to use checksums |
6ceb260839cdc9822ceafd0bb65678e15d90220872ddbea2fb48ae02b0c93a6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for rbtr-lang-svelte 2026.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.