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

ingestkit

v0.1.9

Published

High-performance event ingestion with type-safe SDKs

Downloads

13

Readme

IngestKit npm Package

High-performance event ingestion with type-safe TypeScript SDKs.

Installation

npm install -D ingestkit
# or
yarn add -D ingestkit

This will automatically download the IngestKit CLI binary for your platform.

Quick Start

# 1. Initialize in your project
npx ingestkit init

# 2. Define events in ingestkit/schema.yaml
# (Already has a user_signup example!)

# 3. Generate type-safe client
npx ingestkit generate

# 4. Use in your code
import { Client } from './ingestkit'

const client = new Client()  // Reads config automatically

// Send events with full type safety
await client.userSignup.send({
    userId: "123",
    email: "[email protected]",
    signupSource: "web"
})

What You Get

  • Type-safe client - Auto-generated from your schema
  • TypeScript interfaces - Full IDE autocomplete
  • Zero configuration - Just npx ingestkit init and go
  • Fast binary - Go-powered CLI, no overhead

Project Structure

After npx ingestkit init:

my-app/
├── ingestkit/
│   ├── schema.yaml          # YOU EDIT - Define events
│   ├── client.ts           # GENERATED - Type-safe client
│   ├── models.ts           # GENERATED - TypeScript interfaces
│   └── index.ts            # GENERATED - Exports
└── ingestkit.config.json   # Configuration

Requirements

  • Node.js 14+
  • Internet connection for initial binary download

Examples

Express App

import express from 'express'
import { Client } from './ingestkit'

const app = express()
const events = new Client()

app.post('/api/signup', async (req, res) => {
    const { userId, email } = req.body

    // Track signup with IngestKit
    await events.userSignup.send({
        userId,
        email,
        signupSource: 'api'
    })

    res.json({ success: true })
})

app.listen(3000)

Next.js API Route

import type { NextApiRequest, NextApiResponse } from 'next'
import { Client } from '../../../ingestkit'

const events = new Client()

export default async function handler(
    req: NextApiRequest,
    res: NextApiResponse
) {
    if (req.method === 'POST') {
        // Track purchase
        await events.purchase.send({
            userId: req.body.userId,
            orderId: req.body.orderId,
            amount: req.body.amount,
            paymentMethod: req.body.paymentMethod
        })

        res.status(200).json({ success: true })
    }
}

Commands

# Initialize project
npx ingestkit init [--python|--typescript|--go]

# Generate client from schema
npx ingestkit generate

# Show help
npx ingestkit --help

Configuration

ingestkit.config.json:

{
  "apiUrl": "http://localhost:8080",
  "apiKey": "${INGESTKIT_API_KEY}",
  "tenantId": "my-app",
  "generator": {
    "language": "typescript",
    "output": "./ingestkit"
  }
}

Set INGESTKIT_API_KEY environment variable or hardcode for development.

Documentation

  • Quick Start: See above
  • Full Guide: https://github.com/feat7/ingestkit/blob/main/PRISMA_STYLE_GUIDE.md
  • Server Setup: https://github.com/feat7/ingestkit

Troubleshooting

Binary download fails

Visit https://github.com/feat7/ingestkit/releases/latest and manually download the binary for your platform, then place it in node_modules/ingestkit/bin/.

"Client not generated yet" error

Run npx ingestkit generate in your project directory first.

Import errors

Make sure you're importing from your project's ingestkit directory:

import { Client } from './ingestkit'  // ✅ Correct (generated)
import { Client } from 'ingestkit'     // ❌ Wrong (npm package)

License

Apache 2.0

Support

  • GitHub Issues: https://github.com/feat7/ingestkit/issues
  • Documentation: https://github.com/feat7/ingestkit