/wvm-gateway

ARIO Arweave gateway for weaveVM

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

logo

About

This repository is an implementation of the ar-io-node gateway's codebase, offering a tailored implementation designed to provide the weaveVM (WVM) with scalability and high-performance access to the Permaweb.

Gateway base endpoint: https://wvm-gateway.xyz/

Dev Workflow

yarn install // install dependencies

yarn db:migrate up // initialize the SQLite DB

yarn lint:check // run lint check

yarn test // run the tests

yarn start

Starting at an arbitrary block (only works immediately after initial DB migration):

START_HEIGHT=888888 yarn start

Dev Docs

Docker

Standalone AR.IO Node

You can run the ar.io gateway as a standalone docker container:

docker build . -t ar-io-core:latest
docker run -p 4000:4000 -v ar-io-data:/app/data ar-io-core:latest

To run with a specified start height (sets height on first run only):

docker run -e START_HEIGHT=800000 -v $PWD/data/:/app/data ar-io-core:latest

Envoy & AR.IO Node

You can also run [Envoy] along side an ar.io node via [Docker Compose]. Envoy will proxy routes to arweave.net not yet implemented in the ar.io node.

docker compose up --build

or:

docker-compose up --build

Once running, requests can be directed to Envoy server at localhost:3000.

Credits

This repository is an implementation of the ar-io-node codebase and is licensed under the GNU License