Commit Graph
7 Commits
Author SHA1 Message Date
nandi dd5b132b5a feat: persist I2P torrent list to EDN state file across restarts
Rolling Release / Test (MoonBit, Extension, Scripts) (push) Successful in 21s
Rolling Release / Build & Publish Rolling Release (push) Successful in 2m20s
- Save active and paused torrents to torrents.edn on add, remove, pause, resume, and metadata fetch, then restore them on router startup.
- Default path is $MOON_I2P_DATA_DIR, then $XDG_DATA_HOME, then ~/.local/share/moon-i2p-browser. Add --torrent-state <file> to override, or --no-torrent-state to disable.
- Write the state file atomically (temp file, fsync, rename). A corrupt or unsupported file logs a warning and does not block startup.
- Verify restored pieces incrementally in the background for large torrents; these show as state "checking" in /api/torrents.
- Expose state_file in /api/status and the startup banner.
- Add standard RFC 4648 Base64 encode/decode helpers, used for the info-b64 field.
- Add the moonedn dependency and pass --torrent-state from the Android service.
2026-11-29 02:46:23 -08:00
nandi 80c16ad6ad ci: add rolling Gitea release workflow and release publisher
Rolling Release / Build & Publish Rolling Release (push) Canceled after 0s
2026-11-28 20:44:11 -08:00
nandi 7139a64544 feat: add built-in Moon I2P start page to Firefox and Android
check / check (macos-latest) (push) Failing after 27s
check / check (windows-latest) (push) Failing after 26s
check / check (ubuntu-latest) (push) Failing after 30s
- Firefox extension: add start.html/css/js as homepage and new-tab page (manifest bumped to 0.1.5, .xpi rebuilt). Shows router readiness, tunnel/NetDB/DHT tiles, torrents, and a .i2p/magnet address bar.
- openManager message now accepts an optional hash and reuses any open manager tab.
- Android: default page is file:///android_asset/start.html, backed by a MoonI2pStart JS bridge (status, torrents, open URL, diagnostics, copy .b32). Blocks file: navigation from the WebView.
- RouterService: add fetchLocalApiJsonOrNull for bounded local API reads.
- Built-in .i2p destinations reordered (NotBob, Postman first); README updated to match.
2026-11-28 20:24:28 -08:00
nandi 9d3df6e100 fix: guard AppImage against duplicate launches and rotate router log
check / check (macos-latest) (push) Failing after 26s
check / check (ubuntu-latest) (push) Failing after 26s
check / check (windows-latest) (push) Failing after 27s
- Add an exclusive instance lock and detect an already-running Firefox on the profile, so a second launch exits with a notification instead of clobbering the first
- Write the instance PID to instance.lock and record app_run_pid in active_ports.json
- Write active_ports.json atomically and only remove it on cleanup if this instance wrote it
- Rotate router.log to router.log.1 once it reaches MOON_I2P_LOG_MAX_BYTES (default 5 MiB) and mark each start in the log
- Close the lock fd in the router and Firefox children so they do not hold the lock
2026-11-28 20:12:19 -08:00
nandi 4bb81f1b80 feat: add diagnostics report to Firefox torrent extension
check / check (macos-latest) (push) Failing after 26s
check / check (windows-latest) (push) Failing after 26s
check / check (ubuntu-latest) (push) Failing after 29s
- Add a Diagnostics panel to the extension popup and manager page with copy and refresh actions
- Collect extension settings, router API status, torrents, DHT nodes, and a tail of the router log into one report
- Add a native host `diagnostics` command that reports router PID, active ports, log path, and log summary counters
- Export data dir, log file, router PID, and SAM port from the AppImage launcher
- Start the router with `--debug` so the log tail has detailed output
- Bump extension version to 0.1.4 and request clipboardWrite permission
2026-11-28 19:28:39 -08:00
nandi 82aaa9f11e feat: improve Firefox torrent extension link capture and peer status
check / check (macos-latest) (push) Failing after 27s
check / check (ubuntu-latest) (push) Failing after 27s
check / check (windows-latest) (push) Failing after 27s
- Capture magnet links from data-magnet attributes and stop the page's own handlers from also firing on torrent and magnet links
- Treat .torrent URLs with fragments as torrent links
- Show tracker status, in-flight block counts, unchoked peer counts, and per-peer state in the torrent list
- Bump the extension to 0.1.2 and rebuild the .xpi
- Run the AppImage router with --debug
2026-11-28 18:04:28 -08:00
nandi fbe6818c4e feat: add I2P BitTorrent engine, DHT, and Firefox torrent extension
check / check (macos-latest) (push) Failing after 29s
check / check (ubuntu-latest) (push) Failing after 29s
check / check (windows-latest) (push) Failing after 30s
- Add pure-MoonBit bittorrent package: bencode codec, metainfo/magnet parsing with path traversal checks, peer wire protocol (BEP 10/9), and I2P Kademlia DHT with KRPC and 54-byte compact nodes
- Add SHA-1 primitive in crypto for torrent info hashes
- Add router torrent API and engine, enabled with --torrent-api (default 127.0.0.1:4445) and --download-dir
- Add Firefox WebExtension torrent manager with native messaging host and packed .xpi
- Add scripts to build a standalone Firefox + router AppImage and install the native host
- Add just targets (proxy, appimage, extension), README docs, and ignore .cache/ and dist/
2026-11-28 13:19:03 -08:00