MCPcopy Index your code
hub / github.com/emk/duktape-rs

github.com/emk/duktape-rs @v0.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.2 ↗ · + Follow
113 symbols 172 edges 14 files 29 documented · 26%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build Status

Documentation.

WORK IN PROGRESS.

A Rust wrapper for Duktape. Things to do before this is minimally useful:

  • [x] Handle non-UTF-8 strings.
  • [x] Call JavaScript functions by name.
  • [x] Define functions.
  • [x] Call specified Rust functions from JavaScript.
  • [x] Return errors from Rust to JavaScript.
  • [ ] Convert to use Encodable/Decodable everywhere.
  • [x] Convert parameters to use Encodable.
  • [ ] Replace Value with serialize::Json.
  • [ ] Convert return values to use Decodable.
  • [ ] Add nice macros.
  • [ ] Provide macro for calling functions.
  • [ ] Provide macro for defining functions.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 78
Function 18
Class 12
Enum 3
Interface 2

Languages

Rust96%
C++3%
C2%

Modules by API surface

src/encoder.rs44 symbols
src/decoder.rs26 symbols
src/context.rs23 symbols
src/errors.rs9 symbols
duktape_sys/src/bindings.rs3 symbols
duktape_sys/src/bindings.h3 symbols
src/types.rs1 symbols
duktape_sys/src/lib.rs1 symbols
duktape_sys/src/glue.c1 symbols
duktape_sys/src/generate.c1 symbols
duktape_sys/build.rs1 symbols

For agents

$ claude mcp add duktape-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page