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

@lucidclient/speculate

v1.2.0

Published

Prefetch and prerender links from HTML attributes, using Speculation Rules where the browser supports them and falling back to prefetching on intent where it doesn't.

Readme

Speculate

Part of the Lucid Client suite - documentation coming soon

Make pages load faster by prefetching or prerendering the pages your links go to. Set it up with HTML attributes, and it uses the browser's Speculation Rules API where it's supported.

Features

  • Attribute Driven: Choose what happens to each link with data-speculate--* attributes.
  • Prefetch or Prerender: Fetch a page ahead of time, or render it ready to show straight away.
  • Choose When: When the visitor shows intent, when a link scrolls into view, or straight away.
  • Works Everywhere: Falls back to prefetching in browsers without Speculation Rules.
  • Kind to Connections: Does nothing for visitors saving data or on slow connections.

Installation

npm install @lucidclient/speculate

Usage

import speculate from "@lucidclient/speculate";

speculate.init();
<a href="/pricing" data-speculate>Prefetched when the visitor shows intent</a>
<a href="/blog" data-speculate="visible">Prefetched once it scrolls into view</a>
<a href="/signup" data-speculate--prerender="moderate">Prerendered when the visitor shows intent</a>

On a site with a Content Security Policy, add 'inline-speculation-rules' to script-src.