Ghost Assembly QuickTS

GNOME Shell extension

QuickTS

Tailscale in Quick Settings: toggle the tailnet, pick an exit node, switch profiles, ping nodes and send or receive Taildrop files.

Toggle the tailnet, pick an exit node, switch profiles, ping a device, copy its address and send or receive files over Taildrop — without leaving the panel, and without the menu ever claiming a state the daemon does not have.

  • GNOME Shell 50
  • Tailscale 1.82 or later
  • GPL-3.0-or-later

Install Source on GitHub

01

Overview

QuickTS adds one tile to Quick Settings. Clicking it brings the tailnet up or down — or starts a login, if the daemon is waiting for one — and its arrow opens everything else. It talks to tailscaled the way the tailscale command does, so there is nothing else to install.

Exit nodes

Pick one, clear it, or take the daemon’s suggestion. Mullvad’s several thousand nodes are grouped by country instead of listed as rows.

Ping without a terminal

The daemon pings for you, so the answer says whether the path is direct or relayed — usually the real question.

Taildrop, both ways

Send files to any peer the daemon lists as able to receive, and save the ones that arrive. The file chooser is the desktop portal, drawn outside the Shell.

Health you can act on

The daemon’s warnings, collapsed out of the way. One that carries a link opens it; a permission failure offers the command that fixes it.

Honest state

The tile follows the daemon, never the click: it cannot read “on” against a backend waiting for a login, or against a change the daemon refused.

Routing

Offer this machine as an exit node from the menu, and advertise subnet routes from the preferences window.

Multiple accounts

Switch between Tailscale profiles. The active one is read from the daemon, and a switch made in a terminal shows up here too.

A menu that fits

Sized from the monitor’s work area, so a large tailnet scrolls inside the menu instead of running off the bottom of the screen.

02

Install

Requires GNOME Shell 50. Requires Tailscale 1.82 or later and your user configured as the Tailscale operator. The live LocalAPI check requires a responding tailscaled daemon.

From a release

Download the latest release ZIP and install it for your user. xh is a download tool; you can also download the ZIP from GitHub in a browser. Installing compiles the settings schema.

Shell
xh --download GET https://github.com/Ghost-Assembly/quickts/releases/latest/download/quickts@napalm255.github.io.shell-extension.zip
gnome-extensions install --force quickts@napalm255.github.io.shell-extension.zip

Log out and back in so GNOME discovers the extension, then enable it:

Shell
gnome-extensions enable quickts@napalm255.github.io

From a clone

Install mise and activate it in your shell. Clone the repository, install its pinned tools, and build and install the same ZIP used for releases:

Shell
git clone https://github.com/Ghost-Assembly/quickts.git
cd quickts
mise install
mise exec -- just setup
mise exec -- just install

Log out and back in, then run just enable. Run just prefs to open preferences. After updating a loaded extension, start a new session to load its new code; opening preferences does not reload GNOME Shell.

03

Uninstall

Disable and uninstall the extension for your user. These commands preserve saved settings and other user data.

Shell
gnome-extensions disable quickts@napalm255.github.io
gnome-extensions uninstall quickts@napalm255.github.io

From a clone, just uninstall performs the same steps. Disabling with just disable leaves the extension installed.

05

Preferences

Open them from the Extensions app, or with just prefs from a clone.

Setting Default Notes
Show offline devices On Lists peers that are not currently reachable.
Show Mullvad exit nodes On Grouped by country. A tailnet with Mullvad has thousands.
Maximum height 0 Logical pixels, up to 2000. Zero uses whatever room the screen leaves below the menu.
Advertised subnets None Comma-separated prefixes, such as 192.168.1.0/24. Applied on Enter; anything that is not a prefix is refused and said so.
Open the menu Unbound See Keyboard.

Advertised subnets is not a stored setting. It reads and writes AdvertiseRoutes on the daemon. A settings key mirroring it would be a second source of truth, drifting the first time anyone ran tailscale set.

06

Keyboard

