René's URL Explorer Experiment


Title: forge: mirror repos on their agent's kind-30618 state (opt-in) by melvincarvalho · Pull Request #13 · JavaScriptSolidServer/plugins · GitHub

Open Graph Title: forge: mirror repos on their agent's kind-30618 state (opt-in) by melvincarvalho · Pull Request #13 · JavaScriptSolidServer/plugins

X Title: forge: mirror repos on their agent's kind-30618 state (opt-in) by melvincarvalho · Pull Request #13 · JavaScriptSolidServer/plugins

Description: Closes #12. The other half of gitmark 0.0.84, which publishes a NIP-34 repository state (kind 30618) after every mark. With config.mirror set, the forge follows agent keys and pulls their repos when the state changes. Unset, nothing changes: no sockets, no fetches. mirror: { relays: ['wss://relay.damus.io', 'wss://nos.lol'], follow: [{ pubkey: '<64-hex agent key>', name: 'proj', clone: 'https://github.com/o/proj.git' }], } How it works One ws socket 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. Reconnect with backoff (1 s doubling to 60 s); every connect re-sends the REQ, which is the catch-up, since a replaceable event comes back as its newest version. A 30618 is acted on only when the signature verifies, (pubkey, d) is a followed repo (never name alone), created_at is newer than the last state acted on, and a branch differs locally. Then one git fetch from the clone URL (configured, or the key's newest 30617) into refs/mirror/*, at most one per repo per 30 s, 60 s timeout. Per changed branch, a verdict: not fetched, the branch stays; no mark, it moves; a mark, it moves only if blocktrails.json at that commit lists the marked commit. A state claiming a mark its own trail does not carry moves nothing, and the reason is recorded. The mirror lives at repos//.git like a pushed repo, so it has the usual pages and the Anchors tab reads its trail. GET api/repos///mirror returns the record: last state seen with action and reason, last fetch with per-branch verdicts, clone URL in use. deactivate() closes the sockets. The stance holds: the plugin talks to relays and git remotes, never to a chain API. Whether the mark is on the chain stays the browser's question. Code: forge/lib/mirror.js is the pure part (config parsing, NIP-01 verification, readState, planMirror, branchVerdict), the sockets and git in plugin.js after the announce section. README section "Mirroring on kind-30618". Tests: 148 pass (138 + 10). Six on the library; four against an in-process relay that answers REQ and pushes events, with a local upstream repo as the clone URL: catch-up on boot, a marked state that moves, a state whose mark the trail does not list that is held, another key's state with the same d ignored, an older state skipped. Live: a local forge following a cold-run agent's key on the three real relays fetched its repo on the real 30618 gitmark 0.0.84 published, moved the branch with "fetched; the trail lists mark 548ac1cb on txbt4", and served the marks page. Not here: deploying it on melvin.me (the operator's config), and discovering which keys to follow.

Open Graph Description: Closes #12. The other half of gitmark 0.0.84, which publishes a NIP-34 repository state (kind 30618) after every mark. With config.mirror set, the forge follows agent keys and pulls their repos whe...

X Description: Closes #12. The other half of gitmark 0.0.84, which publishes a NIP-34 repository state (kind 30618) after every mark. With config.mirror set, the forge follows agent keys and pulls their repos whe...

