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

coveo-pushapi-cli

v1.1.0

Published

Command line tool to push JSON payloads to the Coveo Cloud using the PushAPI

Downloads

42

Readme

PushAPI-node.js

Description

This project is a simple wrapper to help sending JSON payloads using Coveo Cloud V2 PushAPI.

Available documentation

The code in this project uses the Push API from the Coveo Cloud V2 Platform. You can use the following resource for more information and get started:

  • Push API documentation: https://docs.coveo.com/en/68/cloud-v2-developers/push-api

Contributing

  • Branch or Fork
  • Pull Request
  • And... that's pretty much it!

How-to build

  1. git clone this project.
  2. npm install to get the dependencies (request, fs).

CLI command

Install it with NPM:

npm i coveo-pushapi-cli --global

How-to run

The first time you run in one folder, it will help you to set up your config .pushapi-config.json by asking about your sourceId and your API key.

Note For a source in a Coveo Cloud HIPAA org, you need to manually add the following line to the .pushapi-config.json file:

"platform": "pushhipaa.cloud.coveo.com".

  • Push one JSON payload file:

    pushapi file.json

    where file.json is a the path to a Push API payload (JSON) file. Don't forget to set DocumentId in the payloads.

  • Push one JSON payload file, but delete source item older than 24 hours:

    pushapi file.json -d 24

    to use typically when you create/update all valid items, you want to delete all othere items that are older.

  • Push all JSON payload files from one folder:

    pushapi folder

    where folder is teh path to a folder containing multiple Push API JSON payload files.

What does it do?

The helper does a minimal validation on the payload, then executes these API calls:

  1. Change source state to REBUILD
  2. Get a File container
  3. Upload the payload to the File container
  4. Sends the batch command to process the File container
  5. Change the source state back to IDLE

Note  You can add this attribute "debug": true in your .pushapi-config.json to see these requests and their response code.

Dependencies

  • Node.js
  • Node modules: fs, request

Authors

  • Jérôme Devost (https://github.com/jdevost)