One shortcut opens Quick Settings with QuickTS expanded. It is unbound by default, so it cannot collide with a GNOME shortcut; choose one in the preferences window, which records the next key combination you press.

While recording Does
Super+T Binds it. Any key held with Ctrl, Alt or Super will do.
Backspace Unbinds the shortcut
Esc Cancels, changing nothing

A bare key is not accepted: it would be taken from every application. Shift alone is accepted only with a key that types nothing and that editing text does not need, such as Shift+F5. Shift+A is how a capital A is typed, and Shift with an arrow key, Home, End, Page Up, Page Down, Tab, Enter or a dead key selects text, moves focus, ends a line or types an accented letter: the keys GNOME Settings refuses, plus dead keys. The shortcut does nothing on the lock screen or the login screen.

It is stored under quickts-open-menu. The prefix matters: Mutter keeps one table of keybinding names for the whole Shell and refuses a name that is already registered, so a plain open-menu could be lost to any extension that chose the same word.

07

Security

QuickTS talks to tailscaled over its local socket, with the same LocalAPI the tailscale command uses. Anything the menu can do, you could already do from a terminal as the operator; it grants no privilege you did not have.

  • Request paths are built in one pure module, where node ids and file names are percent-encoded before they reach a URL.
  • Sending streams files from disk to a peer the daemon lists in /file-targets at the moment of sending, whichever row the send started from.
  • Receiving checks the sender’s file name before it becomes a path: one containing / or a NUL byte, or starting with ., is refused and left with the daemon. The file is created exclusively in your download folder — an existing file or a planted symlink is never overwritten or followed; the save moves on to name (1) — and streamed to disk, never held in the Shell’s memory.
  • Tailnet data is text. Peer names, tags and health messages come from the coordination server and are never used to build a command or markup.
  • Nothing identifying is logged. Peer names, addresses, keys and file names stay out of the journal; a failed send is reported in a notification, which GNOME does not log.

Report a vulnerability privately through GitHub’s advisory form; the security policy has the details.

08

Architecture

Every decision lives in a pure module that imports nothing from GNOME, so the suite tests them on plain Node. The files that touch gi:// or resource:/// only carry decisions out.

exit-node-section.js · device-section.js · taildrop-section.jsOne plain class per menu section, each with its own rows and its own generation counter, built from menu-items.js and navigable-section.js. The toggle builds them, passes what they need and tells them when the state moves or the menu opens.
extension.js · prefs.jsThe cancellation token and the wiring; and the preferences window, which uses io.js to reach the daemon for the routes field.

Every module

The diagram above shows the main ones. Every file under modules/, what it decides, and which other modules it imports — everything not listed here imports nothing of its own:

