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

@flinkk/audit

v1.0.4

Published

Shared Datadog audit and logging utilities for Flinkk CRM

Readme

@flinkk/audit

Shared Datadog RUM/logging and Microsoft Clarity instrumentation for Flinkk applications. Each app wires these in once at the root layout; nothing here talks to a database or holds any tenant data itself.

Exports

| Subpath | What it is | | --- | --- | | @flinkk/audit/datadog | <DataDogScript /> — injects the Datadog RUM browser agent via next/script. No-ops if NEXT_PUBLIC_DATADOG_CLIENT_TOKEN isn't set. | | @flinkk/audit/datadog/client | <DataDogRUM config={...} /> — same RUM injection, but with an explicit config object instead of reading applicationId/site/service from module-level constants. | | @flinkk/audit/datadog/server | Server-side structured logger built on pino (createLogger(config)), with trace-injection and PII-redaction options. | | @flinkk/audit/datadog/edge | Edge-runtime-safe variant (no Node-only APIs). | | @flinkk/audit/datadog/user-context | <DataDogUserContext /> — a client component that reads the NextAuth session and attaches userId/tenantId to the active RUM session once authenticated. | | @flinkk/audit/datadog/dd-trace-init | Node-only dd-trace initialization, imported for its side effect at process startup. | | @flinkk/audit/microsoft-clarity | <MicrosoftClarity /> — injects the Microsoft Clarity tracking snippet. No-ops if NEXT_PUBLIC_MICROSOFT_CLARITY_ID isn't set. |

Usage

// app/layout.tsx
import { DataDogScript } from "@flinkk/audit/datadog";
import { MicrosoftClarity } from "@flinkk/audit/microsoft-clarity";
import DataDogUserContext from "@flinkk/audit/datadog/user-context";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html>
      <body>
        <DataDogScript />
        <MicrosoftClarity />
        <DataDogUserContext />
        {children}
      </body>
    </html>
  );
}
// any server module
import { createLogger } from "@flinkk/audit/datadog/server";

const log = createLogger({ serviceName: "sales-api" });
log.info({ tenantId }, "quote created");

Environment variables

  • NEXT_PUBLIC_DATADOG_CLIENT_TOKEN — required for the RUM script to render.
  • NEXT_PUBLIC_MICROSOFT_CLARITY_ID — required for the Clarity script to render.
  • NEXT_PUBLIC_ENVIRONMENT, NEXT_PUBLIC_APP_VERSION — tagged onto RUM sessions.

License

ISC License - Internal Flinkk library