MCPcopy Index your code
hub / github.com/bvanjoi/bolt-ts

github.com/bvanjoi/bolt-ts @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
19,249 symbols 44,660 edges 4,339 files 2,195 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

bolt-ts

bolt-ts is a TypeScript compiler implemented in Rust. The current implementation heavily leverages code ported from the original TypeScript compiler(tsc).

Performance

When testing a subset of type-fest functionality, bolt-ts demonstrates:

  • 2.5× faster than ts-go
  • 5× faster than tsc (Benchmarked on Apple M3 Max with 36GB RAM. See typescript-compiler-bench for details)

Current Status

Core functionalities are operational but require refinement. Key pending improvements include:

  • Module Resolution: cache, exports/imports field support, node_modules/@types type definition resolution.
  • Type Checking: various edge-case bugs.
  • Output Generation: sourcemap generation, different module systems.
  • And others: js file processing, language service..

Community

For any questions about this project, connect on Discord.

Extension points exported contracts — how you extend this code

CSSStyleValue (Interface)
* The **`CSSStyleValue`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible thr [11 …
crates/libs/src/declared_file/lib.webworker.d.ts
GenerateGithubYaml (Interface)
(no doc) [6 implementers]
tools/build-github-ci/src/define_generate_yaml.rs
IObservable (Interface)
(no doc) [19 implementers]
tests/compiler/checkInfiniteExpansionTermination/index.ts
TyMap (Interface)
(no doc) [12 implementers]
crates/checker/src/ty/mapper.rs
VarLike (Interface)
(no doc) [8 implementers]
crates/ast/src/trait/var_like.rs
GetContainerFlags (Interface)
(no doc) [5 implementers]
crates/binder/src/container_flags.rs
CachedFileSystem (Interface)
(no doc) [2 implementers]
helper/fs/src/lib.rs
VisitorResult (Interface)
(no doc) [2 implementers]
crates/ast_visitor/src/lib.rs

Core symbols most depended-on inside this repo

contains
called by 1018
crates/libs/src/declared_file/lib.webworker.d.ts
print
called by 643
crates/optimize/src/emit/mod.rs
node
called by 494
crates/parser/src/lib.rs
iter
called by 491
crates/module_resolve/src/get_conditions.rs
map
called by 443
crates/libs/src/declared_file/lib.es5.d.ts
push
called by 440
crates/libs/src/declared_file/lib.es5.d.ts
get
called by 425
crates/libs/src/declared_file/lib.webworker.d.ts
union
called by 424
crates/libs/src/declared_file/lib.es2025.collection.d.ts

Shape

Method 7,648
Class 5,378
Function 3,516
Interface 2,391
Enum 316

Languages

TypeScript73%
Rust27%

Modules by API surface

crates/libs/src/declared_file/lib.webworker.d.ts1,571 symbols
crates/libs/src/declared_file/lib.es5.d.ts506 symbols
crates/optimize/src/ir/nodes.rs309 symbols
crates/checker/src/check/mod.rs288 symbols
crates/checker_errors/src/lib.rs210 symbols
crates/ast_visitor/src/visit.rs191 symbols
crates/libs/src/declared_file/lib.esnext.temporal.d.ts161 symbols
crates/libs/src/declared_file/lib.es2015.iterable.d.ts130 symbols
crates/optimize/src/emit/mod.rs116 symbols
crates/ast/src/stmt.rs114 symbols
crates/parser_errors/src/lib.rs102 symbols
crates/ast/src/expr.rs102 symbols

For agents

$ claude mcp add bolt-ts \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact