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

web-prodeeplinks

v0.1.0

Published

Secure deep linking SDK with license validation and browser fingerprinting for web apps (React, Next.js, Vue, etc.)

Downloads

126

Readme

web-prodeeplinks

Secure deep linking SDK for web apps with license key validation and browser fingerprinting.

Works with any JavaScript web framework — React, Next.js, Vue, Svelte, Angular, or vanilla JS — because the core SDK has zero required framework dependencies.

License required: A valid license key from the ProDeepLinks portal is required.

Features

  • License key validation against api.prodeeplinks.com
  • Browser fingerprint matching for deferred deep links
  • Same resolution flow as rn-prodeeplinks: API first → URL fallback → null
  • Optional Next.js React hook (web-prodeeplinks/next)
  • Full TypeScript support
  • Tree-shakeable, framework-agnostic core

Installation

npm install web-prodeeplinks

For the optional Next.js hook, react is a peer dependency (you already have it in Next.js apps):

npm install web-prodeeplinks react

Quick start (any framework)

import { init, getDeepLink } from 'web-prodeeplinks';

const initResult = await init({
  licenseKey: 'your-license-key-from-portal',
  appVersion: '1.0.0', // optional, sent in fingerprint
});

if (!initResult.success) {
  console.error(initResult.error);
} else {
  const result = await getDeepLink();
  if (result.success && result.url) {
    window.location.href = result.url;
  }
}

Deep link resolution flow

  1. Collect browser fingerprint (user agent, screen, timezone, etc.)
  2. Call /custom-deep-link/fingerprint/match on the ProDeepLinks API
  3. If no API match, check the current page URL for common query params (url, deeplink, link, redirect, target, dl) or hash redirects
  4. Return null if nothing is found

React (Vite, CRA, etc.)

import { useEffect, useState } from 'react';
import { init, getDeepLink } from 'web-prodeeplinks';

export function App() {
  const [deepLink, setDeepLink] = useState<string | null>(null);

  useEffect(() => {
    async function setup() {
      await init({ licenseKey: import.meta.env.VITE_PRODEEPLINKS_KEY });
      const result = await getDeepLink();
      if (result.url) setDeepLink(result.url);
    }
    setup();
  }, []);

  if (deepLink) {
    window.location.href = deepLink;
  }

  return null;
}

Next.js (App Router)

Use the optional client hook from the /next subpath:

'use client';

import { useProDeepLink } from 'web-prodeeplinks/next';

export function DeepLinkResolver() {
  const { loading, result } = useProDeepLink({
    licenseKey: process.env.NEXT_PUBLIC_PRODEEPLINKS_KEY!,
    appVersion: '1.0.0',
  });

  if (loading) return null;

  if (result?.success && result.url) {
    window.location.href = result.url;
  }

  return null;
}

Mount <DeepLinkResolver /> once in your root layout or a top-level client component.

Vue / Svelte / Angular / Vanilla JS

Import the same functions from web-prodeeplinks and call init() + getDeepLink() on app mount. No framework-specific package is needed.

import { init, getDeepLink } from 'web-prodeeplinks';

document.addEventListener('DOMContentLoaded', async () => {
  await init({ licenseKey: 'your-license-key' });
  const { url } = await getDeepLink();
  if (url) window.location.href = url;
});

API reference

init(config)

| Field | Type | Required | Description | |-------|------|----------|-------------| | licenseKey | string | yes | License key from portal | | appVersion | string | no | Version sent in fingerprint (default: "web") |

getDeepLink(callback?)

Returns { success, url?, message?, error? }.

trackAnalyticsEvent(event)

Send custom analytics after init().

isReady() / reset()

Check initialization state or clear stored license key.

useProDeepLink(options) — from web-prodeeplinks/next

Client-only React hook. Options match init() plus autoResolve (default true).

npm publishing notes

When you publish to npm:

  • The core entry (web-prodeeplinks) works everywhere fetch and browser APIs exist
  • The Next entry (web-prodeeplinks/next) is optional and only for React client components
  • next and react are optional peer dependencies — non-React apps won't need them
npm run build
npm publish

Related package

  • rn-prodeeplinks — React Native SDK with the same API and resolution pattern

License

MIT — see LICENSE. Usage requires a valid ProDeepLinks license key.