interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / docs / GROWTH.md

38 lines · 4271 bytes Raw Blame History Source

Growth and social signals

Owner: this lane (growth/). It reads the clone and download journal that server/counts.om already keeps. It does not write that journal and it does not change forge/explore/1 or forge/repo/1.

Pages

PageHTMLJSON
Trending<base>trending or <base>explore?order=trending<base>trending.json, <base>explore.json?order=trending, or the same paths with Accept: application/json
New<base>explore?order=new<base>explore.json?order=new
Insights<base><owner>/<repo>/insights<base><owner>/<repo>/insights.json

order must be trending or new. Anything else is 400. POST is 405. A plain <base>explore.json stays forge/explore/1.

What a number is

The window is the last 604800 seconds (7 days; 7*86400 checked with WolframLanguageEvaluator) ending at the request, unless window= is a positive number of seconds up to 315360000. Every counted number is 0 when the source was read and nothing matched. A source that was not read is null in JSON and "not measured" on the page. Window clones and downloads read the counts journal only up to its last committed cursor, so a torn last batch is not counted (the same rule as server/counts.om). When that committed part is larger than one 16777216-byte read, window clones and downloads are not measured.

NumberSourceOne countLeft out
Clonesfront-door nginx download log, via the counts journala visitor info/refs?service=git-upload-pack answered 200our own addresses and user agents naming bot, crawl or spider, same rule as the repo home
Downloadsforged access log, via the counts journala visitor GET of /archive/ or /releases/download/ answered 200our own addresses
Starssocial log, replayed by the social storeone key currently starring the repo; the window count is star events minus unstar events inside the window, not below 0nothing is seeded; a tampered social log is not measured
Followssocial logfollowers of the owner accountthe same
Seedsthis node's routing table, rad node routing --rid <RID> --jsona node that announced it seeds the repo, this node includeda failed read is not measured; zero nodes is 0
Contributorsgit log --format=%aN on the default branchone distinct author name, first 48 bytes, at most 64 namesa branch git cannot read is not measured
Patches openedpatch objects in this repo's storage, the same list the patches page usesone distinct patch idgit failing is not measured
Patches mergedthe same objectsa patch whose history contains a mergethe same

Trending score is window clones + window downloads + window net stars. A part that is not measured is left out of the score. New order is the last commit's committer time, newest first, then the name. A repo with no readable commit sorts last. Every public repo is listed, including those whose score is 0.

Each insights number carries its source. Log numbers also carry since (the first time that log was read). Seeds carry as_of, the time the routing table was read. A successful read is appended to <data>/growth/seeds.log (s <epoch> <count> <rid>) when its count differs from the last line this process wrote for that repo (the first check after a start always writes), so the insights page shows the last 16 changes in seeding. Trending and new do not read the routing table: one read takes about 110 ms and the server answers one request at a time, so each repo's seeds there is the last check this process made for it (repo home or insights), null when there was none. Nothing runs on a clock.

Schemas

forge/explore-order/1: schema, order, base, window_seconds, window_start, as_of, count, repos. Each repo has owner, name, rid, path, score, clones (null when not measured), downloads (null when not measured), stars (null when not measured), seeds (null when not measured), last_commit (ISO-8601 or null).

forge/insights/1: the same window fields, then clones, downloads, stars, follows, seeds (with series), contributors, patches. A count object has count, since or as_of, and source.