[PR #7] [MERGED] Mods: list native mods, and the form takes .hnmod #9

Closed
opened 2026-11-03 04:02:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-site/pull/7
Author: @ludovic111
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/native-mods-on-the-site


📝 Commits (1)

  • 2db085f Mods: list native mods, and the form takes .hnmod

📊 Changes

4 files changed (+39 additions, -7 deletions)

View changed files

📝 build.mjs (+1 -1)
📝 src/mods-submit.js (+2 -2)
📝 src/mods.js (+17 -4)
📝 src/mods.test.mjs (+19 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

The registry's index lists 12 projects, 7 of them native mods (kind = "native-mod"): Horizon's Zoom, FPS Counter, Keystrokes and Minimap, plus SmartF3, Veinminer and CarryBlock. The site keeps only the kinds it knows (KINDS in src/mods.js), so its next build would show 5 projects, and Horizon's official mods would be gone from /mods.

  • List and filter: "Native mods" is a kind of its own, between Mods and Modpacks.
  • Project page: a "Native code" section says the launcher compiles the mod into a game of its own (the Native mods instance), with no sandbox, after a warning, and that a reviewer read the source first. The capabilities list stays for sandboxed .hmod mods only. Versions show "made on Horizon 6f8c7a0" in place of the raw native-1/<sha>/<sha> API string. "By hand" builds the mod with horizon-launcher native-build FOLDER --trust-native-code, the command docs/native-mods.md documents.
  • Submit form: accepts .hnmod, and a file named <id>-<version>.hnmod sets the kind to Native mod. The registry's service already takes native-mod (SmartF3 came through it, horizon-mods#28).
  • /mods lede: "Mods run in a sandbox" is no longer true of every mod.

Checks

  • HORIZON_CHECKOUT=<horizon main 1db57af> node build.mjs: built, 12 registry projects (5 on main's site). Checked dist/mods/zoom.html: the Native code section, "made on Horizon 6f8c7a0", the native-build line.
  • node --test src/ scripts/: 49 pass, 0 fail (one new test: index, filter, list badge, page, form).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-site/pull/7 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/native-mods-on-the-site` --- ### 📝 Commits (1) - [`2db085f`](https://github.com/horizon-rust/horizon-site/commit/2db085fa35c6cee3d4d2edd5d5816d15bf6f9e04) Mods: list native mods, and the form takes .hnmod ### 📊 Changes **4 files changed** (+39 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `build.mjs` (+1 -1) 📝 `src/mods-submit.js` (+2 -2) 📝 `src/mods.js` (+17 -4) 📝 `src/mods.test.mjs` (+19 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The registry's index lists 12 projects, 7 of them native mods (`kind = "native-mod"`): Horizon's Zoom, FPS Counter, Keystrokes and Minimap, plus SmartF3, Veinminer and CarryBlock. The site keeps only the kinds it knows (`KINDS` in `src/mods.js`), so its next build would show 5 projects, and Horizon's official mods would be gone from /mods. - **List and filter:** "Native mods" is a kind of its own, between Mods and Modpacks. - **Project page:** a "Native code" section says the launcher compiles the mod into a game of its own (the Native mods instance), with no sandbox, after a warning, and that a reviewer read the source first. The capabilities list stays for sandboxed `.hmod` mods only. Versions show "made on Horizon 6f8c7a0" in place of the raw `native-1/<sha>/<sha>` API string. "By hand" builds the mod with `horizon-launcher native-build FOLDER --trust-native-code`, the command docs/native-mods.md documents. - **Submit form:** accepts `.hnmod`, and a file named `<id>-<version>.hnmod` sets the kind to Native mod. The registry's service already takes `native-mod` (SmartF3 came through it, horizon-mods#28). - **/mods lede:** "Mods run in a sandbox" is no longer true of every mod. ## Checks - `HORIZON_CHECKOUT=<horizon main 1db57af> node build.mjs`: built, **12 registry projects** (5 on main's site). Checked `dist/mods/zoom.html`: the Native code section, "made on Horizon 6f8c7a0", the native-build line. - `node --test src/ scripts/`: 49 pass, 0 fail (one new test: index, filter, list badge, page, form). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:02:20 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-site#9
No description provided.