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

liffy

v0.1.0

Published

Split llms-full.txt into individual markdown files

Readme

liffy

liffy turns a monolithic llms-full.txt into a tree of leaves — small, searchable files you can assemble into LLM context with standard Unix tools.

Requirements: Node.js >= 20.

Install

npm install -g liffy
# or one-off
npx liffy --help

Quickstart

liffy https://vercel.com/docs/llms-full.txt
tree -L 3 liffy/vercel.com
liffy/
└── vercel.com
    ├── index.json
    ├── api/
    │   ├── auth.md
    │   ├── files.md
    │   └── rate-limits.md
    ├── concepts/
    │   ├── context.md
    │   ├── rag.md
    │   └── tasks.md
    └── examples/
        ├── file-upload.md
        └── sdk.md

Each file is a leaf — a small, self-contained piece of the original document, split along its natural section boundaries.

Now you can use standard Unix tools to build exactly the context you need.

# Find anything related to rate limits
rg "rate" liffy/vercel.com/docs

# Collect all API-related docs
fd . liffy/vercel.com/docs/api | xargs cat

# Build a context for "file upload"
rg -l "file upload" liffy/vercel.com/docs | xargs cat > context.txt

Pipe that directly into your LLM:

cat context.txt | llm "Summarize how file uploads work in this API"

No embeddings. No vector store. Just files, trees, and pipes.

Usage

liffy <input> [output-dir]
liffy split <input> [output-dir]
liffy list [output-dir]
liffy remove <files...>
liffy rm <files...>
liffy clean [output-dir]

Options:

  • --debug, -d show split diagnostics and flattening info
  • --help, -h show help
  • --version, -v show version

Output layout

  • URL input defaults to liffy/<host> (for example, liffy/vercel.com).
  • File input defaults to the current directory unless output-dir is given.
  • Output file paths are derived from each page URL (strip leading/trailing slashes and .md/.html).
  • If all pages share one top-level directory (for example, docs/), liffy flattens it for URL inputs (shown in --debug).
  • index.json is written alongside the output and contains a tree plus source (and name for URL inputs).

Split patterns

liffy detects common llms-full formats automatically:

  • Pattern A: # Title followed by Source: https://...
  • Pattern B: <page>...</page> with frontmatter containing source_url
  • Pattern C: # Title, blank line, then URL: https://...
  • Pattern D: Vercel-style dash-separated blocks with title: and source:

Code blocks are ignored when detecting boundaries.

Integration hints

When output is inside liffy/, liffy maintains liffy/AGENTS.md and may offer to update:

  • .gitignore to ignore liffy/
  • tsconfig.json to exclude liffy
  • AGENTS.md to add a liffy section

In TTY, you get a y/n prompt; in non-interactive runs it prints hints only. Consent is stored in liffy/.liffy.json.

liffy lets you treat your LLM documentation the way Unix always wanted you to: as a living, searchable filesystem of knowledge.