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

@logeix/phone-intent

v1.0.1

Published

Heuristic phone call intent tracking for LOGEIX Astro + Cloudflare Pages sites

Readme

@logeix/phone-intent

Heuristic phone call intent tracking for LOGEIX client sites (Astro + Cloudflare Pages + D1).

Records tap and resolve events when visitors click tel: links, estimates likely call duration via wall-clock watch + engagement signals, and stores rows in each site's D1 database.

Install

Public GitHub release tarball — no PAT, no .npmrc, no git/SSH:

"@logeix/phone-intent": "https://github.com/logeix/phone-intent/archive/refs/tags/v1.0.1.tar.gz"
npm install

Works on Cloudflare Pages CI with zero secrets. Bump the tag URL when releasing (e.g. v1.0.2).

Optional: after npm login on npmjs.com, publish with npm publish --access public and sites can use "@logeix/phone-intent": "^1.0.1" instead.

The repo and package are public but unlisted — hard to find unless you know the URL.

Site setup

1. D1 migration

npx wrangler d1 execute YOUR-FORMS-DB --remote --file=node_modules/@logeix/phone-intent/migrations/phone-intent-events.sql

2. config.json

"phone_intent": {
  "enable": true,
  "endpoint": "/api/track-phone-intent/",
  "debug": "auto",
  "watch_timeout_ms": 300000,
  "thresholds": {
    "bounce_max_ms": 8000,
    "short_max_ms": 20000,
    "medium_max_ms": 120000,
    "long_max_ms": 300000
  }
}

3. Base.astro

{
  config.phone_intent?.enable && (
    <script>
      import { initPhoneIntent } from '@logeix/phone-intent/client';
      import siteConfig from '@/config/config.json';
      initPhoneIntent(siteConfig.phone_intent);
    </script>
  )
}

4. Pages Functions (thin re-exports)

functions/api/track-phone-intent.ts:

export { onRequestPost } from '@logeix/phone-intent/server/track-phone-intent';

functions/api/close-stale-phone-intents.ts:

export {
  onRequestPost,
  onRequestGet,
} from '@logeix/phone-intent/server/close-stale-phone-intents';

Requires D1 binding DB and SITE_NAME in wrangler.toml / Pages env (same as contact form).

Publish (maintainers)

  1. Bump version in package.json
  2. npm run build (updates committed dist/)
  3. Commit, tag (git tag v1.0.2), push tag
  4. Update client sites to the new tarball URL (or publish to npmjs)

Debug

  • Localhost / ?phoneIntentDebug=1 / localStorage.phone_intent_debug = '1'
  • Optional PHONE_INTENT_CRON_SECRET for manual stale-close endpoint