npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

supabackup

v0.1.0

Published

Supabackup is a node package, that allows you to easily perform your supabase backup operations for free. This package creates a backup of your given database tables.

Readme

SUPABACKUP

Made-In-Senegal

Supabackup is a node package, that allows you to easily perform your supabase backup operations for free. This package creates a backup of your given database tables. The backup is stored on your supabase storage. (in json format) You can add this on your administration interface to add backup feature.

Getting Started

Installation 📥

Make sure you have Node, Npm already installed in your system. you can check if Node, Npm available in your system by running below command,

node -v

npm -v

If it's not installed in your system then please install them by checking official documentation of,

  • https://nodejs.org/en/

After that, Install Package with below command :

npm install supabackup

Usage ✅

Initializing

You can initialize a new Supabackup client using the initializeClient() method. It's allow you to configure your backup.

Parameters

  1. supabaseUrl required string

    The unique Supabase URL which is supplied when you create a new project in your project dashboard.

  2. supabaseServiceKey required string

    You can find the SERVICE_KEY on :

    Setings > (project setings) API > service_role secret click on reveal and copy the key

Example 💛

initializeClient()

import { initializeClient } from 'supabackup'

// Create a single supabase client for interacting with your database 
const supabackup = initializeClient('https://xyzcompany.supabase.co', 'service-key')

Backing up

You can make a new backup of your database using the backup() method.

Parameters

  1. supabackupClient required

    create with initializeClient()

  2. bucket string required

    name that you give to your bucket (storage container)

  3. tables required array(string)

    array of tables that you want to backup

Example 💛

backup()

import { initializeClient, backup } from 'supabackup'

// Create a single supabase client for interacting with your database 
const supabackup = initializeClient('https://xyzcompany.supabase.co', 'service-key')

// Backup the given tables (chat, user) on the bucket (Backup Chat)
backup(supabackup, "Backup Chat", ['user', 'chat']);

You can found the backup : storage > Backup Chat > Backup [Date]

Restoring

You can your database using the restore() method.

Parameters

  1. supabackupClient required

    create with initializeClient()

  2. bucket string required

    name that you give to your bucket (storage container)

  3. folder string required

    backup folder name that you can find in your bucket example : "Backup [Date backup]"

  4. tables required array(string)

    array of tables that you want to backup

Example 💛

backup()

import { initializeClient, restore } from 'supabackup'

// Create a single supabase client for interacting with your database 
const supabackup = initializeClient('https://xyzcompany.supabase.co', 'service-key')

// Restore the given tables (chat, user) on the database
restore(
    supabackup, 
    "Backup", 
    'Backup 2022-01-30T13:48:12.589Z', 
    ['user', 'chat']
);

Contributing 🤝

Bug reports and Pull Requests are welcome 👋🏽
You can tell me on issues

License 🔖

This project is under MIT License.