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

@uselore/cli

v0.1.2

Published

Download your Lore knowledge base from the command line.

Readme

@uselore/cli

Download your Lore knowledge base from the command line — every entry, every section, your taxonomy and settings, and (by default) your margin comments and search vectors, as one JSON file. Built to be driven by a person or by a coding agent.

npx @uselore/cli login     # opens your browser to sign in
npx @uselore/cli export    # writes lore-export-YYYY-MM-DD.json

Or install it once: npm install -g @uselore/cli, then run lore …. Needs Node 22 or later.

Commands

| Command | What it does | |---|---| | lore login | Opens Lore's sign-in page in your browser and keeps a token for this machine. --no-browser prints the URL instead of opening it; --timeout <seconds> (default 300). The browser must be on the same machine as the CLI: sign-in is handed back to it at 127.0.0.1, so it can't be completed from the other end of an SSH session or outside a container. | | lore whoami | Shows the account and server you're signed in to. | | lore export | Downloads the whole knowledge base. -o <file> names the file; --no-comments and --no-vectors leave those out. From 0.1.1 it won't replace an existing file unless you pass --force. | | lore schema | Prints the JSON Schema of the export file; --example prints a small sample file. | | lore logout | Revokes this machine's sign-in on the server and deletes it locally. |

Every command takes --server <url> (default https://lore.uselore.app, or $LORE_URL); from 0.1.2 it must be https, or plain http on localhost only, and so must the sign-in URLs the server advertises, because your token travels to them. login, whoami and export take --json for machine-readable output on stdout (schema already prints JSON). Exit codes: 0 success, 1 failure, 2 bad usage.

What to know

  • The export file is plaintext. Your knowledge base is encrypted at rest on Lore's servers; the file you download is not. It contains everything — keep it somewhere safe.
  • The CLI never sees your password. You sign in on Lore's own page in your browser; the CLI receives a token for your account via a one-off listener on 127.0.0.1. That token moves your knowledge base in and out and nothing else — today that means export (the sign-in page also names import, which is coming, because a sign-in stays valid as long as it is used at least every 90 days). It can't change your account, edit individual entries, or be used by an AI client.
  • Where the token lives: credentials.json in $LORE_CONFIG_DIR, else $XDG_CONFIG_HOME/lore, else ~/.config/lore (%APPDATA%\lore on Windows), readable only by you. lore logout revokes it; you can also disconnect it from Settings → Connected apps in Lore.
  • A download is checked before it's saved. The file is written as <name>.partial and only renamed once it ends with the server's closing counts — and, for files up to 256 MiB, once those counts match what arrived — so a cut-off download never looks complete.
  • Limits: 10 exports per hour per account.