peerless
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

👑 Peerless

🚨 This isn't implemented yet 🚨

A web server that runs inside your web browser

// window1.html
const server = new Server();
 
console.log(await server.endpoint); // unique-generated-code-abcde
 
for await (const { message, reply } of server) {
  reply('Hello, ' + message);
}
// window2.html
const client = new Client('unique-generated-code-abcde');
 
const response = await client.send('Peerless');
 
console.log(response);
// Hello, Peerless

[todo: video]

Good Stuff 👌:

  • peer-to-peer – direct connection between browsers (fast!)
  • 1:N – let loads of people connect to you
  • streaming – for fun/interactive UIs

Readme

Keywords

none

Package Sidebar

Install

npm i peerless

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

5.2 kB

Total Files

12

Last publish

Collaborators

  • benjaminbenben