gitwtfhub

wtf is lanview-cli?

prashantdhuri08/lanview-cli — explained in plain English

Analysis updated 2026-05-18

20JavaScriptAudience · developerComplexity · 2/5Setup · easy

TL;DR

A zero-config CLI that proxies your frontend and backend so you can preview a web app on your phone over your local network with one QR code.

Mindmap

mindmap
  root((LanView))
    What it does
      Finds local IP automatically
      Proxies frontend and backend
      Generates terminal QR code
    Tech stack
      JavaScript
      Node.js
      npm
    Use cases
      Mobile testing of web apps
      Avoiding cloud tunnels
      Fixing localhost on phones
    Audience
      Developers
      Vibe coders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Preview a full-stack web app on a real phone without typing a local IP address by hand.

REASON 2

Fix broken backend requests on mobile that fail because of hardcoded localhost URLs.

REASON 3

Test a frontend and backend running on different ports through one proxied address.

REASON 4

Keep hot reload and live updates working while testing on a mobile device over WiFi.

What's in the stack?

JavaScriptNode.jsnpm

How it stacks up

prashantdhuri08/lanview-cliaaronz345/athena-personal-academic-pagealana72212/akamai-vm
Stars202020
LanguageJavaScriptJavaScriptJavaScript
Setup difficultyeasymoderatehard
Complexity2/52/55/5
Audiencedeveloperresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Requires the frontend and backend dev servers to already be running locally.

No license information was found in the README.

Wtf does this do

LanView is a command line tool that solves a common annoyance for web developers: testing a website or app on a phone while it is still running on your own computer. Normally you would have to find your computer's local network address and type it into your phone's browser by hand, and any part of your app that talks to a backend using the word localhost simply breaks on a phone, since the phone treats localhost as itself rather than as your computer. Running the tool starts three things at once on your machine. First it automatically finds your computer's local network address without any manual lookup. Second, it starts a small local proxy server that sits in front of both your frontend, such as a React or Vite app, and your backend, such as an Express or Django server, and routes requests to whichever one they belong to based on the web address path. Third, it turns the final address into a QR code drawn right there in your terminal window, so you just scan it with your phone's camera to open the app. Because both the frontend and backend are reached through this one proxy, your code does not need any special configuration for mobile testing, and relative paths like fetch of slash api slash data work the same on desktop and on a phone. The tool works entirely over your local WiFi network with no cloud service, account, or internet tunnel involved, so nothing about your project leaves your own network. It also supports proxying WebSocket connections, which keeps live reload features working while you test on a phone. Installation is done through npm, either as a global package or by running it directly with npx, and it can also be installed from source by cloning the repository and linking it locally. The default setup expects a frontend on port 3000 and a backend on port 5000, but all of the ports and the API path prefix can be customized with command line options when you run the tool.

Yoink these prompts

Prompt 1
Help me install lanview globally with npm and run it against my frontend and backend.
Prompt 2
Show me how to customize the frontend, backend, and gateway ports with lanview's CLI options.
Prompt 3
Explain how lanview's reverse proxy avoids CORS issues between my frontend and backend.
Prompt 4
Walk me through installing lanview from source and linking it as a global command.

Frequently asked questions

wtf is lanview-cli?

A zero-config CLI that proxies your frontend and backend so you can preview a web app on your phone over your local network with one QR code.

What language is lanview-cli written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, npm.

What license does lanview-cli use?

No license information was found in the README.

How hard is lanview-cli to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is lanview-cli for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.