Repository navigation
feat(server): add Go streaming adapter with embedded V8 - #63
Merged
Marcisbee merged 3 commits intoOct 22, 2026
Merged
Conversation
Marcisbee
marked this pull request as ready for review
October 22, 2026 15:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Go HTTP adapter that runs Radi TSX in embedded V8 and resolves asynchronous component data through allowlisted Go operations, including an executable Flop example. Responses stream in order with socket backpressure, bounded admission and data work, cancellation, deadlines, error recovery, and coordinated shutdown. Each request gets fresh JavaScript state; workers reuse compiled source without persisted code caching.
Includes a Go-based TSX bundler, npm
radi/goexport, pinned dependencies, Linux amd64 build/test workflow, and operating/release instructions. This delivers the Radi adapter; it does not deploy a consumer application.Includes the latest master documentation site. The public guide now has a Go/V8 walkthrough, TSX bridge API reference and navigation entries. The detailed Go API/configuration guide is published with the Markdown index and linked from the server-rendering guide. The docs browser check verifies Markdown discovery and complete examples; desktop rendering and mobile overflow were checked in the actual site.
Validation: real HTTP early-shell, Unicode/escaping, Flop reads, disconnect, slow-reader write timeout, overload/shutdown, parallel workers, operation failures/panics, request isolation, infinite execution, heap-loop interruption, size limits and recovery. Go race checks pass. Three 60-second runs at 16 clients completed 370,631 verified responses with zero failures. Existing 315 client and 10 server tests pass; npm package builds and exports
radi/go.Limits: trusted application code only. V8 heap limits are best effort and native/large-allocation OOM can terminate the process; use external memory limits and a restart policy. Go operations must cooperate with cancellation; synchronous Flop reads can only check cancellation before/after the read. One worker handles one stream at a time, including I/O waits; configure workers/queue for the application workload. The load results are not a capacity SLA or comparable to the earlier buffered benchmark.