Better HN
topnewbestaskshowjobs
Log inSign up

jonathanberi

11 karma · joined Jan 24, 2014 (12y ago) · 20 submissions

Submissions

comment 1mo ago · link · parent

Browsers can't open a TCP socket. That keeps biting anything that brings its own network stack into a tab: emulated VMs, WebAssembly builds of an OS, user-space TCP/IP like smoltcp or lwIP. I kept writing one-off relays for these, so I built a proper one and have now open-sourced it.

How it works: the page sends raw Ethernet frames over a WebSocket. The relay gives it a DHCP lease and DNS, and NATs IPv4 TCP and UDP out to the internet. Sessions from the same account share a private network, so two VMs in two tabs can reach each other. A small client library (npm: relaynet) handles reconnects and heartbeats.

Things people have done with it: a Linux VM in a tab running apt and git, a browser SSH client reaching port 22 directly, a WebUSB device shared with a Linux machine over USB/IP.

Self-hosting is the main point of this release:

    git clone https://github.com/beriberikix/relaynet
    cd relaynet && docker compose up
That runs the relay and the site with accounts, API tokens and an operator panel. It needs no third-party services. Add a domain for automatic HTTPS, and any OpenID Connect provider if you want SSO. Prebuilt images are on GHCR with build provenance.

- License: Apache-2.0. The relay engine is MIT, a fork of rootlessRelay that adds accounts, orgs, quotas and metering.

- Abuse controls: outbound port 25, private ranges and the usual UDP amplification ports are blocked by default. Every self-hosted relay's egress comes from your own IP, so you own the abuse reports.

- Limits: IPv4 only, and throughput is modest. On a small shared-CPU VM, CPU is the bottleneck (about 1.4 MiB/s in total under load). Profiling the user-space TCP path is next.

There's also a hosted instance at https://relaynet.network with a free tier, if you just want to try a client against it. A Zephyr RTOS build in an x86 emulator is a quick no-account demo: https://beriberikix.github.io/zephyr-v86/

Most interested in hearing from anyone building browser-based VMs, shells, debuggers or emulators, and what breaks.

2.

Show HN: Relaynet – open-source relay that gives browser tabs a real network(github.com ↗)

1 points · by jonathanberi · 1mo ago · 1 comment

comment 1y ago · link · parent

That works sometimes. It can be flaky.

4.

Claude Code Spec Workflow (Inspired by AWS Kiro)(github.com ↗)

6 points · by jonathanberi · 1y ago · discuss

comment 1y ago · link · parent

https://github.com/wader/fq is "jq for binary formats."

comment 1y ago · link · parent

It's always DNS!

comment 1y ago · link · parent

Hi folks I'm the one at CES. If you're here, I'd love to chat about _how_ we built this with https://golioth.io. Or at least give you a sticker of our mascot, Echo!

8.

Flash/Debug over USB with Docker on Windows and macOS(blog.golioth.io ↗)

2 points · by jonathanberi · 1y ago · discuss

9.

USB Access from Docker on Windows and macOS(blog.golioth.io ↗)

6 points · by jonathanberi · 2y ago · discuss

comment 2y ago · link · parent

It's also worth noting CDDL [1], which adds schema-like utility to CBOR (and technically JSON.) We've started to use it in more places where we use CBOR.

[1] https://datatracker.ietf.org/doc/rfc8610/

comment 2y ago · link · parent

I'm not sure I understand - can you expand on that?

comment 2y ago · link · parent

CEO of Golioth here - we recently launched a whole suite of AI features for embedded device developers (with Hugging Face and more) - check out the launch details at https://blog.golioth.io/golioth-for-ai/

13.

An Introduction to the Five Clouds of IoT(blog.golioth.io ↗)

1 points · by jonathanberi · 4y ago · discuss

14.

Program your microcontrollers from WSL2 with USB support(blog.golioth.io ↗)

3 points · by jonathanberi · 4y ago · discuss

15.

Remote Zephyr RTOS Development Using Segger Tunnel and a Raspberry Pi(blog.golioth.io ↗)

4 points · by jonathanberi · 4y ago · discuss

comment 5y ago · link · parent

Noted, thanks!

comment 5y ago · link · parent

Thank you dang - we'd love to do a Show HN! We'll also take you up on your kind offer to review our draft :)

P.S. we're currently in beta but anyone who is interested can try Golioth right away @ https://console.golioth.io. We also have Discord server where folks in our community hangout out - https://discord.gg/shmgwqZuqM

comment 5y ago · link · parent

(CEO here) https://golioth.io is an IoT development platform that provides different cloud services for building connected hardware (security, software updates, etc.) As the creator of hardware, you write the code that runs on the hardware. So you need some way to develop that code. Setting up the compiler, build system, debugger, etc. is always a challenge, even for experienced developers.

Gitpod allowed us to build upon their container-based environment and configure it to work out of the box with all the things a developer needs to build, flash and debug hardware using Zephyr, a popular software stack & operating system for IoT devices.

So our main value is our developer platform - plus our custom-developed Gitpod configuration. We encourage you to check both out at https://golioth.io & https://gitpod.io :)

19.

Gcloud-node – A Google Cloud Platform Client Library for Node.js(github.com ↗)

4 points · by jonathanberi · 12y ago · discuss