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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@evenq/node-client

v1.0.1

Published

Official node client for the Evenq API

Downloads

3

Readme

evenq-node

npm version

You can read our full documentation at https://app.evenq.io/docs

Installation

Run the following command in your repository npm install @evenq/node-client@latest

Usage

You initialize Evenq once with your API key and then you can call the event functions. You can specify a batch size between 10 and 900 and a flush interval between 1-60 seconds.

import Evenq from 'evenq';

const evenq = new Evenq({
    apiKey: "Gwuz9wAYZ_kadNYpTvV91UZoRTWJ5Pqc",
    maxBatchTime: 60, // max and default set to 60 seconds
    maxBatchSize: 1000 // max and default set to 1000 events per batch
});

Sending events The event function takes 4 parameters:

  1. name - string (required)
  2. data - object (optional)
  3. partitionKey - string (optional)
  4. timestamp - unix epoch seconds (optional)

For example:

evenq.event("your.event", { key: "value"}, "partitionKey", 1644210247);

Here are some other ways to track events

// send a simple event
evenq.event("your.event")
// .. or an event with additional data
evenq.event("your.event", { key: "value" })
// send an event with a partition key
evenq.event("your.event", { key: "value" }, "partitionKey")
// send an event with a partition key and custom timestamp
evenq.event("your.event", { key: "value" }, "partitionKey", 1644210247)