Skip to content

About

Statistics for the Unseenet network: nodes, groups, posts and active keys, counted daily over Tor from what any reader can see

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Unseenet

unseenet-stats

Statistics for the Unseenet network.
Nodes, groups, posts, chats and active keys, counted once a day from what any reader can see.

Release stats Apache-2.0

Pre-alpha. Nothing is stable yet, and Unseenet has not had a security review. Do not rely on it to protect anyone yet.

What it is

Statistics for the Unseenet network: how many nodes, groups, posts, chats and active keys there are, counted once a day from what any reader of the network can see.

The page: https://stats.unseenet.org/ The numbers: docs/data/stats.json

What it does not count, and why

  • Readers. Over Tor a node cannot tell readers apart, and nodes do not record what anyone reads (UN-RFC 0011). That is the point of Unseenet.
  • Who wrote what. Only numbers are published. Active keys are counted from posts, chats, comments and feed entries in the open - not from closed groups, private messages or gateways.
  • Each node's uptime. Only how many nodes answered. A public history of when one onion service was up would help anyone trying to locate it. Node names are shown, as the known-node list publishes them, with which are the project's own - never which of them answered.
  • Operators. Gateways and entrances are shown by name, not by who runs them.

The crawler keeps no state between runs except the published file. Nodes keep articles for a while (90 days by default), so each run counts the recent days again; a day's numbers never go down, so they do not shrink as articles expire.

Run it

pip install .
unseenet-stats -v --out docs/data/stats.json         # starts its own Tor
unseenet-stats --socks-port 9050 --node <address>    # or use a running Tor and one node
pip install mkdocs-material && mkdocs serve           # the page, at http://127.0.0.1:8000

The page uses the same theme, logo and styles as unseenet.org. docs/stylesheets/brand.css is a copy of unseenet's docs/stylesheets/home.css; copy it again when the front page's look changes.

How it works

A GitHub Actions job (stats.yml) starts Tor and connects to every node on the known-node list (UN-RFC 0010) as an ordinary reader. For each group it asks for a few headers of every article with HDR, and it reads the groups' signed manifests. Key-bound groups - inboxes, profiles, pictures - are not listed by nodes (UN-RFC 0040), so it finds their articles with NEWNEWS instead and reads their headers with HEAD; it counts them by name and does not fetch their manifests. It never posts and never decrypts anything. It is built on the Unseenet core, like unseenet-bots, and is also an example of a program that reads the network.

It also reads the network's own lists, all signed, all in the open (network.py): the newest signed releases in unseenet.releases (not GitHub), the known-node list and the nodes' public NODEINFO (totals only), the web entrances in unseenet.entrances (the https ones are checked for an answer, like any website), the gateway directory unseenet.gateways, the hierarchy list, yesterday's canaries (UN-RFC 0021), and public profiles to tell bots (UN-RFC 0030) from people.

Each article is counted once (by Message-ID, across nodes) as one of:

Kind From
post, chat Message-Kind (UN-RFC 0028); no header means post
comment a reply in a channel by a key that may not start threads there (UN-RFC 0030)
feed an entry in a group with "view": "feed", someone's own feed@ included (UN-RFC 0034)
page a page in a group with "view": "pages", someone's own site@ included (UN-RFC 0035)
reaction Message-Kind: reaction (UN-RFC 0048); does not make a key active
edit a new version naming earlier ones in Supersedes (UN-RFC 0042)
closed encrypted, in a closed group: the kind is inside the ciphertext
private an inbox message, sealed for its receiver
imported brought in by a gateway: has Origin-Network (UN-RFC 0023)
system control articles, data groups, and key-bound groups other than feed@ and site@: ripening, profiles, pictures, names, state, spam reports and labels - shown split into these parts

When a new kind of message comes, add it in classify.py and the page's KINDS in stats.js.

Versions and releases

Versions follow semantic versioning on the same principles as unseenet: tags vX.Y.Z on main, the changes in CHANGELOG.md, and a GitHub release for each tag. This is one of the project's own services, so it is not on PyPI. Each release names the minor version of unseenet it works with (unseenet>=0.6,<0.7).

To release: move the entries under ## [Unreleased] in CHANGELOG.md to a new ## [X.Y.Z] - YYYY-MM-DD section, set __version__ in src/unseenet_stats/__init__.py, commit, then git tag -a vX.Y.Z -m "unseenet-stats X.Y.Z" && git push origin vX.Y.Z.

Part of Unseenet

Repository What it is
unseenet The protocol (UN-RFCs), the core library, the node and the command-line client
unseenet-tui The terminal client
unseenet-gui The graphical client - in a window, booted, or in a browser
unseenet-portable Builds the portable clients, Terminal and Graphical, with Tor inside
unseenet-bootable Builds the bootable images, Terminal and Graphical
unseenet-docs The site unseenet.org
unseenet-entrance Web entrances: the graphical client in an ordinary browser
unseenet-gateway Gateways to other networks: Usenet, Nostr, Matrix
unseenet-bots Bots that keep channels filled with current content
unseenet-helpbot The bot that answers questions in unseenet.help
unseenet-watchman Automatic spam reports and content labels that readers may choose to follow
unseenet-stats Statistics for the network
unseenet-mcp An MCP server, so a language model can read and post as you (planning)
unseenet-demo Demo people, feeds and sites, made with the command-line client

License

Apache License 2.0. The Unseenet logo: CC BY 4.0.

About

Statistics for the Unseenet network: nodes, groups, posts and active keys, counted daily over Tor from what any reader can see

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages