Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(node): Implement running node in browser #112

Merged
merged 55 commits into from
Nov 14, 2023

Conversation

fl0rek
Copy link
Member

@fl0rek fl0rek commented Oct 20, 2023

closes #109

Add wasm-node which implements similar interface to Node but in JS.

One can run local server to serve it with command:

wasm-pack build --target web node-wasm --debug && cargo run -- --browser --network mocha

Then node can be accessed on localhost:9876. There's a preliminary web gui interface, but you'll probably want to look at console logs (F12 on chrome) to monitor node's progress.

@fl0rek fl0rek changed the title Implement running node in browser feat(node): Implement running node in browser Oct 20, 2023
@fl0rek fl0rek self-assigned this Oct 24, 2023
@fl0rek fl0rek force-pushed the feat/browser-node branch 2 times, most recently from eb3199b to e6c9161 Compare October 24, 2023 10:45
@fl0rek fl0rek marked this pull request as ready for review October 24, 2023 21:52
@fl0rek fl0rek requested review from oblique and zvolin October 24, 2023 21:52
types/src/network.rs Outdated Show resolved Hide resolved
types/src/network.rs Outdated Show resolved Hide resolved
celestia/src/lib.rs Outdated Show resolved Hide resolved
node/Cargo.toml Outdated Show resolved Hide resolved
wasm-node/Cargo.toml Outdated Show resolved Hide resolved
wasm-node/Cargo.toml Outdated Show resolved Hide resolved
wasm-node/Cargo.toml Outdated Show resolved Hide resolved
wasm-node/Cargo.toml Outdated Show resolved Hide resolved
wasm-node/rsc/index.html Outdated Show resolved Hide resolved
wasm-node/rsc/run_node.js Outdated Show resolved Hide resolved
wasm-node/rsc/run_node.js Outdated Show resolved Hide resolved
wasm-node/rsc/run_node.js Outdated Show resolved Hide resolved
wasm-node/rsc/run_node.js Outdated Show resolved Hide resolved
wasm-node/rsc/run_node.js Outdated Show resolved Hide resolved
node-wasm/src/node.rs Outdated Show resolved Hide resolved
Copy link
Member

@zvolin zvolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naisu 🥷

celestia/static/run_node.js Outdated Show resolved Hide resolved
fl0rek and others added 6 commits November 13, 2023 13:54
Co-authored-by: Maciej Zwoliński <mac.zwolinski@gmail.com>
Signed-off-by: Mikołaj Florkiewicz <mikolaj@florkiewicz.me>
Co-authored-by: Maciej Zwoliński <mac.zwolinski@gmail.com>
Signed-off-by: Mikołaj Florkiewicz <mikolaj@florkiewicz.me>
Co-authored-by: Maciej Zwoliński <mac.zwolinski@gmail.com>
Signed-off-by: Mikołaj Florkiewicz <mikolaj@florkiewicz.me>
@fl0rek fl0rek requested a review from oblique November 13, 2023 16:39
@oblique oblique requested a review from zvolin November 13, 2023 19:48
node-wasm/Cargo.toml Outdated Show resolved Hide resolved
node-wasm/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Member

@zvolin zvolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Co-authored-by: Yiannis Marangos <psyberbits@gmail.com>
Signed-off-by: Mikołaj Florkiewicz <mikolaj@florkiewicz.me>
Copy link
Member

@oblique oblique left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@oblique oblique merged commit 87855ce into eigerco:main Nov 14, 2023
5 checks passed
@github-actions github-actions bot mentioned this pull request Jan 9, 2024
This was referenced Jan 12, 2024
@fl0rek fl0rek deleted the feat/browser-node branch May 21, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run a node with syncer and header store in browser
3 participants