Module Job Imports
bus.js Reads the IPN bus strictly as a change signal — that something changed, never what; offers no way to read a peer's value out of it. —
cancel.js One cancellation token per enable: canceling it aborts every request and settles every pending wait. —
collate.js How names are ordered wherever QuickTS sorts them. —
device-section.js The Devices submenu: ping a peer, copy its address or DNS name, send it files. menu-items.js, navigable-section.js, ping.js, settings.js, taildrop.js, text.js
errors.js Why a request to tailscaled failed, as a REASON value rather than a string. text.js
exit-node-section.js The Exit node submenu: none, the daemon's suggestion, the tailnet's own candidates, Mullvad's grouped by country. menu-items.js, mullvad.js, navigable-section.js, settings.js, text.js
health.js What the menu should say about the daemon's warnings and its backend state. errors.js, state.js
inbox.js Taildrop's receiving half: which waiting file names are safe to use, and the candidate names a save falls back to. —
io.js The only module that touches Soup, Gio and the portal; carries out a decision, never makes one. cancel.js, errors.js, inbox.js, localapi.js
layout.js How tall the menu is allowed to be. —
localapi.js Every request QuickTS makes to tailscaled's LocalAPI: the path, the body, what gets percent-encoded. —
menu-items.js Menu rows and small helpers every section of the menu shares. errors.js, text.js, warnings.js
model.js The store: everything QuickTS knows, and everything it can be asked to do. bus.js, cancel.js, errors.js, health.js, inbox.js, localapi.js, peers.js, ping.js, reconnect.js, routes.js, state.js, taildrop.js, timing.js
mullvad.js Grouping Mullvad's several thousand exit nodes by country. collate.js
navigable-section.js A submenu that swaps between a list and one entry's detail. menu-items.js
panel.js The actor tree: the tile, the keybinding, and the menu sections it builds. device-section.js, exit-node-section.js, health.js, layout.js, menu-items.js, routes.js, settings.js, taildrop-section.js, text.js
peers.js The one shape a node has in QuickTS — the only file that reads a raw peer field. collate.js
ping.js Reading a disco ping result: the latency, and whether it went direct or through a relay. —
reconnect.js Keep a stream open for as long as the token is live. cancel.js
routes.js Advertising routes: acting as an exit node and offering subnets, as one preference. —
settings.js The settings QuickTS has, named once: the gschema keys and the label/detail text prefs.js shows for each. —
shortcuts.js The rules for capturing a keyboard accelerator. —
state.js The whole of what QuickTS knows, as one immutable snapshot. errors.js, peers.js
taildrop-section.js Taildrop's two halves: the Send files submenu, and received files waiting to be saved. inbox.js, menu-items.js, taildrop.js, text.js
taildrop.js Who can receive a file, and why the rest cannot. collate.js
text.js Fills a translated sentence's %s and %d in order, without reading $ patterns in the values. —
timing.js When to retry, and when to stop coalescing. —
warnings.js Turning one of the daemon's health messages into something the menu can show, pulling out a URL when it carries one. —

The bus is a signal, not a source

The IPN bus says that something changed; /status and /prefs say what. No value is ever read out of a notification: a peer on the bus and a peer in /status are different shapes, and two translations of one dataset cannot be kept in agreement. modules/bus.js offers no way to get a peer out, and a test pins its exports to keep it that way. While the menu is closed the re-read leaves out the peer map, most of the payload on a large tailnet.

After an outage the bus reports only what changes from then on, so the first message on a new connection triggers one full re-read of preferences, profiles and peers.

Cancellation settles the awaiter

One token per enable. Canceling it aborts every request, settles every pending wait and drops every GLib source — the last two in the same callback, deliberately. A timer removed without its awaiter settled leaves an await that never returns, keeping its whole call stack alive for the rest of the session.

The model is not a GObject

It is a plain observable: subscribe() returns its own disposer, and subscribers receive a whole snapshot plus a list of what moved. There are no properties to bind and no notify:: ordering to get wrong.

One shape for a peer

modules/peers.js is the only file that reads a raw peer field. Whether a node is the exit node comes from the preferences, so the tick follows the click rather than lagging the network, and a node shared in from another tailnet keeps enough of its name to stay distinguishable. Pure modules decide; modules/panel.js and its section modules choose the wording, so translators see whole sentences.

09

The LocalAPI

QuickTS tries /run/tailscale/tailscaled.sock, then /var/run/…, and looks again on each connection, so installing or starting Tailscale after you log in is picked up.

Endpoint Used for
GET /status Peers, backend state, health and the login URL; with ?peers=false while the menu is closed.
GET, PATCH /prefs Every switch, the exit node and the routes. A PATCH answers with the result, so a change never waits on the bus.
GET /watch-ipn-bus The change signal, with the initial-state and peer-changes bits. Since Tailscale 1.100 a Linux daemon announces peers no other way; the rate-limit bit is refused alongside them, so QuickTS coalesces bursts itself.
GET /profiles/, /profiles/current, POST /profiles/{id} The accounts, which one is in use, and switching.
GET /file-targets, PUT /file-put/… Sending, streamed from disk. Asked only while the tailnet is up; the daemon refuses it otherwise.
GET /files/, GET, DELETE /files/{name} Receiving, streamed to disk. The file is written before the daemon is told to forget it. If the daemon will not, the file still counts as saved and is not offered again while QuickTS runs. It stays in Tailscale’s inbox, where tailscale file get can clear it, and after a reload it can be offered again.
POST /ping A disco ping, which reports the route as well as the latency.
GET /suggest-exit-node The exit node the daemon would pick.
POST /login-interactive Signing in. The URL opens in a browser once, and only when asked for.

