Skip to content

Conversation

@luisawatkins
Copy link
Contributor

Closes #24

Add backup history management and component consolidation plan

  • Add storacha-backup-manager.js helper library for timestamped backup management
  • Implement listBackups(), restoreFromBackup(), and getSpaceUsage() functions
  • Add comprehensive analysis of existing Storacha components
  • Create implementation plan with code snippets for UI integration
  • Provide formatting utilities for backup size, dates, and relative time

NiKrause and others added 24 commits September 19, 2025 13:28
…nected and replicating data via two Helia(IPFS)/OrbitDB nodes running in the same browser connected via a public relay
- Move documentation files to dedicated docs/ folder
- Remove debug and temporary files from examples/svelte/ucan-delegation/
- Add new utility modules (logger.js, test-utils.js)
- Update core library files and Svelte components
- Remove package lock files for cleaner dependency management
- Update README.md and package.json
…ntries

BREAKING CHANGE: Improved restore performance by only joining HEAD entries
during database reconstruction. OrbitDB automatically traverses the log chain
from heads, making it unnecessary to iterate through all entries.

Changes:
- Optimized restoreDatabaseFromSpace() to only join HEAD entries
- Added better logging showing HEAD count vs total entries
- Fixed reconstructWithoutManifest() to properly merge dbConfig with inferred type
- Cleaned up example files by removing unused config options

Performance Impact:
- Before: Iterated through all N log entries (e.g., 427 entries)
- After: Only processes HEAD entries (typically 1-27 heads)
- Result: Significantly faster restore, especially for large databases

The optimization maintains full functionality while providing clearer
feedback about the restore process. Multiple heads are properly handled
for databases with concurrent operations or replication branches.
@NiKrause
Copy link
Owner

NiKrause commented Oct 28, 2025

if you add a new function or library, can you add a test for it?

E.g. here in the Github environment variables we use a secret storacha proof + key in order to work with a real storacha space for integration testing.

This issue #24 is also about UI changes the UI should incooperate the changes made in the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Widgets to support multiple spaces / timestamped backups

3 participants