# verybasic-http-proxy

> A very basic http proxy in nodejs

Latest version **1.1.5** (published 2026-11-27) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install verybasic-http-proxy
pnpm add verybasic-http-proxy
yarn add verybasic-http-proxy
bun add verybasic-http-proxy
```

Provides the command `verybasic-http-proxy`.

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2026-11-27 |
| First published | 2020-02-24 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lorenzo Paci |
| Maintainers | undefinederror |
| Keywords | node-proxy, http-proxy |

## Links

- npm: https://www.npmjs.com/package/verybasic-http-proxy
- Repository: https://github.com/undefinederror/verybasic-http-proxy
- Homepage: https://github.com/undefinederror/verybasic-http-proxy#readme
- Issues: https://github.com/undefinederror/verybasic-http-proxy/issues
- npm.io page: https://npm.io/package/verybasic-http-proxy

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.21.1

## Recent versions

- 1.1.5 (latest) — 2026-11-27
- 1.1.4 — 2022-10-15
- 1.1.3 — 2022-10-15
- 1.1.2 — 2022-10-15
- 1.1.1 — 2022-10-15
- 1.1.0 — 2022-10-15
- 1.0.0 — 2020-02-24

## README

# verybasic-http-proxy

A very basic http proxy in nodejs.

You may use it to quickly get around CORS limitations for APIs you want to query from browser

## Installation

```
npm i verybasic-http-proxy
```

## Starting the proxy

### using the cli

with global install

```
verybasic-http-proxy --port 5555
```
with local install
```
npx verybasic-http-proxy --port 5555
```
via package.json scripts
```package.json
"scripts": {
    "proxy": "verybasic-http-proxy --port 5555"
}
```
### from script

```js
const createProxy = require('verybasic-http-proxy')
createProxy(5555)
```

Port is optional, default is 5555


## Forwarding requests
Prepend the proxy url to your request, for instance
```
http://localhost:5555/https://www.someapi.com?par=val
```
All your request headers and data are forwarded.

The only hardcoded request headers are Host, Origin and Referer so to match the requested api.
Hop-by-hop headers and body framing headers (Content-Length, Transfer-Encoding, Accept-Encoding) are recalculated by the proxy.

Response headers will include
```
 access-control-allow-origin: <the origin that called the proxy>
 access-control-allow-credentials: true
```
so both plain and credentialed (cookies / `withCredentials`) requests work.
`OPTIONS` preflights are answered with `204` and echo back the requested method and headers,
plus `access-control-allow-private-network: true` for Chrome's Local Network Access checks.

Every request, preflights included, is logged to stdout as `METHOD /url`.

---
_Source: https://npm.io/package/verybasic-http-proxy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