Opengraph URL: https://github.com/JavaScriptSolidServer/plugins/pull/13

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9c497b27-7cb1-4b58-27b3-71ef5bde4838
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9CCE:3D4680:7AEA1B:A203CF:6B039661
html-safe-nonce49287b384c8bcd581e286d3740fcfd05433bdaeacd19aab0bdb527f81d0c599c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0NFOjNENDY4MDo3QUVBMUI6QTIwM0NGOjZCMDM5NjYxIiwidmlzaXRvcl9pZCI6IjI3OTEyMDQ0NjE4MzI1NDE3OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca29548e40fee71a8518a731742cd5ab767bf8e9011ae9b239d4c1892b1ececbe
hovercard-subject-tagpull_request:4921473859
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JavaScriptSolidServer/plugins/pull/13/files
twitter:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
og:image:altCloses #12. The other half of gitmark 0.0.84, which publishes a NIP-34 repository state (kind 30618) after every mark. With config.mirror set, the forge follows agent keys and pulls their repos whe...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JavaScriptSolidServer/plugins git https://github.com/JavaScriptSolidServer/plugins.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id1297159948
octolytics-dimension-repository_nwoJavaScriptSolidServer/plugins
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1297159948
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/plugins
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/plugins/pull/13/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2Fplugins%2Fpull%2F13%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2Fplugins%2Fpull%2F13%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JavaScriptSolidServer%2Fplugins
Reloadhttps://github.com/JavaScriptSolidServer/plugins/pull/13/files
Reloadhttps://github.com/JavaScriptSolidServer/plugins/pull/13/files
Reloadhttps://github.com/JavaScriptSolidServer/plugins/pull/13/files
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
pluginshttps://github.com/JavaScriptSolidServer/plugins
Codehttps://github.com/JavaScriptSolidServer/plugins
Issues11 (11)https://github.com/JavaScriptSolidServer/plugins/issues
Pull requests1 (1)https://github.com/JavaScriptSolidServer/plugins/pulls
Actionshttps://github.com/JavaScriptSolidServer/plugins/actions
Projectshttps://github.com/JavaScriptSolidServer/plugins/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/plugins/security
Insightshttps://github.com/JavaScriptSolidServer/plugins/insights
Sign up for GitHub https://github.com/signup?return_to=%2FJavaScriptSolidServer%2Fplugins%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJavaScriptSolidServer%2Fplugins%2Fissues%2Fnew%2Fchoose
melvincarvalhohttps://github.com/melvincarvalho
gh-pageshttps://github.com/JavaScriptSolidServer/plugins/tree/gh-pages
forge-mirrorhttps://github.com/JavaScriptSolidServer/plugins/tree/forge-mirror
Conversation 3 https://github.com/JavaScriptSolidServer/plugins/pull/13
Commits 2 https://github.com/JavaScriptSolidServer/plugins/pull/13/commits
Checks 1 https://github.com/JavaScriptSolidServer/plugins/pull/13/checks
Files changed https://github.com/JavaScriptSolidServer/plugins/pull/13/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/plugins/pull/13/files
forge: mirror repos on their agent's kind-30618 state (opt-in) https://github.com/JavaScriptSolidServer/plugins/pull/13/files#top
Show all changes 2 commits https://github.com/JavaScriptSolidServer/plugins/pull/13/files
40efb47 forge/: mirror repos on their agent's kind-30618 state (opt-in config… melvincarvalho Oct 19, 2026 https://github.com/JavaScriptSolidServer/plugins/pull/13/commits/40efb47956a466cda6b619d5e6e2180664b0d65d
bd55eda forge/: the mirror record is served before the repo-exists guard, so … melvincarvalho Oct 19, 2026 https://github.com/JavaScriptSolidServer/plugins/pull/13/commits/bd55eda1ac035004fa7acf00931224dd0a0b2f4c
Clear filters https://github.com/JavaScriptSolidServer/plugins/pull/13/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/plugins/pull/13/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/plugins/pull/13/files
README.md https://github.com/JavaScriptSolidServer/plugins/pull/13/files#diff-2e49ec738f559c4cdb3a173a37578c49432c35752954f2093ae655e1ccb1dd7f
mirror.js https://github.com/JavaScriptSolidServer/plugins/pull/13/files#diff-c35951e4ef47021cbf28cff6f12f7e8d9f49c39ac6eb459f5ed7a0dab02d3e58
plugin.js https://github.com/JavaScriptSolidServer/plugins/pull/13/files#diff-8071cb9edf660f3192af3c3326e62c6ded57a180e834f76ef4c7d401a3907a20
test.js https://github.com/JavaScriptSolidServer/plugins/pull/13/files#diff-cf51bb0ec82239e1f70ee7cac1808021b629796d3923375b50d5248c80783b55
forge/README.mdhttps://github.com/JavaScriptSolidServer/plugins/pull/13/files#diff-2e49ec738f559c4cdb3a173a37578c49432c35752954f2093ae655e1ccb1dd7f
View file https://github.com/JavaScriptSolidServer/plugins/blob/bd55eda1ac035004fa7acf00931224dd0a0b2f4c/forge/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/plugins/pull/13/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/plugins/pull/13/files#diff-2e49ec738f559c4cdb3a173a37578c49432c35752954f2093ae655e1ccb1dd7f
https://github.com/JavaScriptSolidServer/plugins/pull/13/files#diff-2e49ec738f559c4cdb3a173a37578c49432c35752954f2093ae655e1ccb1dd7f
forge/lib/mirror.jshttps://github.com/JavaScriptSolidServer/plugins/pull/13/files#diff-c35951e4ef47021cbf28cff6f12f7e8d9f49c39ac6eb459f5ed7a0dab02d3e58
View file https://github.com/JavaScriptSolidServer/plugins/blob/bd55eda1ac035004fa7acf00931224dd0a0b2f4c/forge/lib/mirror.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/plugins/pull/13/{{ revealButtonHref }}
Please reload this pagehttps://github.com/JavaScriptSolidServer/plugins/pull/13/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/plugins/pull/13/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.