{"id":24736544,"url":"https://github.com/phukon/guava-next","last_synced_at":"2026-04-11T17:04:29.448Z","repository":{"id":230457908,"uuid":"778947817","full_name":"phukon/guava-next","owner":"phukon","description":"Interact with your Vercel deployment's build container through it's bash terminal.","archived":false,"fork":false,"pushed_at":"2024-03-29T20:56:33.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T21:26:16.032Z","etag":null,"topics":["bash","linux","terminal"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phukon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-28T18:15:31.000Z","updated_at":"2024-03-29T20:58:21.000Z","dependencies_parsed_at":"2024-03-29T21:41:05.761Z","dependency_job_id":"4f275d12-7af8-45f9-91ce-7b171ffaaa95","html_url":"https://github.com/phukon/guava-next","commit_stats":null,"previous_names":["phukon/guava-next"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phukon%2Fguava-next","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phukon%2Fguava-next/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phukon%2Fguava-next/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phukon%2Fguava-next/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phukon","download_url":"https://codeload.github.com/phukon/guava-next/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244992879,"owners_count":20543877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","linux","terminal"],"created_at":"2025-01-27T21:26:12.803Z","updated_at":"2026-04-11T17:04:29.421Z","avatar_url":"https://github.com/phukon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\" Interact with your Vercel deployment's build container through it's bash terminal.\" src=\"https://github.com/phukon/guava-next/assets/60285613/c860bcfa-49e2-41ce-86cb-d2b7373d2590\"\u003e\n\n\u003ch3 align=\"center\"\u003eguava-term + Next.js\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n    Interact with your Vercel deployment's build container through it's bash terminal\n    \u003cbr /\u003e\n    \u003ca href=\"#http-implementation\"\u003e\u003cstrong\u003eHTTP\u003c/strong\u003e\u003c/a\u003e ·\n    \u003ca href=\"\"\u003e\u003cstrong\u003eguava-term\u003c/strong\u003e\u003c/a\u003e ·\n\u003c/p\u003e\n\n\u003cbr/\u003e\n\nThis 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. {see more @ [Vercel Builds](https://vercel.com/docs/deployments/builds) }\n\nFor a simple Node.js implementation with http, and webhook, check [guava-term](https://github.com/phukon/guava-term)\n\n## HTTP implementation\n\nEverything 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.\n\n### Extra feature\n- Patched the `/node_modules/next/dist/server/lib/start-server.js` to enable rich logging.\n- The logs are stored in your OS's temp dir.\n- Patches are defined in the `patches` dir of this repo. These are automatically applied after the install command. { `\"postinstall\": \"patch-package\"` @ `package.json`}\n\n### HTTP\n\n1.  `npm install`\n\n### Websocket\n\nVercel currently doesn't support websockets, therefore I haven't added support for websockets in this Next.js app.\n{see Node.js guava-term websocket implementation @ [guava-term](https://github.com/phukon/guava-term?tab=readme-ov-file#websocket)}\n\n### Usage\n\n Run the dev server: `npm run dev`\n\n#### Client Side\n\n1. Add hostname in the options in `client/client.js`\n2. Run the client: `node client.js` This will prompt you to enter a command.\n3. 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.\n\n## The patch\n\n```javscript\nconst os = require('os');\nconst _logger = require(\"pino-http\")({\n  transport: {\n    target: \"pino/file\",\n    options: {\n      destination: `${os.tmpdir()}`,\n      mkdir: true,\n      all: true,\n      translateTime: true,\n    },\n  },\n});\n```\n\n```\n// used inside requestListener {@ node_modules/next/dist/server/lib/start-server.js}\n_logger(req, res);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphukon%2Fguava-next","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphukon%2Fguava-next","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphukon%2Fguava-next/lists"}