https://github.com/draeder/timebeam
A TOTP constrained 1:1 secure tunnel built on hyperbeam
https://github.com/draeder/timebeam
Last synced: about 1 month ago
JSON representation
A TOTP constrained 1:1 secure tunnel built on hyperbeam
- Host: GitHub
- URL: https://github.com/draeder/timebeam
- Owner: draeder
- License: mit
- Created: 2022-03-23T16:37:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-31T12:15:27.000Z (about 3 years ago)
- Last Synced: 2025-03-13T09:55:00.985Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Timebeam
> A TOTP constrained 1:1 secure tunnel built on hyperbeam
## Status: WIP
Timebeam is minimally viable level as of this version.# Install
`npm i timebeam`# Example
```js
const Timebeam = require('timebeam')let timebeam = new Timebeam({
secret: 'some super secret secret',
topic: 'some secure topic identifier',
clientPort: 8040,
serverPort: 8041
})timebeam.on('connected', (timebeam)=>{
console.log('Timebeam Connected!')
})
timebeam.on('close', ()=>{
console.log('Timebeam closed')
})// Simple terminal chat app
timebeam.on('data', data => {
console.log(data)
})
process.stdin.on('data', data => {
timebeam.send(data)
})// Telnet to the client port to send messages to the server
// Telnet to the server port to send messages to the client
```# Todo
- Add reconnection logic on failed / dropped connections
- Add SSH support
- Add additional discovery mechanisms and transports (Gun, WebTorrent)
- Add browser support