Signing out is deliberately absent. A login unblocks the menu; a logout invalidates the node key and needs another browser round trip to undo. That does not belong two clicks from the volume slider, and Quick Settings has nowhere sensible to confirm it. Use tailscale logout.

10

Testing

just test runs the JavaScript suite with Vitest, the shared tooling tests, and any project-specific offline suites. just coverage reports runtime JavaScript and Python tooling coverage, including untested files. Test stubs and generated reports are not runtime source.

just test-docs runs Playwright and axe in Chromium and Firefox: dark and light accessibility checks, keyboard navigation, mobile layout, reduced motion, links, metadata, local assets, and no page JavaScript. Automated accessibility checks still require human review of reading and focus order.

just test-live checks the package and runs isolated GNOME lifecycle checks. It is a separate local check, not proof of compatibility from a hosted runner. Verify each declared GNOME version and complete the project's manual checks before releasing.

Project checks

The offline suite uses recording GNOME stubs and a fake daemon. just localapi-check exercises modules/io.js under GJS against a real responding tailscaled; just test-live also runs it. Fixtures are synthetic because real daemon responses contain account information, addresses, and node keys. Verify exit nodes, account switching, and Taildrop with real peers before release.

11

Packaging

Shell
just build
just pack-check

The output is quickts@napalm255.github.io.shell-extension.zip at the repository root, with metadata.json at the archive root. Python's standard library packages the explicit runtimeFiles allowlist in quick-project.json, using stable file order and timestamps.

just pack-check compares both filenames and file contents with GNOME's official packer and validates shipped icons. Docs, tests, dependencies, credentials, downloaded binaries, and development artifacts stay outside the ZIP. Update the runtime allowlist when adding a runtime file.

12

Releasing

Run just ci, just test-live, and the project manual checklist. Set metadata.json version-name and package.json version to the same new version. The GNOME Extensions website assigns the numeric metadata.json version during submission. Update the npm lockfile, regenerate the docs, and commit the reviewed changes to main through a passing pull request.

Create and push a v-prefixed tag for that version. The release workflow verifies the version, main ancestry, and successful required checks for the tagged commit, then attaches its tested ZIP to a GitHub release. It does not upload to extensions.gnome.org; that submission and its review remain manual.

13

Development

mise.toml pins runtime and CLI versions; justfile owns commands; npm owns development dependencies and the lockfile. GNOME libraries come from the host. On image-based Fedora, use the host's available tools or a toolbox/distrobox for missing system packages; do not layer packages onto the OS.

Shell
just setup        # install pinned tools, dependencies, and browsers
just fmt          # format source and configuration
just lint         # verify template, generated docs, source, and schemas
just test         # JavaScript, Python, and project offline tests
just coverage     # report JavaScript and Python coverage without source exclusions
just test-docs    # Chromium and Firefox documentation checks
just security     # dependencies, secrets, and workflow checks
just build        # build the runtime-only extension ZIP
just pack-check   # compare files and contents with GNOME's packer
just ci           # complete local verification and packaging
just test-live    # isolated GNOME lifecycle and project integration checks
just docs         # serve the static site at localhost:8000
just template-check  # verify the pinned canonical template
just template-status # report a newer approved template revision

GitHub requires local verification, security analysis, and completed Sonar analysis. The shared Sonar policy requires zero security, reliability, and maintainability issues and zero duplicated lines. PR checks cover changed code; main checks cover the entire project. Missing configuration fails instead of silently skipping analysis. Pages publishes the tested docs only after the required checks pass on main.

Common tooling and these instructions are generated from a pinned canonical template. Change that source and synchronize its approved revision; do not edit generated sections or locally bless drift. Extension-specific behavior belongs in project configuration and project.just.