A high-level P2P networking API built on-top of the Hypercore Protocol and the Atek Cloud.
npm install tangerine-pietangerine-pie) is a high-level networking library powered by the Hypercore Protocol and Atek Cloud.
sh
npm i tangerine-pie
`
How-Tos
$3
server.js
`js
import * as TangerinePie from '../src/index.js';
console.log('Starting a web server in the current directory.');
(async () => {
const publicKey = await TangerinePie.serve();
console.log(Public key: ${publicKey});
})();
`
$3
server.js
`js
import * as TangerinePie from '../src/index.js';
console.log('Hosting the minecraft server.');
(async () => {
const publicKey = await TangerinePie.bind(25565);
console.log('Public key:', publicKey);
})();
`
client.js
`js
// usage: node examples/minecraft-server-join.js
import * as TangerinePie from '../src/index.js';
console.log('Joining the minecraft server.');
(async () => {
const publicKey = await TangerinePie.bind(25565, process.argv[2]);
console.log('Public key:', publicKey);
})();
``