![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@xyo-network/api-xyo-nodejs
Advanced tools
The main API for accessing XYO network information using GraphQL.
Install Node 10.x or later from: NodeJs
sudo npm install @xyo-network/api-xyo-nodejs -g --unsafe-perm=true
xyo-api start
Install Node 10.x or later from: NodeJs
npm install https://github.com/XYOracleNetwork/api-xyo-nodejs
npm run build
npm run start
Install the Xyo Api in a Docker and start the server at the end.
Note: There currently are quite a few build errors/warnings generted from dependencies that can safely be ignored, but should addressed in the future.
docker image build -t xyonetwork-api-xyo-nodejs-install:latest https://raw.githubusercontent.com/XYOracleNetwork/api-xyo-nodejs/master/docker/install/Dockerfile
docker run -p 12001:12001 xyonetwork-api-xyo-nodejs-install:latest
xyo-api <cmd> [opt]
<cmd>: commands
[opt]: options
start Start the Api Server
-g, --graphql [n] The http port to listen on for graphql connections
(default = 12001)
-d, --diviner [s] The url of the seed diviner to contact
(default = http://diviners.xyo.network:12002)
xyo-api start -g 9090 -d http://localhost:9099
Only for internal XY Company use at this time
Made with ❤️ by XYO
FAQs
Main XYO API Interface
We found that @xyo-network/api-xyo-nodejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.