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

@kivia/sdk

v0.1.4

Published

TypeScript SDK for the Kivia API observability platform

Readme

Kivia TypeScript SDK

The Kivia TypeScript SDK is the official Node.js client for the Kivia observability platform. It allows Node.js developers using Express, Fastify, Hono, or Elysia to instantly track API request metrics, response times, and paths.

Installation

npm install @kivia/sdk

Quick Start (with Express)

import express from 'express';
import { KiviaClient } from '@kivia/sdk';

const app = express();

const kiviaClient = new KiviaClient({
  apiKey: 'YOUR_KIVIA_API_KEY',
});

// Let Kivia track all your network traffic by setting this global middleware
app.use(kiviaClient.logMiddleware());

app.get('/hello', (req, res) => {
  res.send('Hello from Kivia TS SDK!');
});

app.listen(3000, () => console.log('Server running on port 3000'));

Quick Start (with NestJS)

Because NestJS runs on Express (or Fastify) under the hood, you can simply inject the SDK as a global middleware right in your main.ts bootstrap function!

// main.ts
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { KiviaClient } from '@kivia/sdk';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);

  const kiviaClient = new KiviaClient({
    apiKey: 'YOUR_KIVIA_API_KEY'
  });

  // Just apply it as global middleware!
  app.use(kiviaClient.logMiddleware());

  await app.listen(3000);
}
bootstrap();

Quick Start (with Fastify Plugin)

We export a native Fastify plugin so you can easily encapsulate options and registration.

import Fastify from 'fastify';
import { kiviaFastifyPlugin } from '@kivia/sdk';

const fastify = Fastify({ logger: false });

// Register as a native Fastify plugin
fastify.register(kiviaFastifyPlugin, {
  apiKey: 'YOUR_KIVIA_API_KEY'
});

fastify.get('/hello', async (request, reply) => {
  return { message: 'Hello from Kivia TS SDK using Fastify Plugin!' };
});

fastify.listen({ port: 3000 });

Quick Start (with Hono)

import { Hono } from 'hono';
import { kiviaHonoMiddleware } from '@kivia/sdk';

const app = new Hono();

app.use('*', kiviaHonoMiddleware({
  apiKey: 'YOUR_KIVIA_API_KEY',
}));

app.get('/hello', (c) => {
  return c.json({ message: 'Hello from Kivia TS SDK using Hono!' });
});

export default app;

Quick Start (with Elysia)

import { Elysia } from 'elysia';
import { kiviaElysiaPlugin } from '@kivia/sdk';

const app = new Elysia()
  .use(
    kiviaElysiaPlugin({
      apiKey: 'YOUR_KIVIA_API_KEY',
    }),
  );

app.get('/hello', () => ({ message: 'Hello from Kivia TS SDK using Elysia!' }));

app.listen(3000);