Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-forge/blob/main/visits/README.md # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-forge / visits / README.md` 113 lines ยท 6941 bytes Raw Blame History Source # visits: the owner's analytics, first party, in seeded Omega Who visited INTERPLANE and what they looked at, from forged's own access log. No cookie, no script, no outside service: the visitor's browser is never asked for anything. The figures stay on the machine that served the requests and are shown only inside the owner's private network. Status: IMPLEMENTED and EXERCISED on the Spark host (gates below; the reducer also ran on the live log). Not installed as a service. ## Units Unit What it is `visits.om` its own program: reads the log, writes `visits.tsv` and `visits.html` (mode 0600) `owner.om` composed after `seed/net/http.om` and `seed/net/notls.om`: serves the page privately `visits.css` the page's stylesheet; colours only through `tokens.css` ``` OMV=$HOME/canon/omega-mv; OMC=$OMV/seed/out/omc # the omc whose sha256 is PIN in visits/tests/run.sh $OMC < visits/visits.om > visits { printf 'om2\n'; cat $OMV/seed/net/http.om $OMV/seed/net/notls.om visits/owner.om; } | $OMC > owner ./visits ~/forge-data/logs/forged.log # writes visits.tsv and visits.html in the working directory ./owner 100 64 0 2 18191 # http://100.64.0.2:18191/ inside the tailnet ``` ## What is counted The log line is `
`, with or without the two fields ` ` after it; any other shape is counted as skipped. A visitor is one network address. A project is the first two segments of the path (`/owner/repo`), cut at `?`; the home page is `/`. The page shows totals, requests and visitors by UTC day, the 25 most visited projects and the 40 most active visitors with their first and last request. `visits.tsv` carries the same figures as `T`, `A`, `D`, `P` and `V` lines. forged logs the request's `User-Agent` and `Referer` as fields 8 and 9 (at most 200 bytes each, a space as `+`, `-` when absent); lines written before that have seven fields and still count. A crawler or tool is a request whose agent contains one of the words of `kws` in `visits.om`, in any letter case (among them `bot`, `crawl`, `googleother`, `curl` and `python`; `kws` is the list, and the gate checks its own copy against it). Any other name counts as a browser. The name is whatever the client sent: a tool can call itself a browser, so the split is a lower bound on crawlers and tools, not proof of people. An address that ever used a crawler or tool name is listed as one. The list came from the log: on the first minutes of agent logging (2026-11-09) Google's general crawler, which calls itself `GoogleOther`, was 525 of 553 named requests and has none of the four usual words in it. The `A` line is: requests from crawlers and tools, from browsers, with no name, from seven-field lines, then visitors that are crawlers or tools and visitors that are browsers; each `V` line ends with `c`, `o` or `-`. Limits: 65,536 visitors, 8,192 projects, 512 days, a line of at most 4,095 bytes; a visitor or project that does not fit its table is counted under "not listed" on the page. A request whose UTC day is before the first request's day or 512 or more days after it stays in the totals and is counted as outside the day table (the last field of the `T` line). The per-day and per-project visitor counts use sets of at most 2,097,152 day-visitor and 1,048,576 project-visitor pairs; a pair past a full set is not counted as a new visitor, and that is not shown (live 2026-11-09: 704 visitors). ## Privacy, stated plainly - The files are mode 0600 and the folder is the owner's. - `owner` starts only on a loopback address (127.x.x.x) or a tailnet address (100.64.0.0/10) and exits 1 for any other, so the page cannot be bound to a public interface by mistake. It serves exactly three files, sends `Cache-Control: no-store` and `X-Robots-Tag: noindex`, and allows no script. - Nothing is encrypted and nothing depends on the file format being hard to read: Omega and this format are public. The data is private because of where it lives and who can reach it. - Network addresses are personal data in some places. They are already in the server's log; this adds a summary of them for the owner and sends them nowhere. ## Install (after merge) ``` mkdir -p ~/.local/share/interplane-owner && mkdir -m 700 -p ~/forge-data/owner $OMC < visits/visits.om > ~/.local/share/interplane-owner/visits { printf 'om2\n'; cat $OMV/seed/net/http.om $OMV/seed/net/notls.om visits/owner.om; } | $OMC > ~/.local/share/interplane-owner/owner chmod 755 ~/.local/share/interplane-owner/visits ~/.local/share/interplane-owner/owner cp visits/visits.css galaxy/tokens.css ~/forge-data/owner/ cp infra/spark/interplane-visits.service infra/spark/interplane-owner.service ~/.config/systemd/user/ systemctl --user daemon-reload && systemctl --user enable --now interplane-visits.service interplane-owner.service ``` Undo: `systemctl --user disable --now interplane-visits.service interplane-owner.service` and remove `~/forge-data/owner`. ## Gates ``` sh visits/tests/run.sh # the reducer: prints RESULT pass= fail=0 when every case holds bash visits/tests/owner.sh # the server, on 127.0.0.1 port 18492: the same RESULT form ``` The reducer's oracle is awk, sort and uniq over the same 6,037-line log (6,000 requests, half of them in the seven-field form, 31 addresses, 9 projects, 37 lines of seven kinds that must be skipped); `visits.tsv` must equal it. Negative controls: a mutant that counts every request as a new daily visitor does not match, a mutant that drops the group marks does not show the grouped total, a mutant that matches names in lower case only does not match, and a mutant that tries only the first word of the list is caught by a log with one request per word. Each word with its first or its last byte removed must count as a browser, so a match that skips a byte fails. The page groups digits in threes (1,417,491), checked on the total and on every day row; `visits.tsv` keeps plain numbers. The server gate compares the three files byte for byte (one of 405,000 bytes), checks the headers, 404 and 405, and that six addresses outside loopback and the tailnet are refused; its negative control shows a mutant without the address rule does start on 0.0.0.0. On the live log of 2026-11-09 (1,371,189 lines, 186 MB) the reducer took 0.89 s and 16 MB. The Spark's ingress filter drops tailnet ports it does not list. The line that lets the owner's two devices reach the page is in `/etc/atlas/ingress.nft` (added 2026-11-09, backup `ingress.nft.bak-owner-20261109T224604Z`): `iifname "tailscale0" ip saddr { 100.64.0.1, 100.64.0.4 } tcp dport 18191 accept`. ## Not done - The referrer is logged but not reported yet. - The reducer re-reads the whole log on each run. - Static pages nginx serves itself are not in forged's log; after the galaxy becomes the home page, the home page is.