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 🙏

© 2025 – Pkg Stats / Ryan Hefner

api_restfull_task_part2_yuna_example

v1.0.3

Published

Installation:

Readme

Installation:

Using npm: - in order to install:

$  npm install

and

$npm i api_restfull_task_yuna_example

Discerption:

  1. Created microservice -support CRD capabilities
  2. Can run on localhost port - 3003(or can be configured )
  3. Saving logs with Winston to local file for users
  4. Or can run the server with heroku :

Var config to user api calls with postman are: CLEARDB_DATABASE_URL: mysql://bd9924fc0b3651:[email protected]/heroku_1982f1217375ac8?reconnect=true

Or set in the postman URL: https://pure-sands-60497.herokuapp.com/

Support apis:

  1. Get - all logs that save user: GET request ‘/logs’

  2. Get log by id : GET request ‘/logs/logId’

  3. Update log table with new log : POST request ‘/logs’ with the following details: Set in body: {

    "message": “enter a log“, "errorCode": int, "createTime": “DATETIME” - for example : "createTime": “2018-08-09” }

  4. Delete log - DELETE request - ‘/logs/logId’

  5. In order to insert log or create new user use: in headers authorezetion:"admin" and password:"admin"

  6. To run test can run script : npm run mocha

App in heroku : https://pure-sands-60497.herokuapp.com/

  1. Can track all events in sumo logic too : https://addons-sso.heroku.com/apps/7ab560da-f44e-43c0-88fc-6241099ecfed/addons/9eb6ecf2-67a6-478f-a406-c2e4dab5034a

Search in live tail: _sourceCategory= heroku

apiREST-part2