ErickWendel/myownnode
概要
Bun? Deno? Node.js? Creating your own JavaScript Runtime using V8, Libuv and more
言語・ランタイム計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルCapivaraBR - Creating your own JavaScript runtime tutorial

Overview
CapivaraBR is a JavaScript runtime built on top of V8 Javascript Engine and Libuv
- Use the environment to follow the tutorial on a Gitpod snapshot
About
Welcome, this repo is part of my youtube video about Recreating the Node.js project from Scratch using V8, Libuv and C++
First of all, leave your star 🌟 on this repo.
Access our exclusive telegram channel so I'll let you know about all the content I've been producing
Running
- In the GitPod env you can run the hello world example by running the executable ./start.sh script.
Notes
It comes with
live reloadenabled forC++andJSfiles usingnodemonIt comes with a simple
Printfunction, a custom C++ function used as aconsole.logfunctionThe ./start.sh script generates a
binarycalledcapivara.- It works similarly to how
Node.jsworks.- By running
capivara index.jsit will read theJavaScriptcontent from the file and useV8to interpret it ndlibuvto wait for async events.
- By running
- It works similarly to how
Project uses
V8 v10.7.0Project uses
Libuv v1.xAll other dependencies are listed on scripts folder.
Examples
I left some file exmaples on examples folder in case you wanna check out how to create uv timers, uv threads, native cpp threads or the v8 custom print function.
Running the examples
- You can compile and execute examples by simply executing
make example-without-extension
For example executing the v8-print-hello.cpp:
make v8-print-hello
# Hello, World!...
Compiling binaries for other platforms
if you wanna compile binaries it by yourself, I left some scripts in case you wanna compile all binaries by yourself
Author
関連プロジェクトを探す
読み込み中…