
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
Supavault is a simple library + CLI tool to backup and restore your tables on Supabase. Data is serialized and deserialized to/from JSON and backup files are created within Supabase Storage.
npm i supavault
Usage: supavault [options] [command]
CLI to backup and restore Supabase tables
Options:
-h, --help display help for command
Commands:
backup [options] <string> <string> <string> Backs up current state of specified tables in Supabase
restore [options] <string> <string> <string> Restores data given table names in Supabase
help [command] display help for command
Usage: supavault backup [options] <string> <string> <string>
Backs up current state of specified tables in Supabase
Arguments:
string Supabase url
string Session key
string Bucket name
Options:
-t, --tables <items> Comma-separated list of table names
-h, --help display help for command
Example
supavault backup SUPABASE_URL SESSION_KEY ANY_BUCKET_NAME_YOU_WANT --tables Users,Widgets
Usage: supavault restore [options] <string> <string> <string> <string>
Restores data given table names in Supabase
Arguments:
string Supabase url
string Session key
string Bucket name
string Folder name
Options:
-t, --tables <items> Comma-separated list of table names
-h, --help display help for command
Example
supavault restore SUPABASE_URL SESSION_KEY ANY_BUCKET_NAME_YOU_WANT --tables Users,Widgets
You can integrate the functionality into your project as follows. The parameters here are the same as the ones expected in the CLI:
import { backup, initializeClient, restore } from 'supavault';
const client = initializeClient(`https://yourdb.supabase.co`, `your-service-key`);
// Backing up (assuming top level await is supported)
const folderName = await backup(client, `backup`, [`User`, `Widget`]);
// Restoring
await restore(client, `backup`, folderName, [`User`, `Widget`])
Where do I get the SUPABASE_URL?
This URL can be found in Settings > API > Project URL.
Where do I get the SESSION_KEY?
This key can be found in Settings > API > Project API Keys > service_role.
⚠ This key has the ability to bypass Row Level Security. Never share it publicly.
Supavault is licensed under the MIT license. If this project has helped you in any way, attribution in your project's README would be much appreciated.
When opening PRs, please provide adequate information on the bug or feature request. The added detail and formatting will help me understand and resolve your issue faster.
FAQs
A simple library to backup your Supabase tables to Supabase storage.
We found that supavault demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.