Title: forge: mirror repos on their kind-30618 repository state (opt-in, config.mirror) · Issue #12 · JavaScriptSolidServer/plugins · GitHub
Open Graph Title: forge: mirror repos on their kind-30618 repository state (opt-in, config.mirror) · Issue #12 · JavaScriptSolidServer/plugins
X Title: forge: mirror repos on their kind-30618 repository state (opt-in, config.mirror) · Issue #12 · JavaScriptSolidServer/plugins
Description: gitmark 0.0.84 publishes a NIP-34 repository state, kind 30618, after every git mark announce: d = repo name, HEAD, one refs/heads/
Open Graph Description: gitmark 0.0.84 publishes a NIP-34 repository state, kind 30618, after every git mark announce: d = repo name, HEAD, one refs/heads/
X Description: gitmark 0.0.84 publishes a NIP-34 repository state, kind 30618, after every git mark announce: d = repo name, HEAD, one refs/heads/<branch> tag per branch with its commit, and the mark as cha...
Opengraph URL: https://github.com/JavaScriptSolidServer/plugins/issues/12
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"forge: mirror repos on their kind-30618 repository state (opt-in, config.mirror)","articleBody":"gitmark 0.0.84 publishes a NIP-34 repository state, kind 30618, after every `git mark announce`: `d` = repo name, `HEAD`, one `refs/heads/\u003cbranch>` tag per branch with its commit, and the mark as `chain`, `txo`, `commit`. It is replaceable, so the newest one from the agent's key says where the repo is now. That is the pull signal a mirror needs: no polling of GitHub or an explorer, one small event per announce.\n\nProposal: an opt-in mirror in the forge plugin.\n\n- `config.mirror = { relays: ['wss://…'], follow: [{ pubkey: '\u003chex>', name: '\u003crepo>', clone: '\u003curl>' }] }`. Unset, nothing changes: no sockets, no fetches. The current stance, no chain I/O in the plugin, holds either way; the mirror talks to relays and to git remotes, never to an explorer.\n- On activate with a non-empty follow list: one WebSocket per relay, one `REQ` for kinds 30617 and 30618 from the followed pubkeys. The relay filters, so the forge receives only events about repos it mirrors.\n- A 30618 is acted on only when: the signature verifies; `(pubkey, d)` is a followed repo; `created_at` is newer than the last one seen for that repo; and the refs differ from the local bare repo. Then one `git fetch` from the clone URL (the configured one, or the newest 30617's `clone` tag from the same key) into `refs/mirror/*`. A branch is advanced to the state's commit only if that commit was fetched and, when the state carries a mark, the trail file at that commit lists the `commit` tag. Otherwise the fetch is kept but no ref moves, and the reason is recorded.\n- The mirrored repo lives at `repos/\u003cpubkey>/\u003cname>.git`, so it shows in the UI and on the Anchors tab like a pushed repo. `pluginDir/mirror/\u003cpubkey>/\u003cname>.json` records last event, last fetch and verdict; `GET api/repos/\u003co>/\u003cn>/mirror` returns it.\n- Guards: at most 50 followed repos, one fetch per repo per 30 s, catch-up `REQ` and backoff on reconnect, `ws` loaded lazily as for announce. Mirrors are keyed by pubkey plus name, never name alone, since anyone can publish a 30618 with any `d`.\n\nOut of scope: discovering repos to follow (the follow list is the operator's), and verifying the mark against the chain (that stays in the browser).","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-10-19T13:03:24Z","url":"https://github.com/JavaScriptSolidServer/plugins/issues/12"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:07e08704-dafe-c261-b428-27a9a59cbc04 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0E0:36D701:FF8DA:14C429:6B039660 |
| html-safe-nonce | efafff38a8ae592f6000c4851127d6a46460235edfb6de4e1db741be5748983f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEUwOjM2RDcwMTpGRjhEQToxNEM0Mjk6NkIwMzk2NjAiLCJ2aXNpdG9yX2lkIjoiMzQxNDkyNzc5NDQ3MDM2MDY3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f0668a3141892e61043d034c078506cd27d231863398a411a500bfda3c6942fb |
| hovercard-subject-tag | issue:5924371371 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/plugins/12/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eae5e38bed1cf7c8e7c59141026f724480702bfaca1fced598b979fd33770967/JavaScriptSolidServer/plugins/issues/12 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eae5e38bed1cf7c8e7c59141026f724480702bfaca1fced598b979fd33770967/JavaScriptSolidServer/plugins/issues/12 |
| og:image:alt | gitmark 0.0.84 publishes a NIP-34 repository state, kind 30618, after every git mark announce: d = repo name, HEAD, one refs/heads/ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/plugins git https://github.com/JavaScriptSolidServer/plugins.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 1297159948 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/plugins |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1297159948 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/plugins |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width