textual-serve
Turn your Textual TUIs in to web applications
Decision gist · record as of 2026-08-14
Yes, if you have a Textual application and want to expose it to web users with minimal code. The low install friction, permissive license, and straightforward API make it a practical choice. However, be aware the project is aging (286 days since last release) and maintenance may be slower; evaluate whether the WebSocket latency and subprocess overhead are acceptable for your use case before deploying to production.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Textual to be installed and a valid shell command that launches a Textual app; server runs on localhost:8000 by default.
- Low friction—pure Python wheel with five runtime dependencies (aiohttp, aiohttp-jinja2, jinja2, rich, textual).
- Maintenance status is aging; last commit was 2025-11-01 and the package is 286 days past its latest release, so expect slower response to issues.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2025-11-01 (286 days) · last repo commit 2025-11-01 · 401 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,362,501 downloads/mo, #4,001 on PyPI
Alternatives
Verify before relying
pip install textual-serve
from textual_serve.server import Server
server = Server("python -m textual")
server.serve()- Whether the WebSocket protocol overhead is acceptable for latency-sensitive terminal interactions.
- Whether subprocess isolation scales well under concurrent browser connections.
- Production deployment guidance and recommended proxy/load-balancing setup.
What it is and what it does
textual-serve bridges terminal user interfaces (TUIs) built with Textual into web browsers. Instead of running a Textual app only in a terminal, you wrap it in a Server instance and call serve() to launch an HTTP server that spawns the app in a subprocess and streams its UI to the browser via WebSocket. The communication uses a custom protocol designed to prevent arbitrary shell access—users can only interact with the app as its author intended.
The package is built on aiohttp for the web server, jinja2 for HTML templating, and rich for terminal rendering. It supports configuration of host, port, title, and paths to static assets and templates. Multiple instances can run across available CPUs. This is useful for sharing terminal tools with non-terminal users, adding a web interface to existing CLI applications, or running TUIs in restricted environments where terminal access is unavailable.
Use it for
- Share a terminal-based tool (e.g., a log viewer or system monitor) with team members via a web link without requiring terminal access.
- Add a web UI to an existing Textual application with minimal code changes—three lines to wrap and serve.
- Run a Textual app in an environment where SSH or terminal access is blocked or impractical.
- Prototype or demo a TUI to users who are unfamiliar with terminal interfaces.
- Serve multiple instances of the same Textual app across CPU cores for concurrent users.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have a Textual application and want to expose it to web users with minimal code.
The low install friction, permissive license, and straightforward API make it a practical choice. However, be aware the project is aging (286 days since last release) and maintenance may be slower; evaluate whether the WebSocket latency and subprocess overhead are acceptable for your use case before deploying to production.
Install
textual-serve on PyPI
Before you install
Low friction—pure Python wheel with five runtime dependencies (aiohttp, aiohttp-jinja2, jinja2, rich, textual). Maintenance status is aging; last commit was 2025-11-01 and the package is 286 days past its latest release, so expect slower response to issues.
Requires Textual to be installed and a valid shell command that launches a Textual app; server runs on localhost:8000 by default.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install textual-serve
from textual_serve.server import Server
server = Server("python -m textual")
server.serve()
Verify before relying
- Whether the WebSocket protocol overhead is acceptable for latency-sensitive terminal interactions.
- Whether subprocess isolation scales well under concurrent browser connections.
- Production deployment guidance and recommended proxy/load-balancing setup.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesaiohttpaiohttp-jinja2jinja2richtextual |
| Maintenance | Aging 286 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,362,501 / month, #4,001 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: textual_serve-1.1.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “textual app to web browser”
- textual-serveRuns any Textual terminal application in a web browser by wrapping it…
- textual-universal-directorytreeProvides a DirectoryTree widget for Textual terminal UIs that works…
- pytest-textual-snapshotA pytest plugin that captures SVG screenshots of Textual terminal…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also textual · textual-dev · trogon · textual-image · textual-plotext · textual-autocomplete · rich · pytest-textual-snapshot · terminado · status