Skip to content

Stop naming the protoc host in the UI - #6

Merged
mgravell merged 1 commit into
mainfrom
protoc-quieter
Aug 24, 2026
Merged

mgravell merged 1 commit into
mainfrom
protoc-quieter

Conversation

@mgravell

Copy link
Copy Markdown
Member

The hostname appeared in four places: the language group heading, the note beside the language bar, the footer, and the header badge — plus the error messages when the service is unreachable.

None of them needed it. What a user has to know is that this one target leaves the browser, which every one of those still says; where it goes is an implementation detail, and putting it on every page view is an invitation to send traffic at it directly rather than through the site.

before after
Language group protoc — on protoc.protobuf-net.dev protoc — compiled on a server
Note by the bar compiled by protoc on protoc.protobuf-net.dev — your schema is sent there… compiled with protoc — your schema is sent to a server when you press Generate
Header badge uses protoc.protobuf-net.dev compiled on a server
Footer …compiled on protoc.protobuf-net.dev. …compiled with protoc on a server.

The badge's tooltip still explains why (protoc is a native compiler and cannot run in the browser…), so the honesty is unchanged — it is one hop less specific.

This is not a security boundary and is not offered as one: the endpoint is in the site's own JavaScript and the service is open source. It is the difference between findable and advertised. The service side has landed the matching half — its landing page now says only that it supports protobuf-net.dev, with robots.txt disallowing everything and noindex on both.

tsc, vitest (27) and vite build pass.

Three places named it: the language group, the note beside the language bar and
the footer, with the header badge naming it too. None of them needed to. What a
user has to know is that this one target leaves the browser, which the wording
still says; where it goes is an implementation detail, and printing it on every
page is an invitation to point traffic at it directly.

The messages shown when the service cannot be reached lose the hostname for the
same reason. Source comments keep it, since that audience needs to know.
@mgravell
mgravell merged commit 7bead24 into main Aug 24, 2026
1 check passed
@mgravell
mgravell deleted the protoc-quieter branch August 25, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant