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

es.io

v0.0.1

Published

Library communication ElasticSearch.

Downloads

10

Readme

ElasticSearch - NodeJS

NPM - ElasticSearch IO

This library executes Query DSL (Domain Specific Language) based on JSON, of extremely simple format to comunicate with the ElasticSearch. Builder to execute "sync" (synchronous) It's developed to be used in any framework, ExpressJS, KoaJS, Restify, etc... Also contain a Scroll function for the execute of paginate in queries. Use Axios (dependence) for communication REST.

This library support ALL methods GET, PUT, POST, DELETE ... :heart_eyes:

Install

Install used NPM.

$ npm i es.io

For BigData execute Scroll.

es.scroll('/index/_doc/_search', {})

This is very good :sunglasses:

For custom execute.

es.execute('GET' '/index/_doc/_search', {})

For GET execute.

es.get('/index/_doc/_search', {"size":9})

For PUT execute.

es.put('/index/_doc/:id', {"field":"value"})

For POST execute.

es.post('/index/_doc/:id', {"field":"value"})

For DELETE execute.

es.delete('/index/_doc/:id')

Library example

Example of any use.

// package
var es=require('es.io');

// elasticsearch
es.host='http://127.0.0.1:9200';

// app
(async ()=>{

  // debug
  console.log('Start!');

  // data
  es.result=await es.execute('GET', '/_stats', {}).then((result)=>{
    return result;
  });

  // debug
  console.log(es.result);

  // debug
  console.log('Finish!');

})();

ExpressJS - Example

Example of use with ExpressJS.

// package
var express=require('express');
var es=require('es.io');

// elasticsearch
es.host='http://127.0.0.1:9200';

// express
const app=express();

// example
app.get('/', async (req, res)=>{

  // data
  es.result=await es.execute('GET', '/_stats', {}).then((result)=>{
    return result;
  });

  // response
  res.json(es.result);

});

// app
app.listen(3000, ()=>console.log('es.io - Express'));

KoaJS - Example

Example of use with KoaJS.

// development

Restify - Example

Example of use with Restify.

// development