<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: vishal Prajapat</title>
    <description>The latest articles on Forem by vishal Prajapat (@vishal_prajapat_dd1993221).</description>
    <link>https://forem.com/vishal_prajapat_dd1993221</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1793762%2F78f6e296-278f-4f2d-8a59-547ac67770e7.jpg</url>
      <title>Forem: vishal Prajapat</title>
      <link>https://forem.com/vishal_prajapat_dd1993221</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/vishal_prajapat_dd1993221"/>
    <language>en</language>
    <item>
      <title>Termi-Host: Access your terminal online from any device, directly in your browser. Built with GitHub Copilot CLI.</title>
      <dc:creator>vishal Prajapat</dc:creator>
      <pubDate>Sun, 15 Feb 2026 21:33:55 +0000</pubDate>
      <link>https://forem.com/vishal_prajapat_dd1993221/termi-host-web-based-terminal-access-anywheretvphone-built-with-github-copilot-cli-21nl</link>
      <guid>https://forem.com/vishal_prajapat_dd1993221/termi-host-web-based-terminal-access-anywheretvphone-built-with-github-copilot-cli-21nl</guid>
      <description>&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;: A lightweight web terminal that lets you access your server from phones, tablets, TVs - anywhere with a browser. No SSH client needed!&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdjabc7hlbgnfzij8a7hf.png" alt=" "&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github-2026-01-21"&gt;GitHub Copilot CLI Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;termi-host&lt;/strong&gt; is a lightweight web-based terminal that solves a real problem: What if you need to access your server but don't have an SSH client?&lt;/p&gt;

&lt;p&gt;This happens more often than you'd think:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📱 You're on your phone and need to check server logs&lt;/li&gt;
&lt;li&gt;📺 You're using a smart TV browser&lt;/li&gt;
&lt;li&gt;💻 You're on a public/work computer where you can't install SSH&lt;/li&gt;
&lt;li&gt;🚨 Emergency access when you don't have your SSH keys&lt;/li&gt;
&lt;li&gt;🎓 Teaching students without making them install software&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;termi-host&lt;/strong&gt; gives you full terminal access through any web browser. Just install it on your VPS once, and access it from anywhere - phone, tablet, laptop, even your TV!&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Features:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;🌐 &lt;strong&gt;Works in any browser&lt;/strong&gt; - Chrome, Firefox, Safari, Edge&lt;/li&gt;
&lt;li&gt;🔒 &lt;strong&gt;Secure&lt;/strong&gt; - Password protection, rate limiting, session timeouts&lt;/li&gt;
&lt;li&gt;⚡ &lt;strong&gt;Super lightweight&lt;/strong&gt; - Uses only ~16MB RAM per session&lt;/li&gt;
&lt;li&gt;🎨 &lt;strong&gt;5 beautiful themes&lt;/strong&gt; - Choose what looks best to you&lt;/li&gt;
&lt;li&gt;📱 &lt;strong&gt;Mobile-friendly&lt;/strong&gt; - Works great on phones and tablets&lt;/li&gt;
&lt;li&gt;🚀 &lt;strong&gt;Easy setup&lt;/strong&gt; - One command installation&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  GitHub:
&lt;/h3&gt;

&lt;p&gt;🔗 &lt;strong&gt;&lt;a href="https://github.com/vpbgkt/termi-host" rel="noopener noreferrer"&gt;https://github.com/vpbgkt/termi-host&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Terminal Interface
&lt;/h3&gt;

&lt;p&gt;![Terminal running commands](&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fugvfli5jzyry1bbmgwge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fugvfli5jzyry1bbmgwge.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;)&lt;/p&gt;
&lt;h3&gt;
  
  
  Login Screen
&lt;/h3&gt;

&lt;p&gt;![Secure login page](&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvz1kc4sog177x1o33ldj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvz1kc4sog177x1o33ldj.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;)&lt;/p&gt;
&lt;h3&gt;
  
  
  Mobile View
&lt;/h3&gt;

