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

@promptscout/live-ai-traffic

v0.1.2

Published

PromptScout live AI traffic event contracts, classifiers, and runtime collectors.

Downloads

418

Readme

PromptScout Live AI Traffic

Repository for the PromptScout live AI traffic package, provider integrations, and examples.

Current Release Status

This repo publishes one public npm package:

npm install @promptscout/[email protected]

The durable public import contract uses subpath exports from that package:

import { classifyAiTraffic } from "@promptscout/live-ai-traffic/core";
import { trackPromptScoutAiTraffic } from "@promptscout/live-ai-traffic/vercel-middleware";

The current package version is 0.1.2. The first public version was 0.1.0.

Add the proxy.ts or middleware.ts shown in docs/integrations/vercel.md. Configure only the PromptScout ingest URL and site-scoped ingest token in server-side or Vercel environment variables. The token resolves the PromptScout site source; do not add a separate brand ID or team-site ID to the dogfood app.

Workspace Layout

This repository uses Yarn workspaces:

  • packages/core contains shared event contracts, classification helpers, privacy normalization helpers, and the PromptScout ingest client.
  • packages/* contains private provider implementation workspaces plus implemented runtime adapters such as packages/vercel-middleware and packages/node-middleware.
  • packages/vercel-middleware contains the Next.js/Vercel Proxy and Middleware collector used by the local dogfood path.
  • packages/cloudflare-worker contains the Cloudflare Worker runtime collector for customer-owned Cloudflare routes.
  • packages/cloudfront-aws contains the AWS CloudFront real-time log parser and regional Kinesis/Lambda consumer helpers.
  • packages/netlify-edge contains the Netlify Edge Function runtime collector for Netlify-hosted routes.
  • packages/fastly-compute contains the Fastly JavaScript Compute collector.
  • examples/* contains minimal workspace examples, including the Next.js middleware example under examples/vercel-nextjs and the Express middleware example under examples/express.
  • examples/cloudflare-worker contains the runnable Wrangler example for the customer-owned Cloudflare Worker collector.
  • examples/cloudfront-aws contains the AWS CloudFront real-time logs through Kinesis example notes.
  • examples/netlify-edge contains the Netlify Edge Function example and declaration for Netlify-hosted routes.
  • docs/getting-started.md and docs/integrations/* hold the initial docs shell.
  • docs/install-matrix-and-signal-quality.md explains how customers should choose an install path and how to interpret collector signal quality.

The tag-based release workflow publishes only the root @promptscout/live-ai-traffic package. Internal workspaces and examples keep the same version for traceability, but remain private and are not published. See docs/release.md for npm trusted publishing, version tags, GitHub Release creation, and workflow details. packages/node-middleware and runtime collectors such as packages/vercel-middleware, packages/netlify-edge, packages/cloudfront-aws, and packages/fastly-compute reuse the shared core classifier, privacy normalization helpers, and ingest client for implemented paths. CloudFront/AWS is implemented through real-time access logs delivered to Kinesis Data Streams, not CloudFront Functions. examples/fastly-compute shows how to wire Fastly JavaScript Compute to customer origin and PromptScout ingest backends.

Verification

Run the repo-owned verification command before pushing changes:

./scripts/verify

The command is intentionally lightweight while the repository is in its foundation phase. It checks repository text formatting, scaffold completeness, shell script syntax, and focused verifier tests. See docs/verification.md for the full contract and current non-goals.

The shared request observation schema is documented in docs/event-contract.md. These events are analytics observations, not proof that an AI answer mentioned a brand or page.

Classifier source evidence and fixture confidence labels are documented in docs/evidence.md.

Customer-facing install selection, site-scoped ingest token behavior, and signal-quality guidance are documented in docs/install-matrix-and-signal-quality.md.

The package also ships docs-manifest.json, a stable integration guide manifest for apps that need guide metadata and markdown paths without scraping README links. The manifest includes a beta UI support note and all currently owned integration guides under docs/integrations.

Collector privacy, token rotation, failure handling, and operational ownership guidance is documented in docs/privacy-security-operations.md.