An open API service indexing awesome lists of open source software.

https://github.com/imagineeeinc/bone

🦴A super light, toy Javascript runtime based on deno🦴
https://github.com/imagineeeinc/bone

deno javascript javascript-runtime js-runtime rust

Last synced: 2 months ago
JSON representation

🦴A super light, toy Javascript runtime based on deno🦴

Awesome Lists containing this project

README

        




Bone


🦴A super light, toy Javascript runtime🦴

Bone is a bare "*bones*" **javascript runtime** based on the deno runtime.

Deno being bassed on rust and its runtime being avalible to anyone made me wonder if I can make a **"javascript runtime"** with the heavy lifting done by some one else, the someone else being the **amazing** [deno team](https://github.com/denoland/).

Usage

Make sure to have [Rust installed](https://www.rust-lang.org/tools/install). You can follow my [super simplified guide](https://github.com/imagineeeinc/repo-o-knowledge/tree/main/rust#instalation-on-windows) to setup on windows.

Then clone this repo with
```bash
git clone https://github.com/imagineeeinc/bone.git
```

run:
```bash
# for testing out
cargo run
# with the example js file
cargo run -- -i examples/hello.js
# examples avalible in the examples folder

# Making a production build
cargo build --release
```

Educational

This project is mainly an experiment and for educational purposes, on how to use js in your rust project easily. The main branch is using the `Deno runtime` module that means it has browser api like console log and fetch and it also means the runtime is using the `std` if you are planning on using deno in a `no std` enviornment, checkout the [deno_core branch](https://github.com/imagineeeinc/bone/tree/deno_core)

License

This project is under [MIT License](https://github.com/imagineeeinc/bone/blob/main/LICENSE)