Skip to content

v57/hub-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Start hub process

import { Hub } from 'hub-lite'
new Hub()

Create hub service

import { Service } from 'hub-service'
new Service().post('hash/sha256', body => new Bun.SHA256().update(body).digest('hex')).start()

Client api

import { Client } from 'hub-client'
const client = new Client()
const hash = await client.post('hash/sha256', 'Hello World')
console.log(hash)

Security

Hub lite doesn't have any built in security

  • Designed to run on isolated servers
  • Always listens to 127.0.0.1
  • Anyone who has access to Hub port can make a service
  • There is no authorization

About

Connect your stuff together

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors