docs: record the embedding spike - the official path is vt + own renderer - #26
Merged
Conversation
…erer The spike (repo datactx-app, brand-independent name pending the rename) proved the toolchain and corrected the plan before any product code: - There is no official Swift package for the full GhosttyKit render path, only third-party binary redistributions of an unstable API. The official embedding path today is libghostty-vt plus your own renderer, demonstrated by ghostty-org/ghostling (official, MIT) - and ghostty's build emits a ready-made ghostty-vt.xcframework, so no third-party repackaging is needed. - Verified here: ghostling builds from source (Zig pinned 0.15.x) and runs; the spike app builds and runs with ghostty-vt probe simd=true roundTrip=true. - Architecture: SwiftTerm pane behind a TerminalPane protocol, libghostty-vt linked and probed but not rendering. The renderer swap becomes an implementation project once the API stabilizes. - cmux was not studied and did not need to be: ghostling is official and MIT, so the GPL-adjacency question never arises.
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.
What
Records ROADMAP step 8 phase 2 (the embedding spike) as done, with the findings that corrected the plan before any product code was written.
The correction
The plan said "GhosttyKit pane via libghostty-spm". That package does not exist: there is no official Swift package for the full GhosttyKit render path, only third-party binary redistributions of an API whose own header warns it is unstable. The official embedding path today is libghostty-vt (the state machine) + your own renderer, demonstrated by
ghostty-org/ghostling(official, MIT, active) - and ghostty's own build emits a ready-madeghostty-vt.xcframeworkwith a modulemap, so no third-party repackaging is needed at all.What was proven on this machine
Swift <-> Zig interop with the official artifact works: create a terminal, feed VT bytes through the parser, free.
The architecture that follows
SwiftTerm pane behind a
TerminalPaneprotocol - nothing else may import a terminal library - with libghostty-vt linked and probed but not yet rendering. When the full embedding API stabilizes, the swap is an implementation project, not a feasibility question.cmux was not studied and did not need to be: ghostling is official and MIT, so the GPL-adjacency question never arises.
Spike repo:
~/dev/personal/projects/datactx-app(local; brand-independent name pending step 9).🤖 Generated with Claude Code
https://claude.ai/code/session_01CKZ9UVgw2Mhiu6T5YAG7k6