# bweb

> Web bike-shed

Latest version **0.3.0** (published 2023-12-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install bweb
pnpm add bweb
yarn add bweb
bun add bweb
```

Provides the command `bweb`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2023-12-16 |
| First published | 2017-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 2 |
| Unpacked size | 73.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Christopher Jeffrey |
| Maintainers | chjj, nodweber, pinheadmz |
| Keywords | http, socket.io, websockets |

## Links

- npm: https://www.npmjs.com/package/bweb
- Repository: https://github.com/bcoin-org/bweb
- Issues: https://github.com/bcoin-org/bweb/issues
- npm.io page: https://npm.io/package/bweb

## Dependencies (2)

- [bsert](https://npm.io/package/bsert.md) ~0.0.12
- [bsock](https://npm.io/package/bsock.md) ~0.1.11

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2023-12-16
- 0.2.0 — 2023-04-13
- 0.1.12 — 2023-01-14
- 0.1.11 — 2022-12-16
- 0.1.10 — 2019-11-04
- 0.1.9 — 2019-05-03
- 0.1.8 — 2019-03-21
- 0.1.7 — 2019-01-22
- 0.1.6 — 2018-11-29
- 0.1.5 — 2018-11-28
- 0.1.4 — 2018-09-29
- 0.1.3 — 2018-08-01
- 0.1.2 — 2018-07-19
- 0.1.1 — 2018-07-12
- 0.1.0 — 2018-06-08
- … 3 more at https://npm.io/package/bweb/versions

## README

# bweb

A web server.

## Usage

``` js
const bweb = require('bweb');
const server = bweb.server({
  port: 8080,
  sockets: true
});

server.on('socket', (socket) => {
  // A bsock socket
  socket.fire('hello', 'world');
});

server.use(server.bodyParser());
server.use(server.cookieParser());
server.use(server.jsonRPC());
server.use(server.router());
server.use('/static', server.fileServer(__dirname));

server.get('/', async (req, res) => {
  res.html(200, '<a href="/static">static</a>');
});

server.open();
```

## Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. `</legalese>`

## License

- Copyright (c) 2017, Christopher Jeffrey (MIT License).

See LICENSE for more info.

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