# unflare

> Just another express-inspired web framework for cloudflare's workers.

Latest version **2.1.3** (published 2023-09-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2023-09-18 |
| First published | 2023-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 41.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jephthah M. Orobia |
| Maintainers | sirjhep |
| Keywords | unflare, serverless, cloudflare, workers, routing, router, express-flare, workers routing, cloudflare routing, cloudflare router |

## Links

- npm: https://www.npmjs.com/package/unflare
- Repository: https://github.com/jephthah-orobia/unflare
- Homepage: https://github.com/jephthah-orobia/unflare#readme
- Issues: https://github.com/jephthah-orobia/unflare/issues
- npm.io page: https://npm.io/package/unflare

## Dependencies (2)

- [cookie](https://npm.io/package/cookie.md) ^0.5.0
- [@types/cookie](https://npm.io/package/@types/cookie.md) ^0.5.1

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 2.1.3 (latest) — 2023-09-18
- 1.0.1-3 (beta) — 2023-02-24
- 2.1.2 — 2023-09-16
- 2.1.1 — 2023-08-24
- 2.1.0 — 2023-08-19
- 2.0.4 — 2023-08-16
- 2.0.2 — 2023-04-28
- 2.0.1 — 2023-04-25
- 1.3.1 — 2023-03-16
- 1.3.0 — 2023-03-15
- 1.2.3 — 2023-03-08
- 1.2.2 — 2023-03-08
- 1.2.1 — 2023-03-08
- 1.2.0 — 2023-03-06
- 1.1.2 — 2023-02-28
- … 5 more at https://npm.io/package/unflare/versions

## README

# Unflare (v2)

Just another ~~[express](https://expressjs.com/)-inspired~~ web framework for serverless like [cloudflare's workers](https://workers.cloudflare.com/).

![npm bundle size](https://img.shields.io/bundlephobia/min/unflare?label=install%20size&style=plastic) ![npm version](https://img.shields.io/npm/v/unflare?style=plastic) ![node-current](https://img.shields.io/node/v/unflare?style=plastic)

```typescript
import { Unflare } from 'unflare';

const app = new Unflare();

app.get('/', () => {
  const { res } = app;
  res.send('Hello World!');
});

export default app;
```

## Installation

Requires at least [Node v18](https://nodejs.org/en/), but preferably [Node v19](https://nodejs.org/en/) or latest.

This module is intended to be use for [cloudflare's workers](https://workers.cloudflare.com/) to help manage routing and handling of request. To avoid issues, install this after [creating your wrangler/workers project](https://developers.cloudflare.com/workers/get-started/guide).

Installation is done using the `npm install` command:

```
$ npm install unflare
```

## Features

- specifically for [cloudflare's workers](https://workers.cloudflare.com/).
- write like you would with [express](https://expressjs.com/).
- treeshakeable and ES6 compliant.
- scoped and recursive handling of middlewares, routers, routes and error handlers.
- auto extraction of queries, params, cookies and body of request.

## GUIDES
- Tutorials:
  * [Hello {User}!](./docs/examples/hello-user.md)
- [Contributing](./CONTRIBUTING.md)

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