# webrush

> Express.js but faster

Latest version **0.2.2** (published 2019-09-04) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2019-09-04 |
| First published | 2019-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Gokay Okyay |
| Maintainers | gokayokyay |
| Keywords | express, webrush, framework, web, http, websocket, api |

## Links

- npm: https://www.npmjs.com/package/webrush
- Repository: https://github.com/gokayokyay/webrush
- Homepage: https://github.com/gokayokyay/webrush#readme
- Issues: https://github.com/gokayokyay/webrush/issues
- npm.io page: https://npm.io/package/webrush

## Dependencies (1)

- [uWebSockets.js](https://npm.io/package/uWebSockets.js.md) github:uNetworking/uWebSockets.js#v15.11.0

## 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.2.2 (latest) — 2019-09-04
- 0.2.1 — 2019-09-04
- 0.2.0 — 2019-09-03
- 0.1.3 — 2019-09-01
- 0.1.2 — 2019-09-01
- 0.1.1 — 2019-09-01
- 0.1.0 — 2019-09-01
- 0.0.2 — 2019-09-01
- 0.0.1 — 2019-09-01

## README

<h1 align="center">
	Webrush
</h1>

[![Build Status](https://cloud.drone.io/api/badges/gokayokyay/webrush/status.svg)](https://cloud.drone.io/gokayokyay/webrush)[![npm version](https://badge.fury.io/js/webrush.svg)](https://badge.fury.io/js/webrush)![NPM](https://img.shields.io/npm/l/webrush)
###### Express.js but faster.

It is a package inspired by [nanoexpress](https://github.com/dalisoft/nanoexpress "nanoexpress"). It is powered by [uWebsockets.js](https://github.com/uNetworking/uWebSockets.js "uWebsockets.js").

###### Install with:
`npm install webrush`

#### Why?
Was trying to use nanoexpress in a personal project then it went down for some reason. Then I replaced nanoexpress with uWebsockets.js and realized that its syntax was very similar to [Express.js](https://github.com/expressjs/express "Express.js"), with some little differences. After using it I got bored with confusion that differences made. So I created this package/wrapper.

#### Implemented features
- get route
- post route
- del route
- put route
- listen function
- res.send, res.json, res.redirect
- webrush.Router, see [Examples](/examples)

#### Example
```javascript
const webrush = require('webrush');
const app = webrush();

app.get('/', (req, res) => {
  res.send("Hello from webrush!");
});

app.listen(3000, (success) => {
  if(success){
	  console.log("Server started on port:", 3000);
  } else {
	  console.log("Error while listening on port:", 3000);
  }
});
```
There are more examples located in [Examples](/examples) directory.

See [Changelog](/CHANGELOG.md).

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