Javet — An awesome way of embedding Node.js and V8 in Java.

Major Features

  • 🐧Linux + 🖥️Windows
  • Node.js v14.16.1 + V8 v9.0.257
  • Dynamic switch between Node.js and V8
  • Exposure of the majority of V8 API in JVM
  • JS function interception
  • Native BigInt and Date
  • Javet engine pool
  • Easy spring integration
  • Live debug with Chrome DevTools

Quick Start




Gradle Kotlin DSL


Gradle Groovy DSL

implementation 'com.caoccao.javet:javet:0.8.7'

Hello Javet

// Node.js Mode
try (V8Runtime v8Runtime = V8Host.getNodeInstance().createV8Runtime()) {
System.out.println(v8Runtime.getExecutor("'Hello Javet'").executeString());
// V8 Mode
try (V8Runtime v8Runtime = V8Host.getV8Instance().createV8Runtime()) {
System.out.println(v8Runtime.getExecutor("'Hello Javet'").executeString());




Amateur programmer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium


I Used The Web For A Day With JavaScript Turned Off

Dojo Builds For Better Performance

Node.js & MySQL Stored Procedures (Sprocs)

Eliminate Boilerplate with React Native Templates

Overview of React Hooks

Background Fetch API: Get Ready To Use It!

Building a Node Express proxy API for Elasticsearch

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sam Cao

Sam Cao

Amateur programmer

More from Medium

My first look at gRPC

Complete guide for relations (OneToMany, ManyToMany, OneToOne …) on NestJs (GraphQl and Rest)

SOLID Design Principles

How to store user passwords in a database?