explaingit

ishtiaqhossain/portal-hub

Analysis updated 2026-05-18

4PythonAudience · ops devopsComplexity · 2/5Setup · easy

TLDR

A single-file Python web tool that manages Meta Portal smart displays over Wi-Fi, letting you install apps, take screenshots, reboot, and check for app updates from one browser page.

Mindmap

mindmap
  root((Portal Hub))
    Features
      Install APKs one or all
      View manage apps
      Screenshots reboot
      App update checker
    How it works
      Python single file
      ADB over Wi-Fi
      Browser web UI
    Setup
      USB once per device
      Then wireless only
      Auto-downloads ADB
    Data
      Local JSON files
      No accounts
      No cloud
    Caveats
      No password protection
      Home network only
      USB needed after reboot
Click or tap to explore — scroll the page freely

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

What do people build with it?

USE CASE 1

Install a new APK to every Meta Portal in your home at once without plugging in each device individually.

USE CASE 2

Check whether apps installed on your Portals have newer versions available and update them with a single click.

USE CASE 3

Remotely reboot, take screenshots, or run ADB shell commands on a Meta Portal without leaving your browser.

What is it built with?

PythonADBAndroid

How does it compare?

ishtiaqhossain/portal-hubadeliox/klein-head-swapats4321/ragit
Stars444
LanguagePythonPythonPython
Setup difficultyeasymoderatemoderate
Complexity2/53/52/5
Audienceops devopsdesignerdeveloper

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

How do you get it running?

Difficulty · easy Time to first run · 5min

Each Portal device needs a one-time USB cable connection to enable wireless ADB, after that setup, everything runs over Wi-Fi.

No license is stated in this repository.

In plain English

Portal Hub is a single-file Python web tool for managing a collection of Meta Portal smart display devices from one browser page over your home Wi-Fi network. Meta Portal devices run Android, and this tool communicates with them using ADB, which is a standard Android development utility that lets you send commands to Android devices from a computer. Portal Hub downloads ADB automatically the first time it runs, so you do not need to install anything beyond Python 3.7 or later. Once running, the tool opens a local web page you visit from any browser on the same network, including from a phone or laptop. You can see which devices are online, install APK files to one device or all devices at once, view the list of installed apps with their icons, uninstall or force-stop apps, take screenshots, reboot devices, and simulate button presses like Home and Back. There is also an update checker: you point an app at a GitHub release page or a direct APK download link, and the tool checks whether a newer version is available and offers a one-click update across all devices that are behind. The first time you connect a device, a USB cable is required to switch the Portal from USB mode to wireless ADB mode. After that setup step, the cable is no longer needed and the Portal communicates over Wi-Fi. If a device reboots, the wireless ADB connection drops due to a limitation in the older Android version the Portal runs, and you need to reconnect it with USB once more to restore wireless access. The tool stores your saved devices and update sources in local JSON files and has no accounts, logins, or external services. Because it has no password protection, the README recommends keeping it on a private home network and not exposing it to the internet. Configuration options let you change the port number, bind address, and ADB path if needed. No license is stated in the repository.

Copy-paste prompts

Prompt 1
I have three Meta Portal devices and just started Portal Hub. Walk me through the USB setup process to get each one connected over Wi-Fi.
Prompt 2
Show me how to configure a Portal Hub update source pointing to a GitHub releases page so I can check for app updates automatically.
Prompt 3
My Portal Hub says a Portal is offline after it rebooted. Explain why this happens and walk me through reconnecting it via USB setup.
Prompt 4
Help me run Portal Hub on a Raspberry Pi on my home network so it stays running permanently without leaving my laptop on.
Prompt 5
Explain the zero-dependency design of Portal Hub: how does a single Python file serve a full web UI without pip or npm?

Frequently asked questions

What is portal-hub?

A single-file Python web tool that manages Meta Portal smart displays over Wi-Fi, letting you install apps, take screenshots, reboot, and check for app updates from one browser page.

What language is portal-hub written in?

Mainly Python. The stack also includes Python, ADB, Android.

What license does portal-hub use?

No license is stated in this repository.

How hard is portal-hub to set up?

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

Who is portal-hub for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub ishtiaqhossain on gitmyhub

Verify against the repo before relying on details.