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

@jjosephgalicio/ztash

v0.1.7

Published

Self-hosted PWA for transferring images, text, links, and JSON between your phone and laptop on the same WiFi.

Downloads

882

Readme

Ztash

A self-hosted PWA for transferring images, text, links, and JSON between your phone and laptop on the same WiFi.

Runs locally on your machine. No accounts, no cloud, no fees. Your storage, your network.

🌐 Landing page: ztash.netlify.app

Quick start

npx @jjosephgalicio/ztash

That's it. First run prompts for a 4–6 digit PIN and saves it to ~/.ztash/.pin. Ztash prints two URLs:

  Laptop:  http://localhost:4123
  Phone:   http://192.168.1.10:4123
  PIN:     123456

Open the Phone URL on your phone (same WiFi as the laptop), enter the PIN, and start sending things back and forth.

Requires Node.js 22.5 or newer (Ztash uses node:sqlite from stdlib — no native build).

CLI flags

npx @jjosephgalicio/ztash [options]

  --pin <code>       Override the saved PIN (4-6 digits)
  --port <port>      HTTP port (default 4123)
  --data-dir <path>  Where to store sqlite + uploads (default ~/.ztash)
  --stop, --kill     Stop the running Ztash (sends SIGTERM by pid file)
  --version          Print version
  --help             Show help

A QR code of the phone URL is printed in the startup banner — scan with your phone camera and the page opens.

Limitations

  • iOS PWA install needs HTTPS. On plain HTTP, Add-to-Home-Screen falls back to a regular bookmark. The app still works fully.
  • Only images can be uploaded as files. Text, links, and JSON go through the Paste button.
  • Browser binary clipboard requires HTTPS. On plain HTTP, the in-app "Copy image" button falls back to copying the image's URL. Use the Open button → right-click → Copy image to get bytes into apps like Paint.
  • Items aren't encrypted on disk. Data lives in ~/.ztash/ztash.sqlite and ~/.ztash/uploads/. Delete the dir to wipe everything.

Development

Clone the repo, then:

npm install
cp .env.example .env   # then edit PIN
npm run dev:server     # API on :4123
npm run dev:client     # Vite dev server on :5173 (other terminal)

Run tests:

npm test

Configuration

| Env var | Default | Notes | |---|---|---| | PIN | (required) | 4–6 digits | | PORT | 4123 | Non-3000 to avoid conflicts with common dev servers | | MAX_UPLOAD_MB | 50 | Per-file cap on image uploads | | DATA_DIR | ./data (when run from repo) / ~/.ztash (when run via npx) | SQLite + uploads parent |

CLI flags (--pin, --port, --data-dir) override env vars. Env vars override the saved PIN file.

Architecture

  • Server: Node.js + Express, ~7 source files. SQLite via node:sqlite (stdlib). Server-Sent Events for real-time push to all connected clients.
  • Client: Vite + vanilla JS, ~16 KB gzipped. PWA with service worker, installable on Android. Type-aware cards (image / text / link / JSON), filter chips, gallery view.
  • Auth: PIN gate via httpOnly cookie. Constant-time compare, rate-limited login attempts.

See docs/superpowers/specs/ for the design spec.

License

MIT — see LICENSE.