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

@csp-kit/data

v0.3.0

Published

Service definitions and CSP mappings database for csp-kit

Readme

@csp-kit/data

Service definitions and CSP mappings database for csp-kit. This package provides Content Security Policy directives for 100+ popular web services and is designed to be used with @csp-kit/generator.

Installation

Install both packages together:

npm install @csp-kit/generator @csp-kit/data
# or
yarn add @csp-kit/generator @csp-kit/data
# or
pnpm add @csp-kit/generator @csp-kit/data

Usage

This package exports service definitions that are used with @csp-kit/generator to create CSP headers:

import { generateCSP } from '@csp-kit/generator';
import { GoogleAnalytics, Stripe, GoogleFonts } from '@csp-kit/data';

// Generate CSP header for your services
const { header } = generateCSP({
  services: [GoogleAnalytics, Stripe, GoogleFonts],
});

// Use in your application
response.setHeader('Content-Security-Policy', header);

Available Services

Services are exported as named exports with PascalCase naming:

import {
  // Analytics
  GoogleAnalytics,
  MicrosoftClarity,
  Mixpanel,
  Amplitude,
  Hotjar,

  // Payment
  Stripe,
  Paypal,
  Square,

  // Authentication
  Auth0,
  Clerk,
  FirebaseAuth,

  // Video
  Youtube,
  Vimeo,
  Wistia,

  // ... and 100+ more services
} from '@csp-kit/data';

Service Categories

  • analytics: Google Analytics, Microsoft Clarity, Mixpanel, Amplitude, Heap, PostHog
  • authentication: Auth0, Clerk, Firebase Auth, Supabase Auth
  • cdn: Cloudflare, Fastly, jsDelivr, unpkg, cdnjs
  • chat: Intercom, Crisp, Tawk.to, Zendesk Chat
  • fonts: Google Fonts, Adobe Fonts
  • forms: Typeform, Tally, Jotform
  • maps: Google Maps, Mapbox
  • marketing: HubSpot, Mailchimp, ConvertKit
  • monitoring: Sentry, Datadog, LogRocket, Bugsnag
  • payment: Stripe, PayPal, Square
  • social: Twitter/X Widgets, Facebook SDK, LinkedIn
  • video: YouTube, Vimeo, Wistia, Loom
  • And many more...

Configurable Services

Some services support dynamic configuration:

import { GoogleMaps, Stripe } from '@csp-kit/data';

// Configure services with dynamic values
const mapsWithKey = GoogleMaps.configure({ apiKey: 'YOUR_API_KEY' });
const stripeWithAccount = Stripe.configure({ account: 'acct_123456' });

// Use with generator
import { generateCSP } from '@csp-kit/generator';
const { header } = generateCSP({
  services: [mapsWithKey, stripeWithAccount],
});

TypeScript Support

All services are fully typed:

import type { CSPService } from '@csp-kit/data';
import { GoogleAnalytics } from '@csp-kit/data';

// Each service has these properties
console.log(GoogleAnalytics.id); // 'google-analytics'
console.log(GoogleAnalytics.name); // 'Google Analytics 4'
console.log(GoogleAnalytics.category); // 'analytics'
console.log(GoogleAnalytics.directives); // CSP directives object

Updates

Service definitions are updated independently from the generator:

# Check for updates
npm outdated @csp-kit/data

# Update to latest
npm update @csp-kit/data

Contributing

Want to add or update a service? See our Contributing Guide.

License

MIT License - see LICENSE for details.