rbtr-lang-javascript
JavaScript, TypeScript, and TSX support for rbtr. A default
plugin — installed with rbtr itself (pip install rbtr).
What it ingests
One plugin, three ids across two grammars: javascript (.js / .mjs /
.jsx), typescript (.ts), and tsx (.tsx). A symbol's leading JSDoc is
folded into its chunk content.
- Functions — declarations, generators, and arrow functions bound to a const; class/object methods (class members scoped to their class).
- Classes — classes, and TypeScript interfaces, enums, type aliases, and namespaces (a namespace also scopes its members).
- Variables — module-level
const/let(including destructuring). - Re-exports —
export * from "./c"andexport { x } from "./b"read from another module, so they resolve as imports do. A consumer reaches a symbol through them without ever naming the file that defines it. - Imports —
import,import type, namespace, default, and side-effect imports → import chunks with resolved module + names, for cross-file edges.
Chunks produced
function greet(name) { … } // function "greet"
const add = (a, b) => a + b; // function "add"
class Button { render() {} } // class "Button"; method "render" scope "Button"
export const MAX = 100; // variable "MAX"
import { x } from "./x"; // import, metadata {module: "./x", names: "x"}
Embedded / injected chunks
None of its own — JavaScript/TypeScript are embedded by the HTML, Markdown,
and SFC (Vue/Svelte) plugins, which delegate <script> blocks and fenced code
here.
Grammar & dependencies
Uses the tree-sitter-javascript and tree-sitter-typescript grammars. No
runtime dependency on other language plugins; the test suite dev-depends on
rbtr-lang-css so the sample's styles.css extracts and the cross-file edges
snapshot.
Metadata
Release files for rbtr-lang-javascript 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 | |
|---|---|---|---|
| rbtr_lang_javascript-2026.9.0.tar.gz | 18.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbtr_lang_javascript-2026.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.1 kB
Release files / rbtr_lang_javascript-2026.9.0.tar.gz
| Download URL | rbtr_lang_javascript-2026.9.0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac3641aa079986800506918a4988b394b68b41795dc45394f5ba7bb3440f0d20
|
|
BLAKE2b-256 checksum How to use checksums |
05be3c23c463373982ad75b29f1e59fc4eb854b86dd5049ebc4a777c9bb6895b
|
| 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_javascript-2026.9.0-py3-none-any.whl
| Download URL | rbtr_lang_javascript-2026.9.0-py3-none-any.whl |
|---|---|
| Size | 28.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1a1c58d180236128b95fc5a3586f66bbdb052a93608d3b86bbf9a22ec8cc06f
|
|
BLAKE2b-256 checksum How to use checksums |
9e6e03d22609abad11c173cb3621f761d453deee1895a81909591247a73d76f2
|
| 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}
|