# bare-net

> TCP and IPC servers and clients for JavaScript

Latest version **2.3.3** (published 2026-08-04) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bare-net
pnpm add bare-net
yarn add bare-net
bun add bare-net
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.3.3 |
| Published | 2026-08-04 |
| First published | 2024-05-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 26.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 4 |
| Author | Holepunch |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/bare-net
- Repository: https://github.com/holepunchto/bare-net
- Homepage: https://github.com/holepunchto/bare-net#readme
- Issues: https://github.com/holepunchto/bare-net/issues
- npm.io page: https://npm.io/package/bare-net

## Dependencies (4)

- [bare-tcp](https://npm.io/package/bare-tcp.md) ^2.0.0
- [bare-pipe](https://npm.io/package/bare-pipe.md) ^4.0.0
- [bare-events](https://npm.io/package/bare-events.md) ^2.2.2
- [bare-stream](https://npm.io/package/bare-stream.md) ^2.0.0

## Recent versions

- 2.3.3 (latest) — 2026-08-04
- 2.3.2 — 2026-06-02
- 2.3.1 — 2026-03-19
- 2.2.3 — 2026-03-19
- 2.2.2 — 2026-03-19
- 2.2.1 — 2026-03-19
- 2.2.0 — 2025-10-20
- 2.1.1 — 2025-09-18
- 2.1.0 — 2025-09-18
- 2.0.2 — 2025-09-04
- 2.0.1 — 2024-12-17
- 2.0.0 — 2024-11-27
- 1.0.1 — 2024-06-03
- 1.0.0 — 2024-05-22

## README

# bare-net

TCP and IPC servers and clients for JavaScript.

```
npm i bare-net
```

## Usage

```js
const net = require('bare-net')

const server = net.createServer()
server.on('connection', (socket) => socket.on('data', console.log))
server.listen(() => console.log('server is up'))

const { port } = server.address()
const socket = net.createConnection(port)
socket.write('hello world')
```

## License

Apache-2.0

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