MCPcopy Index your code
hub / github.com/denoland/roll-your-own-javascript-runtime

github.com/denoland/roll-your-own-javascript-runtime @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
13 symbols 15 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

runjs

A repository for the Roll your own JavaScript runtime blog post series:

UPDATE 2023-04-26

This repo has been updated to use snapshotting to speed up startup times.

Andy and Leo add snapshots to speed up startup times for a custom JavaScript runtime Watch the corresponding video.

UPDATE 2023-02-07

This repo has been updated to support loading JavaScript and TypeScript files.

$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
     Running `target/debug/runjs ./test.js`
[out]: "Hello" "runjs!"
[err]: "Boom!"
[err]: "Unable to read file" "./log.txt" {"code":"ENOENT"}
[out]: "Read from a file" "./log.txt" "contents:" "I can write to a file."
[out]: "Removing file" "./log.txt"
[out]: "File removed"

Andy and Bartek add TypeScript support to a custom JavaScript runtime on YouTube Watch the corresponding video.

Core symbols most depended-on inside this repo

argsToMessage
called by 2
src/runtime.js
run_js
called by 1
src/main.rs
main
called by 0
build.rs
op_read_file
called by 0
src/main.rs
op_write_file
called by 0
src/main.rs
op_remove_file
called by 0
src/main.rs
op_process_task
called by 0
src/main.rs
op_fetch
called by 0
src/main.rs

Shape

Function 10
Method 2
Class 1

Languages

Rust92%
TypeScript8%

Modules by API surface

src/main.rs11 symbols
src/runtime.js1 symbols
build.rs1 symbols

For agents

$ claude mcp add roll-your-own-javascript-runtime \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact