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

eve-echoes-trader

v1.1.0

Published

<!-- *** Thanks for checking out the Best-README-Template. If you have a suggestion *** that would make this better, please fork the repo and create a pull request *** or simply open an issue with the tag "enhancement". *** Thanks again! Now go create som

Downloads

1

Readme

Table of Contents

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/ironman9967/eve-echoes-trader.git
  2. Install NPM packages
    npm install

Usage

Please note all commands are available via npm start, just include the -- required by npm to pass parameters to the application. i.e. - npm start -- --help

Display Help

npx eve-echoes-trader --help

HTTP Server

npx eve-echoes-trader serve --port 8765

About

GET /api/about
  • example response:
{ "appName": "eve-echoes-trader", "version": "1.0.1", "about": "eve-echoes-trader v1.0.1" }

Item Search

GET /api/item/search?term=[term to fuzzy search]
  • example response for term=veld:
[
  {
    "id": 1552,
    "terms": [
      "veldspar"
    ],
    "score": 29.209565298787776,
    "match": {
      "veldspar": [
        "name"
      ]
    },
    "name": "Veldspar",
    "itemId": "51000000000"
  }
]

Item Names

GET /api/item/names
  • example response for term=veld:
[ "Griffin", "Bantam", "Bantam II" ]

Item by Name

GET /api/item?name=[name to fuzzy search]
  • example response for name=veld:
{
  "headMeta": {
    "_id": "5fc9b65c3e811fd806709dca",
    "id": 0,
    "lastDownload": {
      "stamp": 1607054940244,
      "duration": 150
    }
  },
  "id": 1552,
  "itemId": "51000000000",
  "name": "Veldspar",
  "statsMeta": {
    "_id": "5fca92a9c0ab8d06ba41eab0",
    "itemId": "51000000000",
    "lastDownload": {
      "stamp": 1607111337181,
      "duration": 282
    }
  },
  "aggregates": {
    "time": {
      "min": 1599555600,
      "max": 1607097600,
      "mean": 1602719045.7831326
    },
    "volume": {
      "min": 2.63,
      "max": 7.62,
      "mean": 5.711277108433733
    },
    "sell": {
      "min": 1599555600,
      "max": 1607097600,
      "mean": 1602719045.7831326
    },
    "lowestSell": {
      "min": 1,
      "max": 6,
      "mean": 3.0289156626506024
    },
    "highestBuy": {
      "min": 5,
      "max": 17.14,
      "mean": 7.149590361445781
    },
    "buy": {
      "min": 4.24,
      "max": 6.52,
      "mean": 5.478024096385543
    }
  }
}

Item by ID

GET /api/item/[item ID]
  • example response for /api/item/51000000000:
{
  "headMeta": {
    "_id": "5fc9b65c3e811fd806709dca",
    "id": 0,
    "lastDownload": {
      "stamp": 1607054940244,
      "duration": 150
    }
  },
  "id": 1552,
  "itemId": "51000000000",
  "name": "Veldspar",
  "statsMeta": {
    "_id": "5fca92a9c0ab8d06ba41eab0",
    "itemId": "51000000000",
    "lastDownload": {
      "stamp": 1607111337181,
      "duration": 282
    }
  },
  "aggregates": {
    "time": {
      "min": 1599555600,
      "max": 1607097600,
      "mean": 1602719045.7831326
    },
    "volume": {
      "min": 2.63,
      "max": 7.62,
      "mean": 5.711277108433733
    },
    "sell": {
      "min": 1599555600,
      "max": 1607097600,
      "mean": 1602719045.7831326
    },
    "lowestSell": {
      "min": 1,
      "max": 6,
      "mean": 3.0289156626506024
    },
    "highestBuy": {
      "min": 5,
      "max": 17.14,
      "mean": 7.149590361445781
    },
    "buy": {
      "min": 4.24,
      "max": 6.52,
      "mean": 5.478024096385543
    }
  }
}

Item by ID Stats

GET /api/item/[item ID]/stats
  • example response for /api/item/51000000000/stats:
{
  "headMeta": {
    "_id": "5fc9b65c3e811fd806709dca",
    "id": 0,
    "lastDownload": {
      "stamp": 1607054940244,
      "duration": 150
    }
  },
  "id": 1552,
  "itemId": "51000000000",
  "name": "Veldspar",
  "statsMeta": {
    "_id": "5fca93b2c0ab8d06ba41f4b1",
    "itemId": "51000000000",
    "lastDownload": {
      "stamp": 1607111602723,
      "duration": 225
    }
  },
  "aggregates": {
    "time": {
      "min": 1599555600,
      "max": 1607097600,
      "mean": 1602719045.7831326
    },
    "volume": {
      "min": 2.63,
      "max": 7.62,
      "mean": 5.711277108433733
    },
    "sell": {
      "min": 1599555600,
      "max": 1607097600,
      "mean": 1602719045.7831326
    },
    "lowestSell": {
      "min": 1,
      "max": 6,
      "mean": 3.0289156626506024
    },
    "highestBuy": {
      "min": 5,
      "max": 17.14,
      "mean": 7.149590361445781
    },
    "buy": {
      "min": 4.24,
      "max": 6.52,
      "mean": 5.478024096385543
    }
  },
  "stats": [
    {
      "itemId": "51000000000",
      "time": 1599555600,
      "sell": 6.22,
      "buy": 6.38,
      "lowestSell": 1,
      "highestBuy": 7,
      "volume": null
    },
    {
      "itemId": "51000000000",
      "time": 1599570000,
      "sell": 6.15,
      "buy": 6.52,
      "lowestSell": 1,
      "highestBuy": 8,
      "volume": 5926117
    }
  ]
}

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Your Name - @ledrugk - [email protected]

Project Link: https://github.com/ironman9967/eve-echoes-trader