Guava Term
Interact with your Vercel deployment's build container through it's bash terminal.

github.com
phukon/guava-term
Interact with your Vercel deployment's build container through it's bash terminal.
Interact with your Vercel deployment's build container through it's bash terminal
This project enables remote interaction with a Vercel Build container through it's bash terminal using child processes. I initially wrote this to explore the remote environment and use the /temp directory of a Vercel Build Docker container.
For a Next.js implementation, check guava-next
HTTP implementation
dir: plain-http + root index.js
Everything is stateless on the HTTP implementation. The child process is killed after every command or should I say for every new command, a new child process is spun up.
WebSocket implementation
dir: websocket
All commands are piped to the same child process.
Getting Started
To set up and run the application, follow these steps:
HTTP
pnpm install- Set
HOST_NAMEin.env - Then
node index.jsto spin up the server. - Finally
node plain-http/hclient.jsto start the client.
Websocket
- Run
node websocket/index.jsto spin up the server. - Point to your server address in
websocket/client.js - Then
node websocket/client.jsto use the websocket client.
Usage
Server Side
-
Run the server:
node hclient.jsThe server will start listening on port 8080.
Client Side
-
Run the client:
node client.jsThis will prompt you to enter a command.
-
Enter the desired command and press Enter.
The command will be sent to the server, executed in a bash terminal, and the output will be displayed in the client console.