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

cachifyrest

v1.0.7

Published

Cache server for rest-full apis

Downloads

9

Readme

Cachifyrest

Front-end developers who they working on spa clients need fast rest-full apis. but problem will come when they working in large company and the api is too slow because of server is not a live for 24h/day or other reseans .

Cachifyrest let us to cache every requests from mother-server, so Hooray we can develop front with more power !

Features

  • Set port, timeout, cacheMaxAge in cli .

Technology

Cachifyrest is built with the expressjs 4 framework. We're using Axios as a fetch function.

Requirements

You need Nodejs >=1.5.x .

Installation

yarn global add cachifyrest
# OR
npm i -g cachifyrest

Running the Cache Server

cachifyrest -timeout 5000 -cache 900000 -port 3110
# OR
cachifyrest -t 5000 -c 900000

You will see sth like this :


 ██████╗ █████╗  ██████╗██╗  ██╗██╗███████╗██╗   ██╗██████╗ ███████╗███████╗████████╗
██╔════╝██╔══██╗██╔════╝██║  ██║██║██╔════╝╚██╗ ██╔╝██╔══██╗██╔════╝██╔════╝╚══██╔══╝
██║     ███████║██║     ███████║██║█████╗   ╚████╔╝ ██████╔╝█████╗  ███████╗   ██║   
██║     ██╔══██║██║     ██╔══██║██║██╔══╝    ╚██╔╝  ██╔══██╗██╔══╝  ╚════██║   ██║ v1.0.5
╚██████╗██║  ██║╚██████╗██║  ██║██║██║        ██║   ██║  ██║███████╗███████║   ██║ FanapSoft
 ╚═════╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝   ╚═╝  ╚═╝╚══════╝╚══════╝   ╚═╝ 
                                                                                     
Cache server listening on port 3110 !
─────────────────────────────────────
- Request Timeout   : 30000ms / 0:30 m:s
- Cache MaxAge      : 900000ms / 15:00 m:s
- Server Port       : 3110
- Server Addresses  :
  local     localhost    
  local     127.0.0.1    
  enp6s0    192.168.1.106
  wlp2s0    192.168.1.108
  docker0   172.17.0.1   
  tun0      10.10.194.164
─────────────────────────────────────
- Resources 
  MemoryUsage : rss       41.44 MB
                heapTotal 15.33 MB
                heapUsed  12.7 MB
                external  0.02 MB
─────────────────────────────────────

Have a question?

Any issues or questions (no matter how basic), open an issue. Please take the initiative to read relevant documentation and be pro-active with debugging.

Want to contribute?

Contributions are welcome. If you're changing something non-trivial, you may want to submit an issue before creating a large pull request.

License

MIT