# scaleflow

> Tools and convention to create composeable apps

Latest version **0.3.0** (published 2016-12-01) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2016-12-01 |
| First published | 2016-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vitaliy V. Makeev |
| Maintainers | wmakeev |
| Keywords | app, stamp, stampit, middleware, composeable |

## Links

- npm: https://www.npmjs.com/package/scaleflow
- Repository: https://github.com/wmakeev/scaleflow
- Issues: https://github.com/wmakeev/scaleflow/issues
- npm.io page: https://npm.io/package/scaleflow

## Dependencies (5)

- [stampit](https://npm.io/package/stampit.md) ^3.0.6
- [is-promise](https://npm.io/package/is-promise.md) ^2.1.0
- [make-compose](https://npm.io/package/make-compose.md) ^1.0.0
- [lodash.flowright](https://npm.io/package/lodash.flowright.md) ^3.5.0
- [lodash.isplainobject](https://npm.io/package/lodash.isplainobject.md) ^4.0.6

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2016-12-01

## README

# ScaleFlow

[![npm](https://img.shields.io/npm/v/scaleflow.svg?maxAge=2592000&style=flat-square)](https://www.npmjs.com/package/scaleflow)
[![Travis](https://img.shields.io/travis/wmakeev/scaleflow.svg?maxAge=2592000&style=flat-square)](https://travis-ci.org/wmakeev/scaleflow)
[![Coveralls](https://img.shields.io/coveralls/wmakeev/scaleflow.svg?maxAge=2592000&style=flat-square)](https://coveralls.io/github/wmakeev/scaleflow)
[![Gemnasium](https://img.shields.io/gemnasium/wmakeev/scaleflow.svg?maxAge=2592000&style=flat-square)](https://gemnasium.com/github.com/wmakeev/scaleflow)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)

> ScaleFlow is simple framework based on [Stamp Specification](https://github.com/stampit-org/stamp-specification) and Redux like [data flow](http://redux.js.org/docs/basics/DataFlow.html)

## Install

```
$ npm install scaleflow
```

## Usage

```js
const { Core } = require('scaleflow')

const loggerInitializer = (options, { instance }) => {
  return Object.assign(instance, {
    log: (...args) => instance.dispatch({
      type: 'LOG',
      payload: [`${options.name || 'LOG'}:`].concat(args)
    })
  })
}

const loggerMiddleware = core => next => action => {
  if (action.type === 'LOG') {
    console.log(...action.payload)
  }
  return next(action)
}

let MyCore = Core
  .init(loggerInitializer)
  .middleware(loggerMiddleware)

let myCore = MyCore({ name: 'MyCore' })

myCore.log('Hello world!') // MyCore: Hello world!
```

## API

TODO

## License

[MIT © Viatliy V. Makeev](../LICENSE)

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