
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
micro-proxy
Advanced tools
With micro-proxy, you can create a proxy server for your microservices based on now.sh path alias rules.
This is specially well suited for development to mirror the production configuration of multiple microservices and backends.
Firstly, install the package:
npm i -g micro-proxy
Then add following rules to a filename called rules.json:
{
"rules": [
{"pathname": "/blog", "method":["GET", "POST", "OPTIONS"], "dest": "http://localhost:5000"},
{"pathname": "/**", "dest": "http://localhost:4000"}
]
}
Visit path alias documentation to learn more about rules.
Run the proxy server with:
micro-proxy -r rules.json -p 9000
Now you can access the proxy via: http://localhost:9000
You can run the proxy programmatically inside your codebase.
For that, add micro-proxy to your project with:
npm install micro-proxy
Then create the proxy server like this:
const createProxy = require('micro-proxy')
const proxy = createProxy([
{"pathname": "/blog", "method":["GET", "POST", "OPTIONS"], "dest": "http://localhost:5000"},
{"pathname": "/**", "dest": "http://localhost:4000"}
])
proxy.listen(9000, (err) => {
if (err) {
throw err
}
console.log(`> Ready on http://localhost:9000`)
})
You can use micro-proxy as a production deployment.
But if you are using ZEIT now, you can simply use path alias rules instead.
(It's a FREE service available for all ZEIT now deployments.)
FAQs
Simplest proxy server for microservices
The npm package micro-proxy receives a total of 246 weekly downloads. As such, micro-proxy popularity was classified as not popular.
We found that micro-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.