Proof of Concept for npm:ink in the Browser
bun i
bun dev- We use
xterm.jsto provide a full terminal emulator in the browser. - We implement the subset of the
process.stdinandprocess.stdoutAPIs required byinkby redirecting them toxterm.js(seesrc/compat/polyfills.ts). - We use
rsbuildto apply the polyfills and replace the implementation of problematic Node.js packages (seersbuild.config.ts).