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

res-md

v0.1.7

Published

Continually collect web content into local reservoirs of markdown files

Downloads

212

Readme

res

[!WARNING] To date, this project has been mostly vibe-coded and has not been hardened. There are missing features and likely bugs, and there will likely be breaking changes.

res is a CLI tool and Typescript library to continually collect web content into a local "reservoir" (organized directory) of markdown files for use as a personal document corpus in RAG pipelines or in search/discovery applications.

Documentation

Key Concepts

Channels

A channel represents a content source, along with logic around fetching items from the source and converting them into markdown files. res ships with one built-in channel type, for periodically fetching RSS feeds. res also allows users to define their own channel types by providing custom "fetcher" executables which handle the fetching and Markdown conversion from custom sources.

Channels are managed via the res channel command, and the automated background fetching can be toggled via res start and res stop.

Channel configurations allow for specifying logic around refresh intervals, rate-limits, and deduplication logic.

Content Items

Items consist of:

  • a markdown file
  • optional supplementary static resources

All items are stored within a directory corresponding to its channel of origin.

Each item must have a filename which is unique within its channel, which will also be the name of the item subdirectory containing related static resources.

Internally, res tracks items by a globally unique and increasing-in-time serial number, and stores their fetch time and retention information (see below).

The res content list command lists content matching the given query.

Retention Locks

Users may keep track of whether a particular content item still needs to be processed by a given workflow by placing a "retention lock" on an unprocessed item. This lock is identified by a user-defined name (or defaults to the name "[global]"), and serves two overlapping functions:

  • tags content items
  • signals to the system not to delete the content item if the reservoir begins to consume too much disk space

The res retain and res release commands are used to apply or release locks, respectively. Locks may be applied automatically to new content from a particular channel via res retain channel, and may be added/removed in bulk to contiguous sequences of content IDs via res retain range.

Custom Fetchers

The res add-fetcher command can be called with an executable as an argument. The executable will be copied to ~/.config/res or a similar platform-appropriate directory, assuming there are no duplicates. Users can then create channels using a type identified by the name of the executable. The executable will be run from an ephemeral directory on the channel's schedule, prepopulated with an outs directory at the top level. When the user executable completes running, res will look in outs directory for Markdown files and any subdirectories with the same name as a Markdown file, track those files as res items, and place those files into the configured channel.