You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+48-14Lines changed: 48 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,22 @@ Javet (Java + V8) is a Java library that embeds Node.js and V8 JavaScript engine
10
10
11
11
### Core Components
12
12
13
-
-**V8Host**: Main entry point for creating V8/Node.js runtimes. Handles runtime lifecycle management and native library loading via `JavetLibLoader`.
14
-
-**V8Runtime/NodeRuntime**: The primary runtime interfaces. `NodeRuntime` extends `V8Runtime` with Node.js-specific functionality like `require()` support.
13
+
-**V8Host**: Main entry point for creating V8/Node.js runtimes. Handles runtime lifecycle management and native library loading via `JavetLibLoader`. Manages a daemon for runtime guards and statistics futures.
14
+
-**V8Runtime/NodeRuntime**: The primary runtime interfaces. `NodeRuntime` extends `V8Runtime` with Node.js-specific functionality like `require()` support. Represents a V8 isolate with a single context (Javet simplifies V8's multi-context model to 1 runtime = 1 isolate = 1 context).
15
15
-**Interop Layer**: Located in `src/main/java/com/caoccao/javet/interop/`, handles Java-JavaScript value conversion and binding.
16
16
-**Native Layer**: C++ JNI code in `cpp/jni/` directory bridges Java and the underlying V8/Node.js engines.
17
+
-**Engine Pool**: `JavetEnginePool` in `interop/engine/` provides pooling for expensive runtime creation. Use in production for performance.
18
+
-**Converters**: Located in `interop/converters/`, handle type conversion between Java and JavaScript (`JavetObjectConverter`, `JavetPrimitiveConverter`, `JavetProxyConverter`, `JavetBridgeConverter`).
17
19
18
20
### Key Packages
19
21
20
-
-`com.caoccao.javet.annotations`: Annotations for V8 binding (@V8Function, @V8Property, etc.)
22
+
-`com.caoccao.javet.annotations`: Annotations for V8 binding (@V8Function, @V8Property, @V8Getter, @V8Setter, etc.)
21
23
-`com.caoccao.javet.values`: V8 value types (V8ValueObject, V8ValueFunction, etc.)
22
-
-`com.caoccao.javet.interception`: Interceptors for debugging and logging
24
+
-`com.caoccao.javet.interception`: Interceptors for debugging and logging (`JavetStandardConsoleInterceptor`, `JavetJVMInterceptor`)
0 commit comments