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

@linkpilot/config

v0.2.0

Published

TypeScript DSL for authoring linkpilot.config.ts — compiles to the JSON the LinkPilot daemon reads.

Readme

@linkpilot/config

TypeScript DSL for authoring linkpilot.config.ts. Compiles to the same JSON schema the LinkPilot GUI edits.

Lands in v0.2. CLI driver is lp config compile.

Quick start

npm i -D @linkpilot/config
# or: bun add -d @linkpilot/config
// linkpilot.config.ts
import { browser, defineConfig, printConfig, route } from "@linkpilot/config";

const config = defineConfig({
  defaultTarget: browser.arc(),
  rules: [
    route.host("github.com").to(browser.chrome.profile("Work")),
    route.host("notion.so").to(browser.chrome.profile("Work")),
    route.host("figma.com").to(browser.arc()),
    route.host("youtube.com").to(browser.arc.profile("Personal")),
    route.path("/oauth/*").keepSource(),
    route.fromApp("Slack").to(browser.chrome.profile("Work")),
  ],
  workspaces: [{ id: "work", displayName: "Work" }],
  settings: { smartRoutingEnabled: true },
});

printConfig(config);

Then:

lp config compile linkpilot.config.ts

The CLI runs your file through Bun (~30ms cold start, native TypeScript), validates the JSON it emits, and atomically writes it into the daemon's config path. The daemon's fsnotify watcher picks it up and reloads within a frame — any running GUI / CLI sees the new rules immediately.

lp config compile --to out.json writes to a path of your choosing instead (useful for git-tracked compiled outputs).

API

defineConfig(cfg)

Type-checks your config at edit time. Pass-through at runtime.

browser.*

browser.chrome             // BrowserHandle: callable + chainable
browser.chrome()           // Target { browser: "chrome", ... }
browser.chrome.profile("Work")
browser.chrome.incognito()
browser.chrome.newWindow()
browser.chrome.workspace("work")

Also: browser.arc, browser.firefox, browser.safari, browser.edge, browser.brave, browser.vivaldi, and browser.custom("your-id") for anything else.

route.*

Matchers:

route.host("github.com")           // glob host match
route.host("*.figma.com")
route.path("/oauth/*")             // glob path match
route.fromApp("Slack", "com.tinyspeck.slackmacgap")
route.fromBrowser("chrome")
route.fromProfile("Profile 1")
route.always()                     // catch-all

Combinators:

route.all(route.host("github.com"), route.path("/oauth/*"))
route.any(route.host("a.com"), route.host("b.com"))
route.not(route.fromApp("Slack"))

Escape hatch:

route.fromJson({ op: "url-host", pattern: "github.com" })

Modifiers (chain before the terminal action):

route.host("foo.com").priority(20).note("hot path").workspace("work").to(...)
route.host("legacy.com").disabled().to(...)

Terminals (turn a RouteBuilder into a PendingRule):

.to(browser.chrome())   // open
.keepSource()           // stay in source browser
.ask()                  // pop the picker
.block()                // drop silently

License

MIT OR Apache-2.0.