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

vault-reader

v0.1.2

Published

Paginated, EPUB-style web reader for Obsidian vaults. Works on e-ink (Boox) and iPhone.

Downloads

458

Readme

vault-reader

A paginated, EPUB-style web reader for browsing Obsidian vaults. Designed for e-ink devices (Boox Palma) and iPhone. Live-reloads vault edits in dev, builds to an offline PWA for production.

Quick start

# Zero-config CLI (recommended)
npx vault-reader dev ~/Documents/my-vault

Then open the printed URL on any device. Edit a note in Obsidian and the reader updates instantly.

Features

  • Paginated reading - CSS multi-column pagination, one note per "book." Page-turn via keyboard (Boox volume buttons in Page-turning mode), swipe (iPhone), or tap zones.
  • Live wikilinks - [[note]] links render as tappable anchors that jump between notes. Back/forward browser navigation works.
  • Live reload - edits in Obsidian appear in the reader within ~1s (dev mode). No manual rebuild.
  • Offline PWA - production build is an installable, offline-capable PWA. Add to Home Screen on iPhone or Boox.
  • Cross-device - same codebase serves e-ink (light theme, no animations) and iPhone (dark/sepia, slide transitions).
  • Search + browse - sidebar with folder grouping, live title/tag search, reading-position memory per note.

Usage

CLI

# Dev server with live reload
vault-reader dev /path/to/vault

# Static build for production / PWA
vault-reader build /path/to/vault --out ./dist

# Mount under a sub-path (for reverse-proxy hosting)
vault-reader dev /path/to/vault --base /vault/

Vite plugin (embed in your own project)

import { vaultLivePlugin } from 'vault-reader/vite';

export default {
  plugins: [vaultLivePlugin('/path/to/vault')]
};

Library (programmatic vault processing)

import { processVault } from 'vault-reader';

const { notes, manifest, byId } = await processVault('./my-vault');
console.log(`${manifest.length} notes, ${manifest.reduce((a, n) => a + n.links.length, 0)} links`);

How it works

  1. Vault processor (vault.mjs) - scans .md files, parses frontmatter, resolves [[wikilinks]] into a bidirectional link graph.
  2. Vite dev plugin (vite-plugin.mjs) - serves manifest + per-note JSON from memory, watches for file changes, triggers live reload.
  3. Frontend (frontend/) - vanilla JS reader with CSS multi-column pagination, markdown-it rendering, keyboard/swipe/tap navigation, sidebar search.
  4. Production - vault-reader build emits a static site with service-worker offline caching.

Boox volume-button paging

On Boox devices, set the browser app's button mode to Page-turning (long-press app icon > Optimize > Others > Customize Buttons). The volume buttons send PageDown/PageUp key events that the reader listens for.

Tech stack

  • Vite 6 + vite-plugin-pwa
  • Vanilla JS (no framework, ~50KB gzipped)
  • markdown-it with a custom wikilink plugin
  • CSS multi-column pagination

License

MIT