&lt;p&gt;![Works perfectly on mobile](&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4rjh3cx4fdt4kpa7qmu3.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4rjh3cx4fdt4kpa7qmu3.jpeg" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;)&lt;/p&gt;
&lt;h3&gt;
  
  
  Quick Video Demo
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://youtu.be/-UGABUjdxSY" rel="noopener noreferrer"&gt;https://youtu.be/-UGABUjdxSY&lt;/a&gt;&lt;br&gt;


  &lt;iframe src="https://www.youtube.com/embed/-UGABUjdxSY"&gt;
  &lt;/iframe&gt;


&lt;/p&gt;

&lt;h2&gt;
  
  
  My Experience with GitHub Copilot CLI
&lt;/h2&gt;

&lt;p&gt;GitHub Copilot CLI was like having an expert developer sitting next to me throughout this project. Here's how it helped:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Quick Problem Solving&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;When I needed to set up WebSocket authentication (which is tricky!), I just asked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh copilot suggest &lt;span class="s2"&gt;"how to authenticate websocket connections with express sessions"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copilot gave me the exact pattern I needed - sharing the session middleware between HTTP and WebSocket connections. This saved me hours of Stack Overflow searching!&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Security Features Made Easy&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;I wanted to add rate limiting to prevent brute force attacks but wasn't sure how. I asked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh copilot suggest &lt;span class="s2"&gt;"add rate limiting to prevent login brute force attacks in express"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copilot suggested &lt;code&gt;express-rate-limit&lt;/code&gt; and showed me exactly how to configure it (5 attempts per 15 minutes). Now the app is much more secure!&lt;/p&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;Handling Edge Cases&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;One big problem: what happens if the user's internet drops? The terminal would crash and leave zombie processes. I asked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh copilot suggest &lt;span class="s2"&gt;"cleanup terminal process when websocket disconnects in node-pty"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copilot showed me how to properly handle cleanup with event listeners. No more zombie processes!&lt;/p&gt;

&lt;h3&gt;
  
  
  4. &lt;strong&gt;Production Deployment&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;I needed to run this as a system service that auto-restarts. Instead of googling systemd syntax:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh copilot suggest &lt;span class="s2"&gt;"create systemd service file for nodejs application with auto restart"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Got a perfect systemd service file in seconds!&lt;/p&gt;

&lt;h3&gt;
  
  
  5. &lt;strong&gt;Error Handling&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Throughout the project, whenever I wrote code, I'd ask:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh copilot suggest &lt;span class="s2"&gt;"what error cases am I missing in this websocket handler"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copilot helped me think about edge cases I would have missed - like handling authentication failures, connection timeouts, and invalid sessions.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Impact:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Before Copilot CLI:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Spend 30 minutes googling&lt;/li&gt;
&lt;li&gt;Read 5-10 Stack Overflow threads&lt;/li&gt;
&lt;li&gt;Try different solutions&lt;/li&gt;
&lt;li&gt;Debug when they don't work&lt;/li&gt;
&lt;li&gt;Finally get it working&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;With Copilot CLI:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ask specific question&lt;/li&gt;
&lt;li&gt;Get working solution in seconds&lt;/li&gt;
&lt;li&gt;Understand why it works&lt;/li&gt;
&lt;li&gt;Move on to next feature&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Time saved: Probably 60-70% of development time!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The best part? Copilot didn't just give me code - it explained &lt;em&gt;why&lt;/em&gt; things work. I learned better patterns for WebSocket security, proper cleanup handlers, and production-ready error handling.&lt;/p&gt;

&lt;h3&gt;
  
  
  Real Example:
&lt;/h3&gt;

&lt;p&gt;Here's actual code that Copilot helped me write:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Problem: WebSocket needs to check if user is authenticated&lt;/span&gt;
&lt;span class="c1"&gt;// Copilot suggested this clean solution:&lt;/span&gt;

&lt;span class="nx"&gt;server&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;upgrade&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;head&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;sessionMiddleware&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{},&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;AUTH_ENABLED&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;session&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;HTTP/1.1 401 Unauthorized&lt;/span&gt;&lt;span class="se"&gt;\r\n\r\n&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
      &lt;span class="nx"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;destroy&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nx"&gt;wss&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;handleUpgrade&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;head&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;wss&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;connection&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ws&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without Copilot, I would've struggled for hours trying to figure out session middleware sharing between HTTP and WebSocket!&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Project Matters
&lt;/h2&gt;

&lt;p&gt;In 2026, we should be able to manage our servers from anywhere. But traditional SSH has barriers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Requires client installation&lt;/li&gt;
&lt;li&gt;Needs SSH keys (risky on shared devices)&lt;/li&gt;
&lt;li&gt;Often blocked by firewalls&lt;/li&gt;
&lt;li&gt;Impossible on some devices (smart TVs, gaming consoles)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;termi-host removes all these barriers.&lt;/strong&gt; If you have a browser, you have terminal access.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tech Stack:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Node.js, Express, WebSocket (ws), node-pty&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; xterm.js, vanilla JavaScript&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security:&lt;/strong&gt; express-session, express-rate-limit, security headers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment:&lt;/strong&gt; Systemd, nginx-ready&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Quick Start:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/vpbgkt/termi-host.git
&lt;span class="nb"&gt;cd &lt;/span&gt;termi-host
bash install.sh
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it! Access at &lt;code&gt;http://localhost:3000&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Performance:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;✅ 16MB RAM per session&lt;/li&gt;
&lt;li&gt;✅ &amp;lt;50ms latency&lt;/li&gt;
&lt;li&gt;✅ &amp;lt;1 second startup&lt;/li&gt;
&lt;li&gt;✅ Handles 20+ concurrent users&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;I'm planning to add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multi-session support (tabs)&lt;/li&gt;
&lt;li&gt;File upload/download&lt;/li&gt;
&lt;li&gt;Terminal recording/playback&lt;/li&gt;
&lt;li&gt;Docker image for easier deployment&lt;/li&gt;
&lt;li&gt;Mobile app wrapper&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It Yourself!
&lt;/h2&gt;

&lt;p&gt;🔗 &lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="http://159.65.151.238:3000" rel="noopener noreferrer"&gt;http://159.65.151.238:3000&lt;/a&gt; (admin/admin)&lt;br&gt;
🔗 &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/vpbgkt/termi-host" rel="noopener noreferrer"&gt;https://github.com/vpbgkt/termi-host&lt;/a&gt;&lt;br&gt;
📖 &lt;strong&gt;Docs:&lt;/strong&gt; Full installation guide in README&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;License:&lt;/strong&gt; MIT - Free and open source forever! ❤️&lt;/p&gt;

&lt;p&gt;If you find this useful, please ⭐ star the repo and let me know in the comments! Questions? I'm happy to help! 🚀&lt;/p&gt;




</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
      <category>cli</category>
      <category>githubcopilot</category>
    </item>
  </channel>
</rss>
