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

wedbav

v0.2.0

Published

WEDBAV is a WebDAV server backed by a database. It stores an entire filesystem in a single database table — no need to explicitly create directories, similar to S3.

Readme

WEDBAV

WEDBAV is a WebDAV server backed by a database. It stores an entire filesystem in a single database table — no need to explicitly create directories, similar to S3.

Supported databases: SQLite, PostgreSQL, MySQL
Supported runtimes: Node.js, Deno, Bun

  HTTP Clients (WebDAV · REST · Browser)
            │
  ┌─────────▼──────────────────────────────────┐
  │  Hono  ─  Middleware (CORS · auth · logger) │
  │  WebDAV handlers  │  REST API  │  Browser   │
  └─────────┬──────────────────────────────────┘
            │
  ┌─────────▼──────────────────────────────────┐
  │         FsSubset Interface                  │
  │  stat · readdir · readFile · writeFile …    │
  └─────────┬──────────────────────────────────┘
            │
  ┌─────────▼──────────────────────────────────┐
  │         KyselyFs                            │
  │  implicit/explicit dirs · etag · streaming  │
  └─────────┬──────────────────────────────────┘
            │
  ┌─────────▼──────────────────────────────────┐
  │  Kysely ORM  →  PostgreSQL / SQLite / MySQL │
  │                                             │
  │  "filesystem" table                         │
  │   path(PK) · size · etag · content · meta  │
  └─────────────────────────────────────────────┘

Library usage

Install:

npm install wedbav

Database-backed filesystem

createKyselyFs accepts any Kysely dialect — the four built-in ones (PostgreSQL, MySQL, MSSQL, SQLite) as well as community dialects for PlanetScale, Cloudflare D1, Neon, libSQL, and many more. Install the dialect package for your database separately.

import { createKyselyFs, startServerFromFS } from "wedbav";
import { LibsqlDialect } from "@libsql/kysely-libsql";

// dbType "sqlite" applies to LibSQL since it is SQLite-compatible
const fs = createKyselyFs(new LibsqlDialect({ url: "file:data.db" }), { dbType: "sqlite" });
startServerFromFS(fs, { port: 3000, browser: "list" });

Bring your own filesystem

Any FsSubset-compatible filesystem can be passed — including the built-in adapters for the real filesystem or an in-memory filesystem:

import { createNodeFs, createLinkFs, createMemFs, startServerFromFS } from "wedbav";

// Serve the real filesystem (rooted at /)
startServerFromFS(createNodeFs(), { port: 3000 });

// Serve a specific local directory as the WebDAV root
startServerFromFS(createLinkFs(["/", "/home/user/files"]), { port: 3000 });

// Serve an in-memory filesystem
startServerFromFS(createMemFs({ "/hello.txt": "hello world" }), { port: 3000 });

Hono integration

Use createHono to get a Hono app you can mount inside an existing server:

import { Hono } from "hono";
import { createKyselyFs, createHono } from "wedbav";
import { PostgresDialect } from "kysely";
import { Pool } from "pg";

const fs = createKyselyFs(new PostgresDialect({ pool: new Pool({ connectionString: "..." }) }), { dbType: "pg" });
const webdavApp = createHono(fs, { browser: "list" });

// Mount at a sub-path in your existing Hono app
const app = new Hono();
app.route("/files", webdavApp);

WedbavOptions

| Option | Type | Default | Description | | --------- | ------------------------------------------------------------ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | port | number | 3000 / PORT env | Port to listen on (used by startServerFromFS) | | browser | "disabled" \| "public" \| "list" \| "enabled" \| "private" | "disabled" | public shows directory listing; list is alias to public; enabled also serves files inline; private is like public but requires basic auth | | auth | (user: string, pass: string) => boolean | env credentials | Custom auth callback; falls back to WEDBAV_USERNAME/WEDBAV_PASSWORD |

Self-hosted deployment

Set environment variables as needed:

If no database env is set, in-memory SQLite (:memory:) is used.

# PostgreSQL
WEDBAV_CONNECTION_STRING=postgresql://user:pass@host/db

# LibSQL / Turso
WEDBAV_CONNECTION_STRING=libsql://authToken:[email protected]

# SQLite (file-based)
WEDBAV_CONNECTION_STRING=file:/path/to/database.db

# Optional
PORT=3000
WEDBAV_USERNAME=admin
WEDBAV_PASSWORD=secret
WEDBAV_BROWSER=public      # disabled | public | list | enabled | private
WEDBAV_TABLE=filesystem    # custom table name

Deploy with Vercel