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

@hasna/backup

v0.1.2

Published

Local-first backup coverage, verification, restore planning, and AWS backup posture audits for agents and operators.

Readme

@hasna/backup

Local-first backup coverage, verification, restore planning, and AWS backup posture audits for agents and operators.

open-backup is the control layer around proven backup targets. It does not try to replace S3, AWS Backup, RDS snapshots, or local archives. It answers the operational questions those systems leave scattered:

  • What important data is covered?
  • Where is it backed up?
  • When was the last successful run?
  • Can the artifact be verified?
  • What would restore touch before anything is applied?
  • Which AWS resources have weak backup posture?

Install

bun install -g @hasna/backup

Quick Start

backup init
backup sources add ~/.hasna --name hasna-state
backup destinations add local ~/.hasna/backup/local --name local
backup plan
backup run
backup verify latest
backup restore plan latest --target /tmp/open-backup-restore

S3 Destination

backup destinations add s3 s3://my-backups/laptop --name s3-main --aws-profile default --region us-east-1
backup run --destination s3-main
backup verify latest

S3 support uses the installed AWS CLI and explicit named profiles. open-backup does not store AWS credentials.

AWS Audits

Read-only AWS posture checks are available for backup buckets, AWS Backup, and RDS/Aurora:

backup aws s3-audit --profile hasna-xyz-infra --bucket hasna-xyz-infra-backups-prod
backup aws backup-audit --profile hasna-xyz-infra --regions us-east-1
backup aws rds-audit --profile hasna-xyz-infra --regions us-east-1,eu-central-1
backup aws inventory --profile hasna-xyz-infra

CLI Surface

backup init
backup doctor
backup inventory
backup status
backup sources list|add|remove|inspect
backup destinations list|add|remove|test|inspect
backup plan
backup run
backup list
backup show <backup-id|latest>
backup manifest <backup-id|latest>
backup verify <backup-id|latest>
backup restore plan <backup-id|latest> --target <path>
backup aws inventory|s3-audit|backup-audit|rds-audit
backup-mcp

All CLI commands emit JSON by default so humans, agents, and CI can consume the same contract.

Safety Model

  • Restore is plan-only in the MVP. It never overwrites live data.
  • Secrets are excluded by default through archive exclusions.
  • Source mode inventory-only records coverage metadata without archiving file contents.
  • AWS commands are read-only except S3 uploads/downloads performed by explicit backup run/verify against an S3 destination.
  • Destructive backup lifecycle changes are not implemented in the MVP.

Local State

The default state directory is:

~/.hasna/backup/
  config.json
  manifests/
  runs.jsonl
  restore-plans/
  tmp/

Override it for tests or isolated runs:

HASNA_BACKUP_HOME=/tmp/backup-state backup init

Hasna Baseline

The first internal profile should cover:

backup init
backup sources add ~/.hasna --name hasna-state
backup sources add ~/.codewith --name codewith-state
backup sources add ~/workspace --name workspace
backup destinations add s3 s3://hasna-xyz-infra-backups-prod/open-backup/$(hostname) --name infra-s3 --aws-profile hasna-xyz-infra --region us-east-1
backup run --destination infra-s3
backup verify latest

MCP

backup-mcp exposes read-only tools by default:

  • backup_status
  • backup_inventory
  • backup_list
  • backup_verify
  • backup_restore_plan
  • backup_aws_inventory

The MCP surface intentionally does not expose restore apply or destructive lifecycle changes.

License

Apache-2.0