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

@vyltr/browser

v1.0.0

Published

Vyltr browser SDK — behavioral bot detection for any web framework (React, Vue, Svelte, vanilla JS)

Readme

@vyltr/browser

Browser-side behavioral bot detection — no CAPTCHA, no friction, GDPR compliant.

npm version

Detects bots silently using mouse trajectories, keystroke timing, scroll patterns, headless browser signals, and device fingerprinting. Works with any framework — React, Vue, Svelte, Next.js, or vanilla JS.

Install

npm install @vyltr/browser

Quick Start — Vanilla JS

import { init } from '@vyltr/browser';

init('YOUR_SITE_ID');

That's it. Vyltr starts collecting behavioral signals immediately and sends them to the API after 3 seconds.

React

// 1. App root — initialize once
import { useVyltr } from '@vyltr/browser/react';

export default function App() {
  useVyltr('YOUR_SITE_ID');
  return <YourApp />;
}

// 2. Before a sensitive action (login, checkout...)
import { useVyltrVerify } from '@vyltr/browser/react';

export default function LoginForm() {
  const { flushAndGetId } = useVyltrVerify();

  const handleLogin = async () => {
    const sessionId = await flushAndGetId();
    await fetch('/api/login', {
      method: 'POST',
      body: JSON.stringify({ email, password, vyltr_session_id: sessionId }),
    });
  };

  return <button onClick={handleLogin}>Login</button>;
}

Next.js

// app/layout.tsx
'use client';
import { useVyltr } from '@vyltr/browser/react';

export default function RootLayout({ children }) {
  useVyltr(process.env.NEXT_PUBLIC_VYLTR_SITE_ID!);
  return <html><body>{children}</body></html>;
}

Vue 3

// main.ts
import { createApp } from 'vue';
import { init } from '@vyltr/browser';
import App from './App.vue';

init(import.meta.env.VITE_VYLTR_SITE_ID);
createApp(App).mount('#app');

Svelte

// +layout.ts (SvelteKit)
import { browser } from '$app/environment';
import { init } from '@vyltr/browser';

if (browser) {
  init(import.meta.env.VITE_VYLTR_SITE_ID);
}

CDN (no bundler)

<script>window.VYLTR_SITE_ID = 'YOUR_SITE_ID';</script>
<script src="https://vyltr.ai/collector.js" async></script>

Manual flush (server-side verify)

import { flushAndGetId } from '@vyltr/browser';

// Before login / payment / any sensitive action:
const sessionId = await flushAndGetId();

// Send sessionId to your backend, then:
// POST /api/v1/behavior/verify { session_id: sessionId }

Options

init('YOUR_SITE_ID', {
  apiUrl: 'https://vyltr.ai/api/v1',  // Custom API endpoint
  submitInterval: 15000,               // Signal submission interval (ms)
});

Server-side verification (Node.js)

const createVyltr = require('@vyltr/sdk');
const vyltr = createVyltr('YOUR_SDK_KEY');

app.post('/login', async (req, res) => {
  const result = await vyltr.verify({
    sessionId: req.body.vyltr_session_id,
    ip: req.ip,
    userAgent: req.headers['user-agent'],
  });

  if (result.action === 'block') {
    return res.status(403).json({ error: 'Bot detected' });
  }
  // proceed with login...
});

Signals collected

| Signal | Description | |--------|-------------| | Mouse trajectory | 60-point path with timing | | Click timing variance | Standard deviation between clicks | | Scroll depth & speed | Natural vs automated patterns | | Keystroke cadence | Characters per second | | Touch events | Mobile vs desktop | | Headless detection | WebDriver, PhantomJS, CDP, ChromeDriver | | Device fingerprint | Screen, language, timezone | | Session duration | Time-on-page analysis |

Privacy & GDPR

  • No personal data collected (no name, email, IP stored client-side)
  • All data processed server-side in France 🇫🇷
  • Compliant with GDPR, ePrivacy Directive
  • No cookie required

Get your free Site ID at vyltr.ai — free up to 10,000 requests/month.