Commit Graph
111 Commits
Author SHA1 Message Date
Raven Scott 55b7547b3a peer paste syntax highlight viewer 2026-05-27 23:39:43 -04:00
Raven Scott 0ab92f1922 updates for peer.paste 2026-05-27 23:36:49 -04:00
Raven Scott 01dc6a5221 Auto detect lang - peer.paste 2026-05-27 23:33:36 -04:00
Raven Scott 16e33c02c4 Updates peer.paste 2026-05-27 23:29:04 -04:00
Raven Scott 206493ecd4 bump 2026-05-27 23:23:20 -04:00
Raven Scott b168342fea fixes for peer.paste 2026-05-27 23:23:05 -04:00
Raven Scott 996969de19 Fix DB peer.paste 2026-05-27 23:20:35 -04:00
Raven Scott 83b7f210a3 Update Peer.paste 2026-05-27 23:18:05 -04:00
Raven Scott bf911b5cdc Update peer.paste 2026-05-27 23:15:26 -04:00
Raven Scott 30153bf958 peer paste updates 2026-05-27 23:08:45 -04:00
Raven Scott 1974145b79 Bump Peer.paste 2026-05-27 22:59:49 -04:00
Raven Scott c7ecffd3e4 Paste Bump DB 2026-05-27 22:56:33 -04:00
Raven Scott e901dea9ee E2EE for peer.paste 2026-05-27 22:55:37 -04:00
Raven Scott 7b4e1a2391 Updates 2026-05-27 22:49:04 -04:00
Raven Scott aee3920654 reset on boot ensure good storage cores 2026-05-27 22:46:23 -04:00
Raven Scott 276eb4e015 Updates 2026-05-27 22:43:41 -04:00
Raven Scott 8b6789805c Update peer.paste 2026-05-27 22:34:35 -04:00
Raven Scott e802bbcf64 Introduce peer.paste 2026-05-27 22:23:30 -04:00
Raven Scott 396bba5bb2 Update Docs 2026-05-27 22:15:33 -04:00
Raven Scott 1d1bf83e2b Updates to Holesail 2026-05-27 21:55:25 -04:00
Raven Scott d57433d3e0 Modernize Holepunch stack for HyperDB 6 and current replication APIs
Align P2NS with current Autopass, Hypercore, Hyperdrive, and Protomux behavior:
add plugin DB recovery for incompatible persisted HyperDB data, stop
unconditional spec rebuilds via fingerprinting, update SDK replication paths,
and align proxy invite channels with p2ns.core-* protocols without replicating
Autopass over the p2ns topic.
2026-05-27 21:02:17 -04:00
Raven Scott 7cd98231f7 Remove invite cache 2026-05-27 20:46:41 -04:00
Raven Scott bcdc912b77 Version Update 2026-05-27 20:44:17 -04:00
Raven Scott ef7abcaf95 Updates 2026-05-27 20:36:13 -04:00
Raven Scott 41b218c3fd Update 2026-05-27 20:30:49 -04:00
Raven Scott d46558e659 Updates 2026-05-27 20:27:12 -04:00
Raven Scott f60de776a0 Caching 2026-05-27 20:19:51 -04:00
Raven Scott b000e34016 Updates 2026-05-27 20:15:25 -04:00
Raven Scott 05e388d525 Updates 2026-05-27 20:13:06 -04:00
Raven Scott 8849a432b3 Updates 2026-05-27 20:09:22 -04:00
Raven Scott 14a2373c4c Updates 2026-05-27 20:06:36 -04:00
Raven Scott 3d35f148c5 Updates 2026-05-27 20:03:25 -04:00
Raven Scott dbc6997219 Fixes 2026-05-27 19:59:45 -04:00
Raven Scott 229350e066 Bug fix 2026-05-27 19:53:48 -04:00
Raven Scott 54cbee254d Updates 2026-05-27 19:47:06 -04:00
Raven Scott c8334a8d63 Fix Atomic state 2026-05-27 19:44:05 -04:00
Raven Scott 3ece7abe9f Autopass updates 2026-05-27 19:41:21 -04:00
Raven Scott bfc51b8edb Upgrade Holepunch P2P stack and npm dependencies
Align p2ns with current Holepunch ecosystem versions: autopass 3,
hyperdb 6, hyperschema 1.21, hyperdrive 13, corestore 7.10, hyperswarm
4.17, protomux 3.11, and compact-encoding 3 (with npm overrides).
Also bump Tailwind/PostCSS, ws, node-forge, and related tooling; add
express and holesail-logger; remove unused install/npm packages.

Use cache/plugin-spec when plugin spec dirs are not writable, and
update docs and proxy install notes. Rebuild admin CSS for Tailwind 4.3.

