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

rest-map-server

v1.0.4

Published

Mock REST API and make a proxy server in few clicks

Downloads

36

Readme

rest-map-server

Rest Mock and Proxy Server

Mock REST API endpoints, serve static files and work as proxy server.

It has a nice GUI, where user can mock a path very easily with few clicks.

Installation

npm install -g rest-map-server

And rest-map-server will be installed globally to your system path.

Usage

Using rest-map-server is simple, just pass a port number and an optional project public dir to serve static files, I would start it as so:

map-server 8000 

or

map-server 8000 "/usr/mk/public"

http requests and error will be logged on the console.

GUI configurations

Setup page

when we open http://localhost:8000/setup-routes/

we will get the below setup page, here on this page we can add api route to mock.

Alt text

On the right top setting button, click and add a global target server(Eg: https://localhost:4000) for all apis.

Unmocked routes will be forwarded to this server

Alt text

Mock a route

Click on the "mock new route" button and provide route url and mock json response.

Note:

  1. If we select mocking type as mocked which is the default option, mocked json response will be sent.

  2. If we select mocking type as remote, request will be sent to global target server and corrosponding response will be sent back.

  3. If we select mocking type as remote, and make "override global setting" switch on then request will be sent to this given target server and corrosponding response will be sent back.

Alt text

Now, after mocking route, if we goto "http://localhost:8000/api/v1/users", we will get our mocked json

Mocked routes and target server setting will be saved in json file, in the same dir from where server was started. So if you restart server this data will be loaded.

API routes which are not mocked will be forwarded to the global target server and corrosponding response will be sent back.

Serving static files

If we goto "http://localhost:8000/" , and public dir is given then index.html from the public dir will be loaded.

License

MIT http://rem.mit-license.org