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

supawake

v1.0.0

Published

Keep Supabase free-tier databases active by pinging them periodically to prevent auto-pause.

Downloads

27

Readme

supawake

Keep your free-tier Supabase projects from auto-pausing. supawake is a tiny CLI that pings the Supabase REST API on a schedule so your databases stay warm.

Supabase pauses free-tier projects after ~7 days of inactivity. supawake prevents that with a single scheduled HTTP request — run it locally, in a cron job, or as a GitHub Action.

Install

npm install -g supawake

Or run without installing:

npx supawake ping

Requires Node.js 18+ (uses the built-in fetch).

Quick start

# 1. Add a project (interactive)
supawake add

# 2. Verify it's reachable
supawake status

# 3. Ping once
supawake ping

# 4. Or run continuously on a schedule
supawake start --interval "0 0 */3 * *"

Commands

| Command | Description | |---|---| | supawake add | Interactively add a Supabase project (name, URL, anon key) | | supawake remove <name> | Remove a project by name | | supawake list | List all configured projects | | supawake ping | Ping all projects once and exit | | supawake start [--interval <cron>] | Continuously ping projects on a cron schedule | | supawake status | Check which projects are currently reachable |

supawake start

Starts a long-running process that pings every project according to the given cron expression. Defaults to the value in settings.defaultInterval (every 3 days at midnight: 0 0 */3 * *).

supawake start                         # use default schedule from config
supawake start -i "*/30 * * * *"       # every 30 minutes
supawake start -i "0 */12 * * *"       # every 12 hours

How pings work

For each project, supawake sends an HTTP GET to:

https://<your-ref>.supabase.co/rest/v1/

…with your anon key in the apikey and Authorization: Bearer … headers. A 200 response means the project is alive. Anything else is reported as a failure.

The anon key is safe for this purpose — it's the same key you ship in client apps. Row-level security still protects your data.

Configuration

Configuration lives at ~/.config/supawake/config.json:

{
  "projects": [
    {
      "name": "anyigba",
      "url": "https://xyz.supabase.co",
      "anonKey": "eyJ..."
    }
  ],
  "settings": {
    "defaultInterval": "0 0 */3 * *",
    "notifications": {
      "enabled": false,
      "webhookUrl": ""
    }
  }
}

Notifications (optional)

Set notifications.enabled to true and provide a webhookUrl (Slack-compatible) to receive a simple { text: "…" } POST whenever one or more pings fail.

Running on GitHub Actions

The most reliable way to keep your projects alive is to let GitHub run supawake ping on a schedule. Save the following as .github/workflows/supawake.yml:

name: supawake

on:
  schedule:
    # Every 3 days at 06:00 UTC
    - cron: '0 6 */3 * *'
  workflow_dispatch:

jobs:
  ping:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Install supawake
        run: npm install -g supawake

      - name: Write config from secret
        run: |
          mkdir -p "$HOME/.config/supawake"
          echo "$SUPAWAKE_CONFIG" > "$HOME/.config/supawake/config.json"
        env:
          SUPAWAKE_CONFIG: ${{ secrets.SUPAWAKE_CONFIG }}

      - name: Ping all projects
        run: supawake ping

Then in your repo settings, add a secret called SUPAWAKE_CONFIG containing the full JSON contents of your ~/.config/supawake/config.json.

Development

git clone <this repo>
cd supawake
npm install
npm run build
node dist/index.js --help

Scripts:

  • npm run build — compile TypeScript to dist/
  • npm run dev — watch mode
  • npm run lint — ESLint
  • npm run format — Prettier

License

MIT