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

@backblaze-labs/goose-b2-backup

v0.3.0

Published

Back up your Goose (block/goose) sessions, config, and memory to Backblaze B2 — encrypted, incremental, WAL-safe.

Readme

goose-b2-backup

Back up your Goose state — sessions, config, memory, recipes, and history — to Backblaze B2. Encrypted, incremental, and WAL-safe. No Goose plugin required; it runs as a small standalone daemon.

Built on @backblaze-labs/agent-backup-core.

Why

Goose stores every session in a local SQLite database and your config/memory/recipes in plain files. There's no built-in full backup — goose session export only handles one session at a time. Lose the disk and it's gone. This mirrors all of it to B2 on a schedule.

Install

npm install -g @backblaze-labs/goose-b2-backup

Configure

Set credentials in the environment (or ~/.config/goose-b2-backup/config.json):

export B2_KEY_ID=004...
export B2_APPLICATION_KEY=K004...
export B2_BUCKET=my-goose-backups
export B2_ENCRYPTION_KEY="a long random passphrase"   # strongly recommended — see Security

Optional: B2_REGION, B2_PREFIX, B2_SCHEDULE (daily | weekly | cron), B2_KEEP_SNAPSHOTS, B2_ENCRYPT=false.

Run

goose-b2-backup            # daemon: auto-restore on first run, then scheduled backups
goose-b2-backup --once     # single backup then exit (good for cron / CI)
goose-b2-backup --install  # install an OS service (launchd / systemd / Task Scheduler) to run at login

What gets backed up

Resolved from Goose's actual paths (XDG on Linux and macOS; %APPDATA%\Block\goose on Windows; GOOSE_PATH_ROOT overrides all):

| Included | Location | |---|---| | Session history (SQLite, WAL-safe snapshot) | data: ~/.local/share/goose/sessions/sessions.db | | Projects index | data: ~/.local/share/goose/projects.json | | Config (model/provider/extensions) | config: ~/.config/goose/config.yaml | | Memory & recipes | config: ~/.config/goose/{memory,recipes}/ | | Command history & logs | state: ~/.local/state/goose/{history.txt,logs/} |

Excluded: downloaded models (data/models/ — large, re-fetchable) and SQLite -wal/-shm sidecars (folded into the snapshot).

Security

  • Set B2_ENCRYPTION_KEY. It's separate from your B2 credentials, so a leaked bucket key can't decrypt your backups. Without it, the tool falls back to using the B2 application key and warns you.
  • File-based secrets are never uploaded: config/secrets.yaml (only present if you disabled the keyring) and provider OAuth token caches (gemini_oauth/, githubcopilot/, etc.) are excluded.
  • Keyring-stored API keys are not on disk and therefore not in any backup — Goose's default. If you restore onto a new machine, re-enter provider keys (or re-run provider auth).

License

MIT