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

@tracetail/angular

v3.1.2

Published

Angular service for TraceTail browser fingerprinting, with 99.6% accuracy.

Readme

@tracetail/angular

Angular service for TraceTail browser fingerprinting, with 99.6% accuracy: a stable visitor ID for every browser, without cookies or storage. It supports Angular 17 to 22.

Install

npm install @tracetail/angular

Configure

In a standalone app:

// app.config.ts
import { ApplicationConfig } from '@angular/core';
import { provideTraceTail } from '@tracetail/angular';

export const appConfig: ApplicationConfig = {
  providers: [provideTraceTail({ apiKey: 'YOUR_API_KEY', endpoint: 'https://tracetail.io/api' })],
};

In an NgModule app:

import { TraceTailModule } from '@tracetail/angular';

@NgModule({
  imports: [TraceTailModule.forRoot({ apiKey: 'YOUR_API_KEY', endpoint: 'https://tracetail.io/api' })],
})
export class AppModule {}

Create a free API key at tracetail.io/auth. The options are those of @tracetail/js: apiKey, endpoint, timeout and debug. Without an API key the service runs keyless: the visitor ID is computed in the browser and nothing is sent anywhere.

Identify a visitor

import { Component, OnInit, inject } from '@angular/core';
import { TraceTailService } from '@tracetail/angular';

@Component({
  selector: 'app-checkout',
  standalone: true,
  template: `<input type="hidden" name="visitorId" [value]="visitorId" />`,
})
export class CheckoutComponent implements OnInit {
  private readonly tracetail = inject(TraceTailService);
  visitorId = '';

  async ngOnInit() {
    const { visitorId } = await this.tracetail.generateFingerprint();
    this.visitorId = visitorId;
  }
}

TraceTailService offers:

| Member | Description | | --- | --- | | generateFingerprint(options?) | Identifies the browser. Options: verbose, detailed (needs an API key) and refresh (skip the cache). Results are cached for the page. If the API call failed, the result still has visitorId, and error holds { status, code, message }. | | fingerprint$ | The latest result, or null before the first identification. | | loading$ | true while identifying. | | error$ | Set when identification itself failed, for example when called without a DOM. | | getComplianceContext() | Browser hints (Global Privacy Control, Do Not Track and the inferred region) for deciding whether to ask for consent first. You are responsible for any consent your visitors' jurisdiction requires. | | client | The underlying TraceTail client from @tracetail/js. |

With Angular SSR, call generateFingerprint() only in the browser (for example inside afterNextRender), because it needs the DOM.

Verify on your server

The visitor ID comes from the browser, so your backend can't tell a real one from one a script made up. Before you trust it for a sign-up, login or payment, send the requestId that generateFingerprint() returns along and look it up with the Server API and a secret server key (tts_…, created in Settings → API keys and kept on your server):

curl https://tracetail.io/api/v1/identifications/$REQUEST_ID \
  -H "Authorization: Bearer $TRACETAIL_SERVER_KEY"

Check that the returned visitorId is the one your page sent. The docs have the full response and Node.js and Python examples.

AI coding agents

Claude Code, Codex, Cursor and other agents can add TraceTail on their own. Connect the MCP server at https://tracetail.io/mcp (no account or key needed; in Claude Code, claude mcp add --transport http tracetail https://tracetail.io/mcp), install the skill with npx skills add https://tracetail.io, or point the agent at llms.txt. An agent gets the API keys through a setup link: it hands you one link, where you sign in with an emailed code and add a card or continue free, and receives a key for each site.

Pricing

Every account includes 1,000 identification requests a month, with no card required. Beyond that it costs $0.10 per 1,000 requests. See pricing.

License

MIT