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

browsey

v0.1.2

Published

Mobile-friendly web file browser. Serve any directory and browse it from your phone.

Readme

Browsey

A mobile-friendly web file browser CLI tool built with Bun.

Start a local web server to browse files from any device on your network - perfect for quickly accessing files on your computer from your phone or tablet.

Features

  • Mobile-first UI - Touch-friendly interface with large tap targets
  • Dark theme - Easy on the eyes
  • Copy path - One-tap copy of absolute file paths
  • Ignore patterns - Filter out files/folders with glob patterns
  • QR code - Scan to open on mobile instantly
  • Bonjour discovery - API advertises itself on local network (_browsey._tcp)
  • Zero config - Just run browsey and go

PWA Install

Browsey is installable as a PWA when served over HTTPS (or localhost). If you want Add to Home Screen on a remote device, put Browsey behind a TLS-terminating reverse proxy.

Quick Start

Run directly with bunx — no installation needed:

bunx browsey start .

Or install globally:

bun install -g browsey
browsey start .

Usage

# Serve current directory
browsey start

# Serve a specific directory
browsey start ./photos

# Custom ports
browsey start -p 3000 --app-port 3001

# Open browser automatically
browsey start --open

# Allow file modifications (default is read-only)
browsey start --no-readonly

# Ignore patterns
browsey start -i "node_modules,.git,*.log"

# Show hidden files
browsey start --hidden

# All options
browsey start ./my-folder -p 4200 --app-port 4201 -i "node_modules,.git" --hidden --open --no-readonly --no-qr

All commands work with bunx browsey too:

bunx browsey start ./photos --open

Options

| Option | Description | Default | |--------|-------------|---------| | [path] | Directory to serve | . (current) | | -p, --port <port> | Port number | 4200 | | -h, --host <host> | Host to bind | 0.0.0.0 | | -i, --ignore <globs> | Comma-separated ignore patterns | - | | --open | Open browser automatically | false | | --no-readonly | Allow file modifications | false | | --hidden | Show hidden files | false | | --no-qr | Do not display QR code | false | | --no-bonjour | Disable Bonjour/mDNS API advertisement | false | | --no-https | Disable HTTPS | - | | --https-cert <path> | Path to TLS certificate (PEM) | ./certs/browsey.pem | | --https-key <path> | Path to TLS private key (PEM) | ./certs/browsey-key.pem |

API

Browsey exposes a simple REST API:

| Endpoint | Description | |----------|-------------| | GET /api/list?path=/ | List directory contents | | GET /api/file?path=/file.txt | Download a file | | GET /api/stat?path=/file.txt | Get file metadata |

Response format

GET /api/list?path=/

{
  "path": "/",
  "items": [
    {
      "name": "documents",
      "type": "directory",
      "size": 4096,
      "modified": "2024-01-15T10:30:00.000Z",
      "extension": null
    },
    {
      "name": "photo.jpg",
      "type": "file",
      "size": 245678,
      "modified": "2024-01-14T08:20:00.000Z",
      "extension": "jpg"
    }
  ]
}

Development

# Clone the repo
git clone https://github.com/vforsh/browsey.git
cd browsey

# Install dependencies
bun install

# Run in dev mode
bun run dev

# Build
bun run build

# Link locally for testing
bun link

Tech Stack

  • Bun - Runtime, bundler, and package manager
  • TypeScript - Type safety
  • Bun.serve - Native HTTP server
  • Bun.Glob - Pattern matching
  • Commander.js - CLI argument parsing