Existing P2P storage must be wiped (--clean) after upgrading.
2026-05-27 19:33:06 -04:00
Raven Scott 022eeea263 fix: break circular dependency in domains.js
Move getInternalDomains import to lazy load inside addDomain function to resolve the circular dependency chain: plugin-handler → sdk → domains → plugin-handler.
2026-02-20 21:05:04 -05:00
Raven Scott 8bed09a537 fix: prevent EADDRINUSE double-bind on Holesail client startup
Add global activeClientKeys Set to track all active clients and prevent
race conditions between domain init and cache restore paths. Add EADDRINUSE
error handling in holesail.js, holesail_child.js
2026-02-20 19:53:16 -05:00
snxraven 8d0efde1cc revert 6499e745d7
revert first commit
2025-12-31 03:50:46 -05:00
Raven Scott 6499e745d7 first commit 2025-12-31 03:19:10 -05:00
Raven Scott 6ba275be33 first commit 2025-12-30 18:00:39 -05:00
Raven Scott 425b968db5 Fix: Use fs.promises for async file ops in admin domains route
Replaced callback-based fs methods with promise-based fsp methods to fix
the "cb argument must be of type function" error when adding domains.
2025-12-28 00:59:50 -05:00
Raven Scott 62ac5a4b50 ix: prevent corestore corruption during graceful shutdown
- Reorder shutdown sequence to close pairing operations before DNSPass
- Add proper tracking and cleanup of active Autopass.pair() operations
- Handle shared corestore conflicts between pairing ops and main DNSPass
- Ignore expected "store already closed" errors from pairing operations
- Consolidate all Autopass resource cleanup in PHASE 2.5

This fixes the "Corestore is closed" uncaught exceptions and corruption
that occurred when both pairing operations and DNSPass tried to close
the same shared corestore during shutdown.
2025-12-26 23:24:51 -05:00
Raven Scott e8f920a7aa fix: prevent corestore corruption during graceful shutdown
- Reorder cleanup sequence to close HTTP/TLS/DNS servers BEFORE corestore operations
- Move dnsPass/main corestore closing after plugin cleanup to prevent race conditions
- Add explicit drive cleanup call to close all plugin drive stores
- Fix proxy-server cleanup to properly close state.store after dnsPass
- Add store.closed checks and improve error handling in cleanup functions
- Verify Autopass dnsPass.close() handles its internal corestore properly
- Remove duplicate DNS server closing code causing syntax errors

This resolves "Corestore is closed" errors during shutdown by ensuring no new
requests can access closed corestores, preventing corruption and ensuring clean
shutdown of all corestore instances (main, plugin databases, plugin drives, dnsPass).
2025-12-26 22:34:54 -05:00
Raven Scott 1630370ff4 Fix domains tab navigation to prevent page breakage
- Prevent re-initialization when clicking domains button while already on domains tab
- Add navigateToTab helper function to intelligently handle tab navigation
- Redirect #domains hash to index (no hash) since domains is the default tab
- Update all navigation buttons to use navigateToTab helper
- Handle both initial load and hashchange events to remove #domains hash

This fixes the issue where navigating to or clicking the domains tab when
already viewing it would break the page by clearing and re-rendering content.
2025-12-26 22:16:14 -05:00
Raven Scott 3466d17eda Add graceful shutdown button and improve shutdown status display
- Add refresh/shutdown button next to status indicator that gracefully
  stops the process without cleaning my-storage
- Create /api/shutdown endpoint that triggers graceful shutdown via SIGTERM
- Update status indicator to show "Gracefully Cleaning...." when system
  is shutting down (instead of "Searching for peers...")
- Include isShuttingDown flag in /api/status endpoint response
- Use built-in ConfirmationModal for shutdown confirmation with warning styling

The shutdown button appears in the top-right corner next to the status
indicator and uses the existing confirmation modal system for user
confirmation before initiating shutdown.
2025-12-26 22:03:23 -05:00
Raven Scott 1888289067 feat: Add persistent domain filters with live data updates
- Add three filter dropdowns to domains tab: Consensus Status, Hash Type, and Ownership
- Implement AND logic filtering with immediate table updates for live data
- Create persistent filter settings system saving to cache/filterSettings.json
- Add backend API endpoints: GET/POST /api/domain-filter-settings
- Set default filters to: All Consensus States, Holesail Hash, All Ownership
- Fix infinite scroll state management to handle filter changes properly
- Auto-save filter preferences on change and restore on page load
- Fix backend response handling (removed undefined sdk reference)
2025-12-26 21:50:25 -05:00
Raven Scott be7bd5ee2b perf: parallelize holesail cleanup operations for 10x faster shutdown
Convert sequential cleanup loops to Promise.allSettled() across multiple files:
- includes/maintenance/cleanup.js: parallelize holesail connections, TLS/HTTP servers, and child process cleanup
- includes/core/domain_cleanup.js: parallelize multiple client cleanup within domain removal
- p2ns.js: parallelize child process and connection cleanup in main shutdown

Before: O(n) sequential execution (100-150s for 10 processes)
After: O(1) parallel execution (~10-15s for 10 processes)
2025-12-26 21:29:39 -05:00