Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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" and export { 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.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for rbtr-lang-javascript 2026.9.0.dev0
File Interpreter ABI Platform
rbtr_lang_javascript-2026.9.0.dev0-py3-none-any.whl Python 3 none any Details

Release files / rbtr_lang_javascript-2026.9.0.dev0-py3-none-any.whl

Download URL rbtr_lang_javascript-2026.9.0.dev0-py3-none-any.whl
Size 28.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac0388b39d7b9c6a9893f87a243b68fc8685d07f0ff679ff7c7177e3ac1473e5
BLAKE2b-256 checksum
How to use checksums
4f467eea42e4de0f35930f5db1ff71442ceb20552aaf142a71fd331f3d7896ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page