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

@c15t/node-sdk

v2.1.0

Published

Official Node.js SDK for c15t. Connects to the Consent Engine to read and write consent records and preferences. TypeScript-first, simple APIs, built-in auth and retries.

Readme

@c15t/node-sdk: Type-Safe Node.js API Client

GitHub stars CI License Discord npm version Top Language Last Commit Open Issues

A fully typed, flexible Node.js SDK for seamless interaction with the c15t consent management platform API.

Key Features

  • Type-safe API client with full TypeScript support
  • Flexible client configuration with authentication and custom headers
  • Supports dynamic base URL and API prefix configuration
  • Built on top of @orpc/client for robust API interactions
  • Easy integration with Node.js applications
  • Comprehensive error handling and URL validation

Prerequisites

Manual Installation

pnpm add @c15t/node-sdk

Usage

  1. Import c15tClient from @c15t/node-sdk
  2. Configure with a base URL and token, or set C15T_API_URL and C15T_API_TOKEN so the client picks them up automatically
  3. Call API methods on client.meta, client.subjects, etc. — every method is fully typed
// server.ts
import { c15tClient } from '@c15t/node-sdk'

// Auto-configure from C15T_API_URL + C15T_API_TOKEN env vars
const client = c15tClient()

// Or pass options explicitly
// const client = c15tClient({
//   baseUrl: process.env.C15T_API_URL!,
//   token: process.env.C15T_API_TOKEN!,
// })

try {
  const status = await client.meta.status()
  console.log('c15t API status:', status)

  const subject = await client.subjects.create({
    type: 'cookie_banner',
    subjectId: 'sub_123',
    domain: 'example.com',
    preferences: { analytics: true },
    givenAt: Date.now(),
  })
  console.log('Created subject', subject.id)
} catch (error) {
  console.error('c15t request failed:', error)
}

Support

Contributing

  • We're open to all community contributions.
  • Read our Contribution Guidelines
  • Review our Code of Conduct
  • Fork the repository
  • Create a new branch for your feature
  • Submit a pull request
  • All contributions, big or small, are welcome and appreciated.

Security

If you believe you have found a security vulnerability in c15t, we encourage you to responsibly disclose this and NOT open a public issue. We will investigate all legitimate reports.

Our preference is that you make use of GitHub's private vulnerability reporting feature to disclose potential security vulnerabilities in our open-source software. To do this, please visit https://github.com/c15t/c15t/security and click the "Report a vulnerability" button.

Security Policy

  • Please do not share security vulnerabilities in public forums, issues, or pull requests
  • Provide detailed information about the potential vulnerability
  • Allow reasonable time for us to address the issue before any public disclosure
  • We are committed to addressing security concerns promptly and transparently

License

Apache License 2.0


Built by Inth