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

nyxvault

v1.0.1

Published

E2E Encrypted File Sharing – NyxVault πŸ¦žπŸ”

Readme

πŸ¦žπŸ” NyxVault

Self-hosted, end-to-end encrypted file sharing. Zero knowledge. Your server, your data.

License Node

✨ Features

  • πŸ” End-to-End Encryption β€” Files are encrypted in your browser before upload. The server never sees your data.
  • πŸ”‘ Argon2id + XChaCha20-Poly1305 β€” Same crypto used by ProtonMail and Signal.
  • πŸ“Ž Shareable Download Links β€” Each file gets a unique link with its own access token.
  • ⏰ Expiring Files β€” Set files to auto-delete after 1 hour, 24 hours, 7 days, or 30 days.
  • πŸ–₯️ Web UI + API β€” Beautiful dark UI for humans, REST API for bots/scripts.
  • πŸͺΆ Lightweight β€” Node.js + SQLite. No Docker required, no third-party dependencies.
  • πŸ“± Responsive β€” Works on desktop, tablet, and mobile.

πŸš€ Quick Start

git clone https://github.com/fabudde/nyxvault.git
cd nyxvault
bash setup.sh
node server.js

Open http://localhost:3870 and you're done.

πŸ“¦ Manual Setup

# Clone
git clone https://github.com/fabudde/nyxvault.git
cd nyxvault

# Install dependencies
npm install

# Configure
cp .env.example .env
# Edit .env with your own secrets:
#   API_KEY      β€” for API access (scripts, bots)
#   WEB_PASSWORD β€” for browser login
#   SESSION_SECRET β€” random string for sessions

# Create directories
mkdir -p data storage

# Start
node server.js

🐳 Docker

docker run -d \
  --name nyxvault \
  -p 3870:3870 \
  -v nyxvault-data:/app/data \
  -v nyxvault-storage:/app/storage \
  -e API_KEY=your-api-key \
  -e WEB_PASSWORD=your-password \
  -e SESSION_SECRET=your-secret \
  fabudde/nyxvault

Or with docker-compose:

version: '3.8'
services:
  nyxvault:
    image: fabudde/nyxvault
    ports:
      - "127.0.0.1:3870:3870"
    volumes:
      - ./data:/app/data
      - ./storage:/app/storage
    environment:
      - API_KEY=your-api-key
      - WEB_PASSWORD=your-password
      - SESSION_SECRET=your-secret
      - MAX_FILE_SIZE_MB=100
    restart: unless-stopped

πŸ”§ Reverse Proxy (Caddy)

vault.yourdomain.com {
    reverse_proxy 127.0.0.1:3870
}

πŸ“‘ API

Upload (with API key)

curl -X POST https://vault.yourdomain.com/api/upload \
  -H "X-API-Key: your-api-key" \
  -F "file=@/path/to/file.pdf" \
  -F "expires_hours=24"

Download

# Get metadata
curl https://vault.yourdomain.com/api/dl/{token}/meta

# Get encrypted blob
curl https://vault.yourdomain.com/api/dl/{token}/blob -o encrypted.bin

List files

curl https://vault.yourdomain.com/api/files \
  -H "X-API-Key: your-api-key"

πŸ” How Encryption Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Browser    β”‚     β”‚    Server    β”‚     β”‚  Recipient  β”‚
β”‚              β”‚     β”‚              β”‚     β”‚             β”‚
β”‚ 1. Generate  β”‚     β”‚              β”‚     β”‚             β”‚
β”‚    file key  β”‚     β”‚              β”‚     β”‚             β”‚
β”‚              β”‚     β”‚              β”‚     β”‚             β”‚
β”‚ 2. Derive    β”‚     β”‚              β”‚     β”‚             β”‚
β”‚    master keyβ”‚     β”‚              β”‚     β”‚             β”‚
β”‚    (Argon2id)β”‚     β”‚              β”‚     β”‚             β”‚
β”‚              β”‚     β”‚              β”‚     β”‚             β”‚
β”‚ 3. Encrypt   β”‚     β”‚              β”‚     β”‚             β”‚
β”‚    file      │────▢│ 4. Store     β”‚     β”‚             β”‚
β”‚   (XChaCha20)β”‚     β”‚    encrypted β”‚     β”‚             β”‚
β”‚              β”‚     β”‚    blob only β”‚     β”‚             β”‚
β”‚              β”‚     β”‚              β”‚     β”‚             β”‚
β”‚              β”‚     β”‚ 5. Generate  │────▢│ 6. Enter    β”‚
β”‚              β”‚     β”‚    share linkβ”‚     β”‚    passphraseβ”‚
β”‚              β”‚     β”‚              β”‚     β”‚             β”‚
β”‚              β”‚     β”‚              │◀────│ 7. Download β”‚
β”‚              β”‚     β”‚              β”‚     β”‚    blob     β”‚
β”‚              β”‚     β”‚              β”‚     β”‚             β”‚
β”‚              β”‚     β”‚              β”‚     β”‚ 8. Decrypt  β”‚
β”‚              β”‚     β”‚              β”‚     β”‚   (Argon2id β”‚
β”‚              β”‚     β”‚              β”‚     β”‚  + XChaCha) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The server NEVER sees plaintext. Only encrypted blobs.

πŸ›‘οΈ Security

  • XChaCha20-Poly1305 β€” Authenticated encryption (AEAD)
  • Argon2id β€” Memory-hard key derivation (64MB, 3 iterations)
  • Per-file salt + nonce β€” No key reuse, ever
  • Filename encryption β€” Even filenames are encrypted
  • Rate limiting β€” Brute-force protection on downloads and uploads
  • No server-side decryption β€” Zero knowledge architecture

Audited By

  • πŸ¦‰ Tyto β€” Security Advisor (9.5/10 rating)

βš™οΈ Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | PORT | 3870 | Server port | | API_KEY | β€” | API authentication key | | WEB_PASSWORD | β€” | Web UI login password | | SESSION_SECRET | β€” | Express session secret | | MAX_FILE_SIZE_MB | 100 | Maximum upload size in MB |

πŸ“ License

MIT β€” do whatever you want with it.

πŸ‘₯ Credits

Built by Nyx 🦞 and Fabian 🐻

Security review by Tyto πŸ¦‰


Your files, your server, your keys. No cloud, no tracking, no bullshit. πŸ”