# vivien

> vivien is a 0 dependency prototype Node framework that lets you define the flow of your server using JSX.

Latest version **0.0.1** (published 2018-07-13) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-07-13 |
| First published | 2018-06-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 13 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | colshacol |

## Links

- npm: https://www.npmjs.com/package/vivien
- npm.io page: https://npm.io/package/vivien

## Dependencies (4)

- [body](https://npm.io/package/body.md) 5.1.0
- [signale](https://npm.io/package/signale.md) 1.2.1
- [warning](https://npm.io/package/warning.md) 4.0.1
- [console.table](https://npm.io/package/console.table.md) 0.10.0

## Recent versions

- 0.0.1 (latest) — 2018-07-13
- 0.0.0 — 2018-06-26

## README

# vivien

vivien is a 0 dependency prototype Node framework that lets you define the flow of your server using JSX.

```js
import { Vivien } from '@vivien/core'
import Middleware from './Middleware'
import Router from './Router'
import Route from './Route'

import { VersionOneRoute, VersionZeroRoute } from './routes'

const App = (props, context, next) => {
  return (
    <Middleware>
      <Router>
        <Route path="/api/v0" component={VersionZeroRoute} />
        <Route path="/api/v1" component={VersionOneRoute} />
      </Router>
    </Middleware>
  )
}

Vivien.listen(App, 5099)
```

And here is an example of what you might find in `./Middleware`:

```js
import BodyParser from './Body'
import Cors from './Cors'

export const Middleware = (props, context, next) => {
  return (
    <Cors>
      <BodyParser>{next}</BodyParser>
    </Cors>
  )
}
```

## Development

In the case that you'd like to see proof that I build such a misfit of a tool and that it works, you'll wanna do something like this:

```sh
# clone the project
git@github.com:colshacol/vivien.git && cd vivien

# install devDependencies (no production dependencies!)
yarn

# start that shit up
yarn develop
```

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