JSPM

@cmpsbl/failsafe

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q76207F
  • License Apache-2.0

CMPSBL® FAILSAFE — Zero-dependency disaster recovery & platform migration engine

Package Exports

  • @cmpsbl/failsafe
  • @cmpsbl/failsafe/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cmpsbl/failsafe) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@cmpsbl/failsafe

CMPSBL® FAILSAFE — Disaster Recovery & Platform Migration Engine.

Install

npm install @cmpsbl/failsafe

Usage

import { createBackup, restore, migrate } from '@cmpsbl/failsafe';

// Backup
const backup = await createBackup({
  supabaseUrl: 'https://xxx.supabase.co',
  supabaseKey: 'your-service-role-key',
});

// Restore
const result = await restore({
  targetUrl: 'https://yyy.supabase.co',
  targetKey: 'target-service-role-key',
  backupData: myBackupData,
  cleanRestore: true,
});

// Full migration
const migration = await migrate({
  source: { supabaseUrl: '...', supabaseKey: '...' },
  target: { targetUrl: '...', targetKey: '...' },
  options: { cleanRestore: true, validateIntegrity: true },
});

License

Apache-2.0 © Kenneth E Sweet Jr